cimu-parcel 1.2.1 → 1.2.3

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-wBykNdhQ.js"), "../Control/checkbox-select/index.vue": () => import("./index-OUTV4M4C.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-U_izCC-k.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-wBykNdhQ.js"), "../../Control/checkbox-select/index.vue": () => import("./index-OUTV4M4C.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-U_izCC-k.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
- 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";
1
+ import { defineComponent as U, computed as x, resolveComponent as d, createBlock as v, openBlock as u, mergeProps as $, withCtx as s, createElementBlock as f, 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-BA1oJJdI.js";
3
3
  const L = ["onClick"], P = /* @__PURE__ */ U({
4
4
  __name: "index",
5
5
  props: {
@@ -13,7 +13,7 @@ const L = ["onClick"], P = /* @__PURE__ */ U({
13
13
  label: i.config.fieldNames?.label ?? "label",
14
14
  value: i.config.fieldNames?.value ?? "value",
15
15
  children: i.config.fieldNames?.children ?? "children"
16
- }, c = x({
16
+ }, r = x({
17
17
  get: () => i.value,
18
18
  set: (n) => {
19
19
  b("update:value", n), b("callback", {
@@ -22,20 +22,20 @@ const L = ["onClick"], P = /* @__PURE__ */ U({
22
22
  });
23
23
  }
24
24
  }), N = x(() => i.config.options ?? []), w = (n, e) => {
25
- let t = c.value;
25
+ let t = r.value;
26
26
  if (Array.isArray(t)) {
27
27
  if (n && e && (e[l.value] === "" || e[l.value] === void 0)) {
28
28
  t.splice(0, t.length), t.push("");
29
29
  return;
30
30
  }
31
- f();
31
+ p();
32
32
  }
33
33
  }, H = (n) => {
34
- let e = c.value;
34
+ let e = r.value;
35
35
  return Array.isArray(e) ? n.some((t) => e.includes(t[l.value])) : !1;
36
36
  }, B = (n) => {
37
- let e = c.value;
38
- if (!Array.isArray(e)) return;
37
+ let e = r.value;
38
+ Array.isArray(e) || (r.value = [], e = r.value);
39
39
  const t = n.map((o) => o[l.value]);
40
40
  if (t.some((o) => e.includes(o)))
41
41
  for (let o = e.length - 1; o >= 0; o--)
@@ -44,9 +44,9 @@ const L = ["onClick"], P = /* @__PURE__ */ U({
44
44
  t.forEach((o) => {
45
45
  e.includes(o) || e.push(o);
46
46
  });
47
- f();
48
- }, f = () => {
49
- let n = c.value;
47
+ p();
48
+ }, p = () => {
49
+ let n = r.value;
50
50
  if (Array.isArray(n)) {
51
51
  for (let e = n.length - 1; e >= 0; e--)
52
52
  n[e] === "" && n.splice(e, 1);
@@ -56,18 +56,18 @@ const L = ["onClick"], P = /* @__PURE__ */ U({
56
56
  return (n, e) => {
57
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
58
  return u(), v(y, $({
59
- modelValue: c.value,
60
- "onUpdate:modelValue": e[2] || (e[2] = (a) => c.value = a)
59
+ modelValue: r.value,
60
+ "onUpdate:modelValue": e[2] || (e[2] = (a) => r.value = a)
61
61
  }, n.config), {
62
62
  default: s(() => [
63
- (u(!0), p(h, null, C(N.value, (a) => (u(), p(h, {
63
+ (u(!0), f(h, null, C(N.value, (a) => (u(), f(h, {
64
64
  key: a.value
65
65
  }, [
66
66
  !a[l.children || "children"] || a[l.children || "children"].length == 0 ? (u(), v(t, {
67
67
  key: 0,
68
68
  label: a[l.value],
69
69
  value: a[l.value],
70
- onChange: (r) => w(!!r, a)
70
+ onChange: (c) => w(!!c, a)
71
71
  }, {
72
72
  default: s(() => [
73
73
  _(g(a[l.label]), 1)
@@ -81,7 +81,7 @@ const L = ["onClick"], P = /* @__PURE__ */ U({
81
81
  reference: s(() => [
82
82
  z("div", {
83
83
  class: F(["check-box", H(a[l.children || "children"]) ? "active" : ""]),
84
- onClick: (r) => B(a[l.children || "children"])
84
+ onClick: (c) => B(a[l.children || "children"])
85
85
  }, [
86
86
  _(g(a[l.label]) + " ", 1),
87
87
  m(o, null, {
@@ -94,19 +94,19 @@ const L = ["onClick"], P = /* @__PURE__ */ U({
94
94
  ]),
95
95
  default: s(() => [
96
96
  m(y, {
97
- modelValue: c.value,
98
- "onUpdate:modelValue": e[1] || (e[1] = (r) => c.value = r)
97
+ modelValue: r.value,
98
+ "onUpdate:modelValue": e[1] || (e[1] = (c) => r.value = c)
99
99
  }, {
100
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],
101
+ (u(!0), f(h, null, C(a[l.children || "children"], (c) => (u(), v(D, {
102
+ key: c[l.value],
103
+ label: c[l.label],
104
+ value: c[l.value],
105
105
  style: { "margin-right": "0", width: "100%" },
106
- onChange: e[0] || (e[0] = (S) => f())
106
+ onChange: e[0] || (e[0] = (S) => p())
107
107
  }, {
108
108
  default: s(() => [
109
- _(g(r[l.label]), 1)
109
+ _(g(c[l.label]), 1)
110
110
  ]),
111
111
  _: 2
112
112
  }, 1032, ["label", "value"]))), 128))
@@ -122,7 +122,7 @@ const L = ["onClick"], P = /* @__PURE__ */ U({
122
122
  }, 16, ["modelValue"]);
123
123
  };
124
124
  }
125
- }), q = /* @__PURE__ */ I(P, [["__scopeId", "data-v-eddf5afe"]]);
125
+ }), q = /* @__PURE__ */ I(P, [["__scopeId", "data-v-c2bb6f8e"]]);
126
126
  export {
127
127
  q as default
128
128
  };
@@ -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-BA1oJJdI.js";
3
3
  const C = /* @__PURE__ */ v({
4
4
  __name: "index",
5
5
  props: {
@@ -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-BA1oJJdI.js";
3
3
  const C = /* @__PURE__ */ b({
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.3",
5
5
  "type": "module",
6
6
  "main": "dist/cimu-parcel.umd.js",
7
7
  "module": "dist/cimu-parcel.es.js",