cimu-parcel 1.2.0 → 1.2.2

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.
@@ -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-BYnrJOvx.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
+ };
@@ -0,0 +1,131 @@
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
+ };
@@ -1,5 +1,5 @@
1
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-CK8kaoFd.js";
2
+ import { _ as B } from "./index-BYnrJOvx.js";
3
3
  const C = /* @__PURE__ */ v({
4
4
  __name: "index",
5
5
  props: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cimu-parcel",
3
3
  "private": false,
4
- "version": "1.2.0",
4
+ "version": "1.2.2",
5
5
  "type": "module",
6
6
  "main": "dist/cimu-parcel.umd.js",
7
7
  "module": "dist/cimu-parcel.es.js",
@@ -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"}
@@ -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
- };