cimu-parcel 1.2.1 → 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.
@@ -10483,7 +10483,7 @@ const X0 = {
10483
10483
  labelPosition: { default: "top" }
10484
10484
  },
10485
10485
  setup(e, { expose: t }) {
10486
- const n = /* @__PURE__ */ Object.assign({ "../Control/cascader/index.vue": () => import("./index-Cp2ROCzw.js"), "../Control/checkbox-button/index.vue": () => import("./index-DYMR3eYx.js"), "../Control/checkbox-select/index.vue": () => import("./index-D3VVhQmq.js"), "../Control/checkbox/index.vue": () => import("./index-C0YE_rli.js"), "../Control/date/index.vue": () => import("./index-CGN5RDhE.js"), "../Control/input-number/index.vue": () => import("./index-BwpIgt1h.js"), "../Control/input/index.vue": () => import("./index-CMSv7-bi.js"), "../Control/radio-button/index.vue": () => import("./index-BFX_Chja.js"), "../Control/radio/index.vue": () => import("./index-BIvKmDqG.js"), "../Control/select/index.vue": () => import("./index-BJIuc_jk.js"), "../Control/switch/index.vue": () => import("./index-CQMqqUV8.js"), "../Control/tree-select/index.vue": () => import("./index-DVOMbrxl.js") }), o = {};
10486
+ const n = /* @__PURE__ */ Object.assign({ "../Control/cascader/index.vue": () => import("./index-Cp2ROCzw.js"), "../Control/checkbox-button/index.vue": () => import("./index-Bz8G78U0.js"), "../Control/checkbox-select/index.vue": () => import("./index-CkXzI0OO.js"), "../Control/checkbox/index.vue": () => import("./index-C0YE_rli.js"), "../Control/date/index.vue": () => import("./index-CGN5RDhE.js"), "../Control/input-number/index.vue": () => import("./index-BwpIgt1h.js"), "../Control/input/index.vue": () => import("./index-CMSv7-bi.js"), "../Control/radio-button/index.vue": () => import("./index-y5zel9VQ.js"), "../Control/radio/index.vue": () => import("./index-BIvKmDqG.js"), "../Control/select/index.vue": () => import("./index-BJIuc_jk.js"), "../Control/switch/index.vue": () => import("./index-CQMqqUV8.js"), "../Control/tree-select/index.vue": () => import("./index-DVOMbrxl.js") }), o = {};
10487
10487
  Object.keys(n).forEach((f) => {
10488
10488
  let b = f.split("/")[2] + "Component";
10489
10489
  o[b] = di(n[f]);
@@ -10643,7 +10643,7 @@ const X0 = {
10643
10643
  }
10644
10644
  },
10645
10645
  setup(e) {
10646
- const t = e, n = /* @__PURE__ */ Object.assign({ "../../Control/cascader/index.vue": () => import("./index-Cp2ROCzw.js"), "../../Control/checkbox-button/index.vue": () => import("./index-DYMR3eYx.js"), "../../Control/checkbox-select/index.vue": () => import("./index-D3VVhQmq.js"), "../../Control/checkbox/index.vue": () => import("./index-C0YE_rli.js"), "../../Control/date/index.vue": () => import("./index-CGN5RDhE.js"), "../../Control/input-number/index.vue": () => import("./index-BwpIgt1h.js"), "../../Control/input/index.vue": () => import("./index-CMSv7-bi.js"), "../../Control/radio-button/index.vue": () => import("./index-BFX_Chja.js"), "../../Control/radio/index.vue": () => import("./index-BIvKmDqG.js"), "../../Control/select/index.vue": () => import("./index-BJIuc_jk.js"), "../../Control/switch/index.vue": () => import("./index-CQMqqUV8.js"), "../../Control/tree-select/index.vue": () => import("./index-DVOMbrxl.js") }), o = {};
10646
+ const t = e, n = /* @__PURE__ */ Object.assign({ "../../Control/cascader/index.vue": () => import("./index-Cp2ROCzw.js"), "../../Control/checkbox-button/index.vue": () => import("./index-Bz8G78U0.js"), "../../Control/checkbox-select/index.vue": () => import("./index-CkXzI0OO.js"), "../../Control/checkbox/index.vue": () => import("./index-C0YE_rli.js"), "../../Control/date/index.vue": () => import("./index-CGN5RDhE.js"), "../../Control/input-number/index.vue": () => import("./index-BwpIgt1h.js"), "../../Control/input/index.vue": () => import("./index-CMSv7-bi.js"), "../../Control/radio-button/index.vue": () => import("./index-y5zel9VQ.js"), "../../Control/radio/index.vue": () => import("./index-BIvKmDqG.js"), "../../Control/select/index.vue": () => import("./index-BJIuc_jk.js"), "../../Control/switch/index.vue": () => import("./index-CQMqqUV8.js"), "../../Control/tree-select/index.vue": () => import("./index-DVOMbrxl.js") }), o = {};
10647
10647
  Object.keys(n).forEach((d) => {
10648
10648
  const h = `${d.split("/")[3]}Component`;
10649
10649
  o[h] = di(n[d]);
@@ -1,5 +1,5 @@
1
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";
2
+ import { _ as B } from "./index-BYnrJOvx.js";
3
3
  const C = /* @__PURE__ */ b({
4
4
  __name: "index",
5
5
  props: {
@@ -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-CJOwHXRx.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.1",
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,128 +0,0 @@
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
- };