cimu-parcel 1.1.6 → 1.1.7
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 +17 -11603
- package/dist/cimu-parcel.umd.js +7 -7
- package/dist/index-BBplahb6.js +11606 -0
- package/dist/index-Bt4fAGZ5.js +108 -0
- package/dist/index-Cob9E3Gg.js +43 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent as D, computed as b, resolveComponent as i, createBlock as f, openBlock as u, mergeProps as E, withCtx as s, createElementBlock as v, Fragment as h, renderList as k, createCommentVNode as U, createTextVNode as x, toDisplayString as V, createVNode as _, createElementVNode as F } from "vue";
|
|
2
|
+
import { _ as I } from "./index-BBplahb6.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(y, { emit: N }) {
|
|
12
|
+
const d = y, g = N, l = {
|
|
13
|
+
label: d.config.fieldNames?.label ?? "label",
|
|
14
|
+
value: d.config.fieldNames?.value ?? "value",
|
|
15
|
+
children: d.config.fieldNames?.children ?? "children"
|
|
16
|
+
}, p = b({
|
|
17
|
+
get: () => d.value,
|
|
18
|
+
set: (c) => {
|
|
19
|
+
g("update:value", c), g("callback", {
|
|
20
|
+
value: c,
|
|
21
|
+
config: d.config
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}), w = b(() => d.config.options ?? []), C = (c, o) => {
|
|
25
|
+
let e = p.value;
|
|
26
|
+
if (Array.isArray(e)) {
|
|
27
|
+
if (c && o && (o.value === "" || o.value === void 0)) {
|
|
28
|
+
e.splice(0, e.length), e.push("");
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
for (let t = e.length - 1; t >= 0; t--)
|
|
32
|
+
e[t] === "" && e.splice(t, 1);
|
|
33
|
+
if (o.children && o.children.length) {
|
|
34
|
+
const t = o.children.map((n) => n.value);
|
|
35
|
+
if (c)
|
|
36
|
+
t.forEach((n) => {
|
|
37
|
+
e.includes(n) || e.push(n);
|
|
38
|
+
});
|
|
39
|
+
else {
|
|
40
|
+
for (let n = e.length - 1; n >= 0; n--)
|
|
41
|
+
t.includes(e[n]) && e.splice(n, 1);
|
|
42
|
+
(!e || e.length == 0) && e.push("");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
return (c, o) => {
|
|
48
|
+
const e = i("ArrowDown"), t = i("el-icon"), n = i("el-checkbox"), m = i("el-checkbox-group"), A = i("el-popover"), B = i("el-checkbox-button");
|
|
49
|
+
return u(), f(m, E({
|
|
50
|
+
modelValue: p.value,
|
|
51
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => p.value = a)
|
|
52
|
+
}, c.config), {
|
|
53
|
+
default: s(() => [
|
|
54
|
+
(u(!0), v(h, null, k(w.value, (a) => (u(), f(B, {
|
|
55
|
+
key: a.value,
|
|
56
|
+
label: a[l.value],
|
|
57
|
+
value: a[l.value],
|
|
58
|
+
onChange: (r) => C(!!r, a)
|
|
59
|
+
}, {
|
|
60
|
+
default: s(() => [
|
|
61
|
+
l.children && (!a[l.children] || a[l.children].length == 0) ? (u(), v(h, { key: 0 }, [
|
|
62
|
+
x(V(a[l.label]), 1)
|
|
63
|
+
], 64)) : l.children ? (u(), f(A, {
|
|
64
|
+
key: 1,
|
|
65
|
+
placement: "bottom",
|
|
66
|
+
trigger: "hover"
|
|
67
|
+
}, {
|
|
68
|
+
reference: s(() => [
|
|
69
|
+
F("div", null, [
|
|
70
|
+
x(V(a[l.label]) + " ", 1),
|
|
71
|
+
_(t, null, {
|
|
72
|
+
default: s(() => [
|
|
73
|
+
_(e)
|
|
74
|
+
]),
|
|
75
|
+
_: 1
|
|
76
|
+
})
|
|
77
|
+
])
|
|
78
|
+
]),
|
|
79
|
+
default: s(() => [
|
|
80
|
+
_(m, {
|
|
81
|
+
modelValue: p.value,
|
|
82
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => p.value = r)
|
|
83
|
+
}, {
|
|
84
|
+
default: s(() => [
|
|
85
|
+
(u(!0), v(h, null, k(a[l.children], (r) => (u(), f(n, {
|
|
86
|
+
key: r[l.value],
|
|
87
|
+
label: r[l.label],
|
|
88
|
+
value: r[l.value],
|
|
89
|
+
style: { "margin-right": "0", width: "100%" }
|
|
90
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
91
|
+
]),
|
|
92
|
+
_: 2
|
|
93
|
+
}, 1032, ["modelValue"])
|
|
94
|
+
]),
|
|
95
|
+
_: 2
|
|
96
|
+
}, 1024)) : U("", !0)
|
|
97
|
+
]),
|
|
98
|
+
_: 2
|
|
99
|
+
}, 1032, ["label", "value", "onChange"]))), 128))
|
|
100
|
+
]),
|
|
101
|
+
_: 1
|
|
102
|
+
}, 16, ["modelValue"]);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}), T = /* @__PURE__ */ I(L, [["__scopeId", "data-v-99eedc2c"]]);
|
|
106
|
+
export {
|
|
107
|
+
T as default
|
|
108
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { defineComponent as v, computed as c, resolveComponent as s, createBlock as i, openBlock as a, mergeProps as g, withCtx as b, createElementBlock as k, Fragment as x, renderList as V } from "vue";
|
|
2
|
+
import { _ as B } from "./index-BBplahb6.js";
|
|
3
|
+
const C = /* @__PURE__ */ v({
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
value: {},
|
|
7
|
+
config: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["update:value", "callback"],
|
|
10
|
+
setup(p, { emit: d }) {
|
|
11
|
+
const e = p, t = d, n = {
|
|
12
|
+
label: e.config.fieldNames?.label ?? "label",
|
|
13
|
+
value: e.config.fieldNames?.value ?? "value"
|
|
14
|
+
}, u = c({
|
|
15
|
+
get: () => e.value,
|
|
16
|
+
set: (l) => {
|
|
17
|
+
t("update:value", l), t("callback", {
|
|
18
|
+
value: l,
|
|
19
|
+
config: e.config
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}), m = c(() => e.config.options ?? []);
|
|
23
|
+
return (l, r) => {
|
|
24
|
+
const f = s("el-radio-button"), _ = s("el-radio-group");
|
|
25
|
+
return a(), i(_, g({
|
|
26
|
+
modelValue: u.value,
|
|
27
|
+
"onUpdate:modelValue": r[0] || (r[0] = (o) => u.value = o)
|
|
28
|
+
}, l.config), {
|
|
29
|
+
default: b(() => [
|
|
30
|
+
(a(!0), k(x, null, V(m.value, (o) => (a(), i(f, {
|
|
31
|
+
key: o,
|
|
32
|
+
label: o[n.label],
|
|
33
|
+
value: o[n.value]
|
|
34
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
35
|
+
]),
|
|
36
|
+
_: 1
|
|
37
|
+
}, 16, ["modelValue"]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
}), y = /* @__PURE__ */ B(C, [["__scopeId", "data-v-8e687060"]]);
|
|
41
|
+
export {
|
|
42
|
+
y as default
|
|
43
|
+
};
|
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/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/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/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"}
|