cimu-parcel 1.2.0 → 1.2.1
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 +1 -1
- package/dist/cimu-parcel.umd.js +7 -7
- package/dist/{index-Coin49ie.js → index-BFX_Chja.js} +1 -1
- package/dist/{index-CK8kaoFd.js → index-CJOwHXRx.js} +1952 -1952
- package/dist/index-D3VVhQmq.js +128 -0
- package/dist/index-DYMR3eYx.js +48 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/index-DtVYw0np.js +0 -121
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { defineComponent as U, computed as x, resolveComponent as d, createBlock as v, openBlock as u, mergeProps as $, withCtx as s, createElementBlock as p, Fragment as h, renderList as C, createTextVNode as _, toDisplayString as g, createVNode as m, createElementVNode as z, normalizeClass as F } from "vue";
|
|
2
|
+
import { _ as I } from "./index-CJOwHXRx.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
|
+
}, c = 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 = c.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
|
+
f();
|
|
32
|
+
}
|
|
33
|
+
}, H = (n) => {
|
|
34
|
+
let e = c.value;
|
|
35
|
+
return Array.isArray(e) ? n.some((t) => e.includes(t[l.value])) : !1;
|
|
36
|
+
}, B = (n) => {
|
|
37
|
+
let e = c.value;
|
|
38
|
+
if (!Array.isArray(e)) return;
|
|
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
|
+
f();
|
|
48
|
+
}, f = () => {
|
|
49
|
+
let n = c.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(y, $({
|
|
59
|
+
modelValue: c.value,
|
|
60
|
+
"onUpdate:modelValue": e[2] || (e[2] = (a) => c.value = a)
|
|
61
|
+
}, n.config), {
|
|
62
|
+
default: s(() => [
|
|
63
|
+
(u(!0), p(h, null, C(N.value, (a) => (u(), p(h, {
|
|
64
|
+
key: a.value
|
|
65
|
+
}, [
|
|
66
|
+
!a[l.children || "children"] || a[l.children || "children"].length == 0 ? (u(), v(t, {
|
|
67
|
+
key: 0,
|
|
68
|
+
label: a[l.value],
|
|
69
|
+
value: a[l.value],
|
|
70
|
+
onChange: (r) => w(!!r, a)
|
|
71
|
+
}, {
|
|
72
|
+
default: s(() => [
|
|
73
|
+
_(g(a[l.label]), 1)
|
|
74
|
+
]),
|
|
75
|
+
_: 2
|
|
76
|
+
}, 1032, ["label", "value", "onChange"])) : (u(), v(E, {
|
|
77
|
+
key: 1,
|
|
78
|
+
placement: "bottom",
|
|
79
|
+
trigger: "hover"
|
|
80
|
+
}, {
|
|
81
|
+
reference: s(() => [
|
|
82
|
+
z("div", {
|
|
83
|
+
class: F(["check-box", H(a[l.children || "children"]) ? "active" : ""]),
|
|
84
|
+
onClick: (r) => B(a[l.children || "children"])
|
|
85
|
+
}, [
|
|
86
|
+
_(g(a[l.label]) + " ", 1),
|
|
87
|
+
m(o, null, {
|
|
88
|
+
default: s(() => [
|
|
89
|
+
m(k)
|
|
90
|
+
]),
|
|
91
|
+
_: 1
|
|
92
|
+
})
|
|
93
|
+
], 10, L)
|
|
94
|
+
]),
|
|
95
|
+
default: s(() => [
|
|
96
|
+
m(y, {
|
|
97
|
+
modelValue: c.value,
|
|
98
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => c.value = r)
|
|
99
|
+
}, {
|
|
100
|
+
default: s(() => [
|
|
101
|
+
(u(!0), p(h, null, C(a[l.children || "children"], (r) => (u(), v(D, {
|
|
102
|
+
key: r[l.value],
|
|
103
|
+
label: r[l.label],
|
|
104
|
+
value: r[l.value],
|
|
105
|
+
style: { "margin-right": "0", width: "100%" },
|
|
106
|
+
onChange: e[0] || (e[0] = (S) => f())
|
|
107
|
+
}, {
|
|
108
|
+
default: s(() => [
|
|
109
|
+
_(g(r[l.label]), 1)
|
|
110
|
+
]),
|
|
111
|
+
_: 2
|
|
112
|
+
}, 1032, ["label", "value"]))), 128))
|
|
113
|
+
]),
|
|
114
|
+
_: 2
|
|
115
|
+
}, 1032, ["modelValue"])
|
|
116
|
+
]),
|
|
117
|
+
_: 2
|
|
118
|
+
}, 1024))
|
|
119
|
+
], 64))), 128))
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}, 16, ["modelValue"]);
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
}), q = /* @__PURE__ */ I(P, [["__scopeId", "data-v-eddf5afe"]]);
|
|
126
|
+
export {
|
|
127
|
+
q as default
|
|
128
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as b, computed as r, resolveComponent as s, createBlock as p, openBlock as a, mergeProps as g, withCtx as i, createElementBlock as k, Fragment as x, renderList as V, createTextVNode as h, toDisplayString as N } from "vue";
|
|
2
|
+
import { _ as B } from "./index-CJOwHXRx.js";
|
|
3
|
+
const C = /* @__PURE__ */ b({
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
value: {},
|
|
7
|
+
config: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["update:value", "callback"],
|
|
10
|
+
setup(d, { emit: m }) {
|
|
11
|
+
const o = d, n = m, t = {
|
|
12
|
+
label: o.config.fieldNames?.label ?? "label",
|
|
13
|
+
value: o.config.fieldNames?.value ?? "value"
|
|
14
|
+
}, c = r({
|
|
15
|
+
get: () => o.value,
|
|
16
|
+
set: (l) => {
|
|
17
|
+
n("update:value", l), n("callback", {
|
|
18
|
+
value: l,
|
|
19
|
+
config: o.config
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}), f = r(() => o.config.options ?? []);
|
|
23
|
+
return (l, u) => {
|
|
24
|
+
const _ = s("el-checkbox-button"), v = s("el-checkbox-group");
|
|
25
|
+
return a(), p(v, g({
|
|
26
|
+
modelValue: c.value,
|
|
27
|
+
"onUpdate:modelValue": u[0] || (u[0] = (e) => c.value = e)
|
|
28
|
+
}, l.config), {
|
|
29
|
+
default: i(() => [
|
|
30
|
+
(a(!0), k(x, null, V(f.value, (e) => (a(), p(_, {
|
|
31
|
+
key: e.value,
|
|
32
|
+
label: e[t.value],
|
|
33
|
+
value: e[t.value]
|
|
34
|
+
}, {
|
|
35
|
+
default: i(() => [
|
|
36
|
+
h(N(e[t.label]), 1)
|
|
37
|
+
]),
|
|
38
|
+
_: 2
|
|
39
|
+
}, 1032, ["label", "value"]))), 128))
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}, 16, ["modelValue"]);
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}), D = /* @__PURE__ */ B(C, [["__scopeId", "data-v-60d6fe32"]]);
|
|
46
|
+
export {
|
|
47
|
+
D as default
|
|
48
|
+
};
|
package/package.json
CHANGED
package/tsconfig.tsbuildinfo
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"root":["./src/index.ts","./src/main.ts","./src/vite-env.d.ts","./src/api/interface/index.ts","./src/components/index.ts","./src/components/basisform/interface/index.ts","./src/components/grid/interface/index.ts","./src/components/protable/interface/index.ts","./src/hooks/dict.ts","./src/hooks/useform.ts","./src/hooks/useselection.ts","./src/hooks/usetable.ts","./src/hooks/interface/index.ts","./src/plugins/index.ts","./src/routers/index.ts","./src/routers/modules/dynamicrouter.ts","./src/routers/modules/staticrouter.ts","./src/utils/formvalidate.ts","./src/utils/index.ts","./src/utils/is/index.ts","./src/app.vue","./src/components/basisdetail/descriptions.vue","./src/components/basisdetail/index.vue","./src/components/basisform/index.vue","./src/components/basistable/index.vue","./src/components/basistable/components/colsetting.vue","./src/components/basistable/components/formdialog.vue","./src/components/basistable/components/formitem.vue","./src/components/basistable/components/tablecolumn.vue","./src/components/control/cascader/index.vue","./src/components/control/checkbox/index.vue","./src/components/control/checkbox-button/index.vue","./src/components/control/date/index.vue","./src/components/control/input/index.vue","./src/components/control/input-number/index.vue","./src/components/control/radio/index.vue","./src/components/control/radio-button/index.vue","./src/components/control/select/index.vue","./src/components/control/switch/index.vue","./src/components/control/tree-select/index.vue","./src/components/dialog/index.vue","./src/components/editpage/index.vue","./src/components/errormessage/403.vue","./src/components/errormessage/404.vue","./src/components/errormessage/500.vue","./src/components/grid/index.vue","./src/components/grid/components/griditem.vue","./src/components/keywordhighlighter/index.vue","./src/components/nodata/index.vue","./src/components/protable/index.vue","./src/components/protable/components/colsetting.vue","./src/components/protable/components/pagination.vue","./src/components/protable/components/tablecolumn.vue","./src/components/searchform/index.vue","./src/components/searchform/components/searchformitem.vue","./src/components/selectfilter/index.vue","./src/components/validcode/index.vue","./src/components/videoplayer/index.vue","./src/layouts/main/index.vue","./src/views/assembly/basistable.vue","./src/views/assembly/dialog.vue","./src/views/assembly/form.vue","./src/views/assembly/protable.vue","./src/views/assembly/selectfilter.vue","./src/views/home/index.vue","./vite.config.ts"],"version":"5.9.2"}
|
|
1
|
+
{"root":["./src/index.ts","./src/main.ts","./src/vite-env.d.ts","./src/api/interface/index.ts","./src/components/index.ts","./src/components/basisform/interface/index.ts","./src/components/grid/interface/index.ts","./src/components/protable/interface/index.ts","./src/hooks/dict.ts","./src/hooks/useform.ts","./src/hooks/useselection.ts","./src/hooks/usetable.ts","./src/hooks/interface/index.ts","./src/plugins/index.ts","./src/routers/index.ts","./src/routers/modules/dynamicrouter.ts","./src/routers/modules/staticrouter.ts","./src/utils/formvalidate.ts","./src/utils/index.ts","./src/utils/is/index.ts","./src/app.vue","./src/components/basisdetail/descriptions.vue","./src/components/basisdetail/index.vue","./src/components/basisform/index.vue","./src/components/basistable/index.vue","./src/components/basistable/components/colsetting.vue","./src/components/basistable/components/formdialog.vue","./src/components/basistable/components/formitem.vue","./src/components/basistable/components/tablecolumn.vue","./src/components/control/cascader/index.vue","./src/components/control/checkbox/index.vue","./src/components/control/checkbox-button/index.vue","./src/components/control/checkbox-select/index.vue","./src/components/control/date/index.vue","./src/components/control/input/index.vue","./src/components/control/input-number/index.vue","./src/components/control/radio/index.vue","./src/components/control/radio-button/index.vue","./src/components/control/select/index.vue","./src/components/control/switch/index.vue","./src/components/control/tree-select/index.vue","./src/components/dialog/index.vue","./src/components/editpage/index.vue","./src/components/errormessage/403.vue","./src/components/errormessage/404.vue","./src/components/errormessage/500.vue","./src/components/grid/index.vue","./src/components/grid/components/griditem.vue","./src/components/keywordhighlighter/index.vue","./src/components/nodata/index.vue","./src/components/protable/index.vue","./src/components/protable/components/colsetting.vue","./src/components/protable/components/pagination.vue","./src/components/protable/components/tablecolumn.vue","./src/components/searchform/index.vue","./src/components/searchform/components/searchformitem.vue","./src/components/selectfilter/index.vue","./src/components/validcode/index.vue","./src/components/videoplayer/index.vue","./src/layouts/main/index.vue","./src/views/assembly/basistable.vue","./src/views/assembly/dialog.vue","./src/views/assembly/form.vue","./src/views/assembly/protable.vue","./src/views/assembly/selectfilter.vue","./src/views/home/index.vue","./vite.config.ts"],"version":"5.9.2"}
|
package/dist/index-DtVYw0np.js
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { defineComponent as D, computed as k, resolveComponent as p, createBlock as h, openBlock as i, mergeProps as E, withCtx as f, createElementBlock as g, Fragment as _, renderList as x, createCommentVNode as I, createTextVNode as V, toDisplayString as y, createVNode as m, createElementVNode as U } from "vue";
|
|
2
|
-
import { _ as F } from "./index-CK8kaoFd.js";
|
|
3
|
-
const L = /* @__PURE__ */ D({
|
|
4
|
-
__name: "index",
|
|
5
|
-
props: {
|
|
6
|
-
value: {},
|
|
7
|
-
config: {},
|
|
8
|
-
col: {}
|
|
9
|
-
},
|
|
10
|
-
emits: ["update:value", "callback"],
|
|
11
|
-
setup(C, { emit: N }) {
|
|
12
|
-
const d = C, b = N, e = {
|
|
13
|
-
label: d.config.fieldNames?.label ?? "label",
|
|
14
|
-
value: d.config.fieldNames?.value ?? "value",
|
|
15
|
-
children: d.config.fieldNames?.children ?? "children"
|
|
16
|
-
}, s = k({
|
|
17
|
-
get: () => d.value,
|
|
18
|
-
set: (c) => {
|
|
19
|
-
b("update:value", c), b("callback", {
|
|
20
|
-
value: c,
|
|
21
|
-
config: d.config
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}), w = k(() => d.config.options ?? []), A = (c, l) => {
|
|
25
|
-
let n = s.value;
|
|
26
|
-
if (Array.isArray(n)) {
|
|
27
|
-
if (c && l && (l[e.value] === "" || l[e.value] === void 0)) {
|
|
28
|
-
n.splice(0, n.length), n.push("");
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
for (let r = n.length - 1; r >= 0; r--)
|
|
32
|
-
n[r] === "" && n.splice(r, 1);
|
|
33
|
-
if (l[e.children || "children"] && l[e.children || "children"].length) {
|
|
34
|
-
const r = l[e.children || "children"].map((o) => o[e.value]);
|
|
35
|
-
if (c)
|
|
36
|
-
r.forEach((o) => {
|
|
37
|
-
n.includes(o) || n.push(o);
|
|
38
|
-
});
|
|
39
|
-
else
|
|
40
|
-
for (let o = n.length - 1; o >= 0; o--)
|
|
41
|
-
r.includes(n[o]) && n.splice(o, 1);
|
|
42
|
-
}
|
|
43
|
-
n.length == 0 && n.push("");
|
|
44
|
-
}
|
|
45
|
-
}, H = (c) => {
|
|
46
|
-
let l = s.value;
|
|
47
|
-
if (!Array.isArray(l)) return;
|
|
48
|
-
let r = c[e.children || "children"].map((a) => a[e.value]).some((a) => l.includes(a)), o = l.includes(c[e.value]);
|
|
49
|
-
if (r)
|
|
50
|
-
o || l.push(c[e.value]);
|
|
51
|
-
else if (o) {
|
|
52
|
-
let a = l.findIndex((v) => v == c[e.value]);
|
|
53
|
-
l.splice(a, 1);
|
|
54
|
-
}
|
|
55
|
-
for (let a = l.length - 1; a >= 0; a--)
|
|
56
|
-
l[a] === "" && l.splice(a, 1);
|
|
57
|
-
l.length == 0 && l.push("");
|
|
58
|
-
};
|
|
59
|
-
return (c, l) => {
|
|
60
|
-
const n = p("ArrowDown"), r = p("el-icon"), o = p("el-checkbox"), a = p("el-checkbox-group"), v = p("el-popover"), B = p("el-checkbox-button");
|
|
61
|
-
return i(), h(a, E({
|
|
62
|
-
modelValue: s.value,
|
|
63
|
-
"onUpdate:modelValue": l[1] || (l[1] = (t) => s.value = t)
|
|
64
|
-
}, c.config), {
|
|
65
|
-
default: f(() => [
|
|
66
|
-
(i(!0), g(_, null, x(w.value, (t) => (i(), h(B, {
|
|
67
|
-
key: t.value,
|
|
68
|
-
label: t[e.value],
|
|
69
|
-
value: t[e.value],
|
|
70
|
-
onChange: (u) => A(!!u, t)
|
|
71
|
-
}, {
|
|
72
|
-
default: f(() => [
|
|
73
|
-
e.children && (!t[e.children] || t[e.children].length == 0) ? (i(), g(_, { key: 0 }, [
|
|
74
|
-
V(y(t[e.label]), 1)
|
|
75
|
-
], 64)) : e.children ? (i(), h(v, {
|
|
76
|
-
key: 1,
|
|
77
|
-
placement: "bottom",
|
|
78
|
-
trigger: "hover"
|
|
79
|
-
}, {
|
|
80
|
-
reference: f(() => [
|
|
81
|
-
U("div", null, [
|
|
82
|
-
V(y(t[e.label]) + " ", 1),
|
|
83
|
-
m(r, null, {
|
|
84
|
-
default: f(() => [
|
|
85
|
-
m(n)
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
})
|
|
89
|
-
])
|
|
90
|
-
]),
|
|
91
|
-
default: f(() => [
|
|
92
|
-
m(a, {
|
|
93
|
-
modelValue: s.value,
|
|
94
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => s.value = u)
|
|
95
|
-
}, {
|
|
96
|
-
default: f(() => [
|
|
97
|
-
(i(!0), g(_, null, x(t[e.children], (u) => (i(), h(o, {
|
|
98
|
-
key: u[e.value],
|
|
99
|
-
label: u[e.label],
|
|
100
|
-
value: u[e.value],
|
|
101
|
-
style: { "margin-right": "0", width: "100%" },
|
|
102
|
-
onChange: (P) => H(t)
|
|
103
|
-
}, null, 8, ["label", "value", "onChange"]))), 128))
|
|
104
|
-
]),
|
|
105
|
-
_: 2
|
|
106
|
-
}, 1032, ["modelValue"])
|
|
107
|
-
]),
|
|
108
|
-
_: 2
|
|
109
|
-
}, 1024)) : I("", !0)
|
|
110
|
-
]),
|
|
111
|
-
_: 2
|
|
112
|
-
}, 1032, ["label", "value", "onChange"]))), 128))
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 16, ["modelValue"]);
|
|
116
|
-
};
|
|
117
|
-
}
|
|
118
|
-
}), $ = /* @__PURE__ */ F(L, [["__scopeId", "data-v-d508680f"]]);
|
|
119
|
-
export {
|
|
120
|
-
$ as default
|
|
121
|
-
};
|