cimu-parcel 1.2.2 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cimu-parcel.css +1 -1
- package/dist/cimu-parcel.es.js +6 -5
- package/dist/cimu-parcel.umd.js +7 -7
- package/dist/{index-y5zel9VQ.js → index-CHx4VJeU.js} +1 -1
- package/dist/{index-Bz8G78U0.js → index-CruwfEPi.js} +1 -1
- package/dist/index-Dq3eObCC.js +128 -0
- package/dist/{index-BYnrJOvx.js → index-DwdUIsJH.js} +3122 -2874
- package/package.json +1 -1
- package/dist/index-CkXzI0OO.js +0 -131
package/package.json
CHANGED
package/dist/index-CkXzI0OO.js
DELETED
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { defineComponent as U, computed as x, resolveComponent as d, createElementBlock as v, openBlock as u, Fragment as p, createTextVNode as f, createVNode as h, toDisplayString as _, mergeProps as $, withCtx as s, renderList as C, createBlock as m, createElementVNode as z, normalizeClass as F } from "vue";
|
|
2
|
-
import { _ as I } from "./index-BYnrJOvx.js";
|
|
3
|
-
const L = ["onClick"], P = /* @__PURE__ */ U({
|
|
4
|
-
__name: "index",
|
|
5
|
-
props: {
|
|
6
|
-
value: {},
|
|
7
|
-
config: {},
|
|
8
|
-
col: {}
|
|
9
|
-
},
|
|
10
|
-
emits: ["update:value", "callback"],
|
|
11
|
-
setup(V, { emit: A }) {
|
|
12
|
-
const i = V, b = A, l = {
|
|
13
|
-
label: i.config.fieldNames?.label ?? "label",
|
|
14
|
-
value: i.config.fieldNames?.value ?? "value",
|
|
15
|
-
children: i.config.fieldNames?.children ?? "children"
|
|
16
|
-
}, r = x({
|
|
17
|
-
get: () => i.value,
|
|
18
|
-
set: (n) => {
|
|
19
|
-
b("update:value", n), b("callback", {
|
|
20
|
-
value: n,
|
|
21
|
-
config: i.config
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}), N = x(() => i.config.options ?? []), w = (n, e) => {
|
|
25
|
-
let t = r.value;
|
|
26
|
-
if (Array.isArray(t)) {
|
|
27
|
-
if (n && e && (e[l.value] === "" || e[l.value] === void 0)) {
|
|
28
|
-
t.splice(0, t.length), t.push("");
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
g();
|
|
32
|
-
}
|
|
33
|
-
}, H = (n) => {
|
|
34
|
-
let e = r.value;
|
|
35
|
-
return Array.isArray(e) ? n.some((t) => e.includes(t[l.value])) : !1;
|
|
36
|
-
}, B = (n) => {
|
|
37
|
-
let e = r.value;
|
|
38
|
-
Array.isArray(e) || (r.value = [], e = r.value);
|
|
39
|
-
const t = n.map((o) => o[l.value]);
|
|
40
|
-
if (t.some((o) => e.includes(o)))
|
|
41
|
-
for (let o = e.length - 1; o >= 0; o--)
|
|
42
|
-
t.includes(e[o]) && e.splice(o, 1);
|
|
43
|
-
else
|
|
44
|
-
t.forEach((o) => {
|
|
45
|
-
e.includes(o) || e.push(o);
|
|
46
|
-
});
|
|
47
|
-
g();
|
|
48
|
-
}, g = () => {
|
|
49
|
-
let n = r.value;
|
|
50
|
-
if (Array.isArray(n)) {
|
|
51
|
-
for (let e = n.length - 1; e >= 0; e--)
|
|
52
|
-
n[e] === "" && n.splice(e, 1);
|
|
53
|
-
n.length == 0 && n.push("");
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return (n, e) => {
|
|
57
|
-
const t = d("el-checkbox-button"), k = d("ArrowDown"), o = d("el-icon"), D = d("el-checkbox"), y = d("el-checkbox-group"), E = d("el-popover");
|
|
58
|
-
return u(), v(p, null, [
|
|
59
|
-
f(_(r.value) + "--- ", 1),
|
|
60
|
-
h(y, $({
|
|
61
|
-
modelValue: r.value,
|
|
62
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) => r.value = a)
|
|
63
|
-
}, n.config), {
|
|
64
|
-
default: s(() => [
|
|
65
|
-
(u(!0), v(p, null, C(N.value, (a) => (u(), v(p, {
|
|
66
|
-
key: a.value
|
|
67
|
-
}, [
|
|
68
|
-
!a[l.children || "children"] || a[l.children || "children"].length == 0 ? (u(), m(t, {
|
|
69
|
-
key: 0,
|
|
70
|
-
label: a[l.value],
|
|
71
|
-
value: a[l.value],
|
|
72
|
-
onChange: (c) => w(!!c, a)
|
|
73
|
-
}, {
|
|
74
|
-
default: s(() => [
|
|
75
|
-
f(_(a[l.label]), 1)
|
|
76
|
-
]),
|
|
77
|
-
_: 2
|
|
78
|
-
}, 1032, ["label", "value", "onChange"])) : (u(), m(E, {
|
|
79
|
-
key: 1,
|
|
80
|
-
placement: "bottom",
|
|
81
|
-
trigger: "hover"
|
|
82
|
-
}, {
|
|
83
|
-
reference: s(() => [
|
|
84
|
-
z("div", {
|
|
85
|
-
class: F(["check-box", H(a[l.children || "children"]) ? "active" : ""]),
|
|
86
|
-
onClick: (c) => B(a[l.children || "children"])
|
|
87
|
-
}, [
|
|
88
|
-
f(_(a[l.label]) + " ", 1),
|
|
89
|
-
h(o, null, {
|
|
90
|
-
default: s(() => [
|
|
91
|
-
h(k)
|
|
92
|
-
]),
|
|
93
|
-
_: 1
|
|
94
|
-
})
|
|
95
|
-
], 10, L)
|
|
96
|
-
]),
|
|
97
|
-
default: s(() => [
|
|
98
|
-
h(y, {
|
|
99
|
-
modelValue: r.value,
|
|
100
|
-
"onUpdate:modelValue": e[1] || (e[1] = (c) => r.value = c)
|
|
101
|
-
}, {
|
|
102
|
-
default: s(() => [
|
|
103
|
-
(u(!0), v(p, null, C(a[l.children || "children"], (c) => (u(), m(D, {
|
|
104
|
-
key: c[l.value],
|
|
105
|
-
label: c[l.label],
|
|
106
|
-
value: c[l.value],
|
|
107
|
-
style: { "margin-right": "0", width: "100%" },
|
|
108
|
-
onChange: e[0] || (e[0] = (S) => g())
|
|
109
|
-
}, {
|
|
110
|
-
default: s(() => [
|
|
111
|
-
f(_(c[l.label]), 1)
|
|
112
|
-
]),
|
|
113
|
-
_: 2
|
|
114
|
-
}, 1032, ["label", "value"]))), 128))
|
|
115
|
-
]),
|
|
116
|
-
_: 2
|
|
117
|
-
}, 1032, ["modelValue"])
|
|
118
|
-
]),
|
|
119
|
-
_: 2
|
|
120
|
-
}, 1024))
|
|
121
|
-
], 64))), 128))
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
}, 16, ["modelValue"])
|
|
125
|
-
], 64);
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
}), q = /* @__PURE__ */ I(P, [["__scopeId", "data-v-fa092c13"]]);
|
|
129
|
-
export {
|
|
130
|
-
q as default
|
|
131
|
-
};
|