asiaint-lowcode 3.1.19 → 3.1.20

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.
Files changed (40) hide show
  1. package/README.md +31 -31
  2. package/dist/asiaint-lowcode.js +1 -1
  3. package/dist/asiaint-lowcode.umd.cjs +43 -15
  4. package/dist/index.d.ts +4 -6
  5. package/dist/lazy/{Card-C6-Pw2Kt.js → Card-DUeA7tS7.js} +7 -6
  6. package/dist/lazy/{Cascader-BQlg_B1J.js → Cascader-By4JG0Zk.js} +14 -13
  7. package/dist/lazy/{Checkbox-BL9wugR4.js → Checkbox-bIhIq9Vy.js} +19 -18
  8. package/dist/lazy/{Collapse-VBM-r16N.js → Collapse-CU9pt7lM.js} +1 -1
  9. package/dist/lazy/{Component-TPlA312X.js → Component-COne-qtJ.js} +1 -1
  10. package/dist/lazy/{Component-BNs8l3D0.js → Component-CYK98tOs.js} +2 -2
  11. package/dist/lazy/{Component-C2I5t5q4.js → Component-CiRhyD96.js} +1 -1
  12. package/dist/lazy/{Component-B16t7OV8.js → Component-DD1yYUwx.js} +1 -1
  13. package/dist/lazy/Component-ji09Ho4V.js +121 -0
  14. package/dist/lazy/{Component-D4pyG7EA.js → Component-ovbFedRc.js} +2 -2
  15. package/dist/lazy/{CurdCard-C0CV5eG_.js → CurdCard-ohFL5KOI.js} +9 -8
  16. package/dist/lazy/{Custom-Ne8yN2Ea.js → Custom-f5P-W0RO.js} +7 -7
  17. package/dist/lazy/{DatePicker-BUZW95kN.js → DatePicker-DXBHD93w.js} +1 -1
  18. package/dist/lazy/{DragList-ClgQ3QJ7.js → DragList-B1hCgkPo.js} +4 -3
  19. package/dist/lazy/{FilterSearch-EYXFcLfg.js → FilterSearch-C0Gb4sax.js} +8 -8
  20. package/dist/lazy/{FormList-rqifCuNE.js → FormList-DKVnGMCb.js} +1 -1
  21. package/dist/lazy/{Grid-D760rpVd.js → Grid-DyYDGCUL.js} +1 -1
  22. package/dist/lazy/{Inline-C2kevZlA.js → Inline-lozK8MNz.js} +3 -3
  23. package/dist/lazy/{JsonEdit-BGNMo9TC.js → JsonEdit-B7RNvAKc.js} +3 -3
  24. package/dist/lazy/{LogList-DistvWBw.js → LogList-BpIXnYrM.js} +7 -7
  25. package/dist/lazy/{ObjGroup-Do3MBFB4.js → ObjGroup-BnqOtXse.js} +1 -1
  26. package/dist/lazy/{OfferDetails-1lpktyAd.js → OfferDetails-COAwm0zQ.js} +11 -11
  27. package/dist/lazy/{Pagination-Bs6c14gG.js → Pagination-Dy2-eb4H.js} +7 -7
  28. package/dist/lazy/{Progress-BYMD3T21.js → Progress-CmOxnBQX.js} +5 -5
  29. package/dist/lazy/{Radio-Cpxboojo.js → Radio-CDPyWQB6.js} +21 -20
  30. package/dist/lazy/{SearchSelect-Dx30Uf_w.js → SearchSelect-C532P8CM.js} +34 -32
  31. package/dist/lazy/{Select-DfBKMQek.js → Select-BUXxtpdm.js} +14 -13
  32. package/dist/lazy/{Table-DtB409LT.js → Table-CTfkRsyF.js} +79 -78
  33. package/dist/lazy/{Tabs-CFDgaNmd.js → Tabs-C_hdBA1i.js} +1 -1
  34. package/dist/lazy/{Wrapper-BpsPO0Yu.js → Wrapper-D_J12fAp.js} +9 -9
  35. package/dist/lazy/{index-Ch0AEG6l.js → index-Fgpo2Weq.js} +78 -62
  36. package/dist/lazy/{useSelect-MBMFJjvJ.js → useSelect-CFf27TOg.js} +1 -1
  37. package/dist/style.css +2 -2
  38. package/global.d.ts +10 -10
  39. package/package.json +36 -36
  40. package/dist/lazy/Component-B9_KjLaT.js +0 -118
@@ -1,5 +1,5 @@
1
- import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as i, createElementVNode as s, normalizeStyle as d, toDisplayString as l, normalizeClass as u, createTextVNode as g, createCommentVNode as v } from "vue";
2
- import { b as y } from "./index-Ch0AEG6l.js";
1
+ import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as d, createElementVNode as s, normalizeStyle as i, toDisplayString as l, normalizeClass as u, createTextVNode as g, createCommentVNode as v } from "vue";
2
+ import { b as y } from "./index-Fgpo2Weq.js";
3
3
  const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "title" }, m = { class: "sub-title" }, k = { class: "content" }, C = { key: 0 }, L = /* @__PURE__ */ p({
4
4
  __name: "LogList",
5
5
  props: {
@@ -7,7 +7,7 @@ const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "titl
7
7
  },
8
8
  setup(x) {
9
9
  return (_, N) => (e(), o("div", b, [
10
- (e(!0), o(a, null, i(_.content, (t) => {
10
+ (e(!0), o(a, null, d(_.content, (t) => {
11
11
  var r;
12
12
  return e(), o("div", {
13
13
  class: "log-list-item",
@@ -15,18 +15,18 @@ const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "titl
15
15
  }, [
16
16
  s("div", {
17
17
  class: "left-bar",
18
- style: d({ backgroundColor: t.color })
18
+ style: i({ backgroundColor: t.color })
19
19
  }, null, 4),
20
20
  s("div", f, [
21
21
  s("div", {
22
22
  class: "circle",
23
- style: d({ backgroundColor: t.color })
23
+ style: i({ backgroundColor: t.color })
24
24
  }, l((r = t.title) == null ? void 0 : r[0]), 5),
25
25
  s("div", h, l(t.title), 1),
26
26
  s("div", m, l(t.subTitle), 1)
27
27
  ]),
28
28
  s("div", k, [
29
- (e(!0), o(a, null, i(t.content, (n, c) => (e(), o("span", {
29
+ (e(!0), o(a, null, d(t.content, (n, c) => (e(), o("span", {
30
30
  key: c,
31
31
  class: u({ bold: n.style === "bold", normal: n.style === "normal" })
32
32
  }, [
@@ -38,7 +38,7 @@ const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "titl
38
38
  }), 128))
39
39
  ]));
40
40
  }
41
- }), B = /* @__PURE__ */ y(L, [["__scopeId", "data-v-fe451915"]]);
41
+ }), B = /* @__PURE__ */ y(L, [["__scopeId", "data-v-646d4f4d"]]);
42
42
  export {
43
43
  B as default
44
44
  };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, inject as i, provide as f, ref as d, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
2
- import { u as j, e as h, f as k } from "./index-Ch0AEG6l.js";
2
+ import { u as j, e as h, f as k } from "./index-Fgpo2Weq.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,
@@ -1,5 +1,5 @@
1
- import { defineComponent as D, resolveComponent as M, openBlock as l, createBlock as O, withCtx as B, createVNode as g, createElementVNode as i, createElementBlock as r, Fragment as u, renderList as b, toDisplayString as y, createCommentVNode as I, ref as E, inject as N, watchEffect as R, onMounted as S, normalizeStyle as $, unref as A } from "vue";
2
- import { k as L, $ as U, _ as z, b as x } from "./index-Ch0AEG6l.js";
1
+ import { defineComponent as D, resolveComponent as M, openBlock as l, createBlock as O, withCtx as B, createVNode as g, createElementVNode as i, createElementBlock as r, Fragment as u, renderList as y, toDisplayString as b, createCommentVNode as I, ref as E, inject as N, watchEffect as R, onMounted as S, normalizeStyle as $, unref as A } from "vue";
2
+ import { k as L, $ as U, _ as z, b as x } from "./index-Fgpo2Weq.js";
3
3
  const F = { class: "content" }, K = { class: "product-list" }, V = { class: "attribute-list" }, j = {
4
4
  key: 0,
5
5
  class: "attribute-list-item"
@@ -28,24 +28,24 @@ const F = { class: "content" }, K = { class: "product-list" }, V = { class: "att
28
28
  i("div", F, [
29
29
  p[0] || (p[0] = i("div", { class: "product-title" }, "Product", -1)),
30
30
  i("div", K, [
31
- (l(!0), r(u, null, b(a.data.product, (s) => (l(), r("div", {
31
+ (l(!0), r(u, null, y(a.data.product, (s) => (l(), r("div", {
32
32
  class: "product-item",
33
33
  key: s.label
34
- }, y(s.label), 1))), 128))
34
+ }, b(s.label), 1))), 128))
35
35
  ]),
36
36
  i("div", V, [
37
- (l(!0), r(u, null, b(a.data.product, (s) => (l(), r(u, {
37
+ (l(!0), r(u, null, y(a.data.product, (s) => (l(), r(u, {
38
38
  key: s.label
39
39
  }, [
40
40
  s.children.length > 0 ? (l(), r("div", j, [
41
- i("div", W, y(s.label), 1),
41
+ i("div", W, b(s.label), 1),
42
42
  i("div", q, [
43
- (l(!0), r(u, null, b(s.children, (d) => (l(), r("div", {
43
+ (l(!0), r(u, null, y(s.children, (d) => (l(), r("div", {
44
44
  class: "attribute-item",
45
45
  key: d.label
46
46
  }, [
47
- i("div", G, y(d.label), 1),
48
- i("div", H, y(d.value || "--"), 1)
47
+ i("div", G, b(d.label), 1),
48
+ i("div", H, b(d.value || "--"), 1)
49
49
  ]))), 128))
50
50
  ])
51
51
  ])) : I("", !0)
@@ -160,7 +160,7 @@ const F = { class: "content" }, K = { class: "product-list" }, V = { class: "att
160
160
  "--gap": t.gap + "px"
161
161
  })
162
162
  }, [
163
- (l(!0), r(u, null, b(p.value, (n, o) => (l(), r("div", {
163
+ (l(!0), r(u, null, y(p.value, (n, o) => (l(), r("div", {
164
164
  class: "card-list-item",
165
165
  key: o
166
166
  }, [
@@ -180,7 +180,7 @@ const F = { class: "content" }, K = { class: "product-list" }, V = { class: "att
180
180
  ])) : I("", !0)
181
181
  ], 64));
182
182
  }
183
- }), ee = /* @__PURE__ */ x(X, [["__scopeId", "data-v-f20f5150"]]);
183
+ }), ee = /* @__PURE__ */ x(X, [["__scopeId", "data-v-43ded0ba"]]);
184
184
  export {
185
185
  ee as default
186
186
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as C, ref as s, readonly as f, onUnmounted as v, resolveComponent as S, openBlock as h, createElementBlock as P, normalizeStyle as N, createVNode as B } from "vue";
2
- import { c as _, j as b, b as j } from "./index-Ch0AEG6l.js";
1
+ import { defineComponent as y, ref as s, readonly as C, onUnmounted as v, resolveComponent as S, openBlock as h, createElementBlock as P, normalizeStyle as N, createVNode as B } from "vue";
2
+ import { c as _, j as b, b as j } from "./index-Fgpo2Weq.js";
3
3
  import "element-plus";
4
- const w = /* @__PURE__ */ C({
4
+ const w = /* @__PURE__ */ y({
5
5
  __name: "Pagination",
6
6
  props: {
7
7
  pageSizes: {},
@@ -31,7 +31,7 @@ const w = /* @__PURE__ */ C({
31
31
  } catch (n) {
32
32
  console.error(n);
33
33
  }
34
- }, g = f({
34
+ }, g = C({
35
35
  getPagination: m,
36
36
  setTotal: c,
37
37
  type: "pagination"
@@ -43,12 +43,12 @@ const w = /* @__PURE__ */ C({
43
43
  });
44
44
  }
45
45
  return l(g), (e, n) => {
46
- const y = S("el-pagination");
46
+ const f = S("el-pagination");
47
47
  return h(), P("div", {
48
48
  class: "pagination-wrapper",
49
49
  style: N(e.style)
50
50
  }, [
51
- B(y, {
51
+ B(f, {
52
52
  layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
53
53
  total: i.value,
54
54
  "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
@@ -64,7 +64,7 @@ const w = /* @__PURE__ */ C({
64
64
  ], 4);
65
65
  };
66
66
  }
67
- }), L = /* @__PURE__ */ j(w, [["__scopeId", "data-v-d4956ca2"]]);
67
+ }), L = /* @__PURE__ */ j(w, [["__scopeId", "data-v-f199e192"]]);
68
68
  export {
69
69
  L as default
70
70
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, resolveComponent as m, openBlock as n, createElementBlock as s, createVNode as l, withCtx as a, Fragment as u, renderList as f, createBlock as g, createElementVNode as e, toDisplayString as r, createTextVNode as h, unref as k, createCommentVNode as N } from "vue";
2
- import { I as v, _ as b, b as C } from "./index-Ch0AEG6l.js";
3
- const V = { class: "progress" }, y = { class: "timeline-content" }, B = { class: "timeline-content__title" }, E = {
2
+ import { I as v, _ as C, b as V } from "./index-Fgpo2Weq.js";
3
+ const b = { class: "progress" }, y = { class: "timeline-content" }, B = { class: "timeline-content__title" }, E = {
4
4
  key: 0,
5
5
  class: "empty-content"
6
6
  }, I = /* @__PURE__ */ p({
@@ -11,7 +11,7 @@ const V = { class: "progress" }, y = { class: "timeline-content" }, B = { class:
11
11
  setup(w) {
12
12
  return (o, i) => {
13
13
  const _ = m("el-timeline-item"), c = m("el-timeline");
14
- return n(), s("div", V, [
14
+ return n(), s("div", b, [
15
15
  l(c, null, {
16
16
  default: a(() => [
17
17
  (n(!0), s(u, null, f(o.data, (t, d) => (n(), g(_, {
@@ -39,7 +39,7 @@ const V = { class: "progress" }, y = { class: "timeline-content" }, B = { class:
39
39
  _: 1
40
40
  }),
41
41
  !o.data || o.data.length === 0 ? (n(), s("div", E, [
42
- l(k(b), {
42
+ l(k(C), {
43
43
  name: "tableEmpty",
44
44
  style: { width: 56, height: 56 }
45
45
  }),
@@ -48,7 +48,7 @@ const V = { class: "progress" }, y = { class: "timeline-content" }, B = { class:
48
48
  ]);
49
49
  };
50
50
  }
51
- }), F = /* @__PURE__ */ C(I, [["__scopeId", "data-v-6b11ed96"]]);
51
+ }), F = /* @__PURE__ */ V(I, [["__scopeId", "data-v-088a0692"]]);
52
52
  export {
53
53
  F as default
54
54
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as T, mergeModels as F, useModel as S, inject as g, resolveComponent as u, resolveDirective as w, openBlock as o, createElementBlock as c, toDisplayString as z, unref as i, withDirectives as I, createBlock as f, mergeProps as K, withCtx as h, createVNode as N, Fragment as k, renderList as C } from "vue";
2
- import { u as O, b as P } from "./index-Ch0AEG6l.js";
3
- import { u as R } from "./useSelect-MBMFJjvJ.js";
4
- const $ = { key: 0 }, j = /* @__PURE__ */ T({
1
+ import { defineComponent as T, mergeModels as F, useModel as S, inject as g, resolveComponent as u, resolveDirective as w, openBlock as o, createElementBlock as c, toDisplayString as z, unref as i, withDirectives as I, createBlock as f, mergeProps as h, withCtx as K, createVNode as $, Fragment as C, renderList as k } from "vue";
2
+ import { u as N, b as O } from "./index-Fgpo2Weq.js";
3
+ import { u as P } from "./useSelect-CFf27TOg.js";
4
+ const R = { key: 0 }, j = /* @__PURE__ */ T({
5
5
  __name: "Radio",
6
6
  props: /* @__PURE__ */ F({
7
7
  options: { default: () => [] },
@@ -29,40 +29,41 @@ const $ = { key: 0 }, j = /* @__PURE__ */ T({
29
29
  }),
30
30
  emits: ["update:modelValue"],
31
31
  setup(y) {
32
- const t = y, p = S(y, "modelValue"), m = O(), b = g("ruleModule", void 0), M = g("pageMethodMap", {}), _ = (e) => {
33
- const { valueKey: d = "value", name: s } = t;
34
- let l = {};
35
- if (l = r.value.find((n) => n[d] === e) || {}, m.selectData && s && m.updateSelectData(s, l), t.onChange && b)
32
+ const l = y, p = S(y, "modelValue"), m = N(), b = g("ruleModule", void 0), M = g("pageMethodMap", {}), _ = (e) => {
33
+ const { valueKey: d = "value", name: s } = l;
34
+ let n = {};
35
+ if (n = r.value.find((t) => t[d] === e) || {}, m.selectData && s && m.updateSelectData(s, n), l.onChange && b)
36
36
  try {
37
- b[t.onChange](M, e, l);
38
- } catch (n) {
39
- console.error(n);
37
+ b[l.onChange](M, e, n);
38
+ } catch (t) {
39
+ console.error(t + `
40
+ onChange: ${l.onChange}`);
40
41
  }
41
- }, { currentOptions: r, loading: B } = R(t);
42
+ }, { currentOptions: r, loading: B } = P(l);
42
43
  return (e, d) => {
43
44
  var v;
44
- const s = u("el-radio"), l = u("el-radio-button"), n = u("el-space"), V = u("el-radio-group"), D = w("loading");
45
- return e.read ? (o(), c("div", $, z(((v = i(r).find((a) => a[e.valueKey] === p.value)) == null ? void 0 : v[e.labelKey]) || "--"), 1)) : I((o(), f(V, K({
45
+ const s = u("el-radio"), n = u("el-radio-button"), t = u("el-space"), V = u("el-radio-group"), D = w("loading");
46
+ return e.read ? (o(), c("div", R, z(((v = i(r).find((a) => a[e.valueKey] === p.value)) == null ? void 0 : v[e.labelKey]) || "--"), 1)) : I((o(), f(V, h({
46
47
  key: 1,
47
48
  modelValue: p.value,
48
49
  "onUpdate:modelValue": d[0] || (d[0] = (a) => p.value = a),
49
50
  onChange: _
50
51
  }, e.$attrs), {
51
- default: h(() => [
52
- N(n, {
52
+ default: K(() => [
53
+ $(t, {
53
54
  wrap: "",
54
55
  direction: e.direction,
55
56
  size: [e.space, e.space],
56
57
  alignment: "normal"
57
58
  }, {
58
- default: h(() => [
59
- e.optionType === "circle" || e.optionType === "border" ? (o(!0), c(k, { key: 0 }, C(i(r), (a) => (o(), f(s, {
59
+ default: K(() => [
60
+ e.optionType === "circle" || e.optionType === "border" ? (o(!0), c(C, { key: 0 }, k(i(r), (a) => (o(), f(s, {
60
61
  key: a[e.valueKey],
61
62
  label: a[e.labelKey],
62
63
  value: a[e.valueKey],
63
64
  disabled: a[e.disabledKey],
64
65
  border: e.optionType === "border"
65
- }, null, 8, ["label", "value", "disabled", "border"]))), 128)) : (o(!0), c(k, { key: 1 }, C(i(r), (a) => (o(), f(l, K({
66
+ }, null, 8, ["label", "value", "disabled", "border"]))), 128)) : (o(!0), c(C, { key: 1 }, k(i(r), (a) => (o(), f(n, h({
66
67
  key: a[e.valueKey],
67
68
  label: a[e.labelKey],
68
69
  value: a[e.valueKey],
@@ -80,7 +81,7 @@ const $ = { key: 0 }, j = /* @__PURE__ */ T({
80
81
  ]);
81
82
  };
82
83
  }
83
- }), q = /* @__PURE__ */ P(j, [["__scopeId", "data-v-1315a0b2"]]);
84
+ }), q = /* @__PURE__ */ O(j, [["__scopeId", "data-v-1e24870a"]]);
84
85
  export {
85
86
  q as default
86
87
  };
@@ -1,12 +1,12 @@
1
- import { defineComponent as F, mergeModels as w, useModel as A, inject as S, resolveComponent as f, resolveDirective as I, openBlock as o, createElementBlock as i, toDisplayString as y, unref as u, withDirectives as N, createBlock as C, mergeProps as j, withCtx as b, Fragment as O, renderList as P, createTextVNode as T, createVNode as k } from "vue";
2
- import { u as $, _ as E, b as L } from "./index-Ch0AEG6l.js";
3
- import { u as U } from "./useSelect-MBMFJjvJ.js";
1
+ import { defineComponent as F, mergeModels as $, useModel as w, inject as K, resolveComponent as f, resolveDirective as A, openBlock as t, createElementBlock as i, toDisplayString as h, unref as u, withDirectives as I, createBlock as C, mergeProps as N, withCtx as y, Fragment as j, renderList as O, createTextVNode as P, createVNode as k } from "vue";
2
+ import { u as T, _ as E, b as L } from "./index-Fgpo2Weq.js";
3
+ import { u as U } from "./useSelect-CFf27TOg.js";
4
4
  const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
5
5
  key: 1,
6
6
  class: "search-select-wrapper"
7
7
  }, J = /* @__PURE__ */ F({
8
8
  __name: "SearchSelect",
9
- props: /* @__PURE__ */ w({
9
+ props: /* @__PURE__ */ $({
10
10
  onSearch: {},
11
11
  disabled: { type: Boolean },
12
12
  read: { type: Boolean },
@@ -31,36 +31,38 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
31
31
  modelModifiers: {}
32
32
  }),
33
33
  emits: ["update:modelValue"],
34
- setup(v) {
35
- const t = v, r = A(v, "modelValue"), h = $(), c = S("ruleModule", void 0), g = S("pageMethodMap", {}), B = (e) => {
36
- const { valueKey: d = "value", multiple: m, name: p } = t;
34
+ setup(b) {
35
+ const a = b, r = w(b, "modelValue"), v = T(), c = K("ruleModule", void 0), g = K("pageMethodMap", {}), B = (e) => {
36
+ const { valueKey: s = "value", multiple: m, name: p } = a;
37
37
  let n = {};
38
- if (m && Array.isArray(e) ? n = s.value.filter((a) => e.includes(a[d])) : n = s.value.find((a) => a[d] === e) || {}, h.selectData && p && h.updateSelectData(p, n), t.onChange && c)
38
+ if (m && Array.isArray(e) ? n = d.value.filter((o) => e.includes(o[s])) : n = d.value.find((o) => o[s] === e) || {}, v.selectData && p && v.updateSelectData(p, n), a.onChange && c)
39
39
  try {
40
- c[t.onChange](g, e, n);
41
- } catch (a) {
42
- console.error(a);
40
+ c[a.onChange](g, e, n);
41
+ } catch (o) {
42
+ console.error(o + `
43
+ onChange: ${a.onChange}`);
43
44
  }
44
45
  }, M = () => {
45
- if (t.onSearch && c)
46
+ if (a.onSearch && c)
46
47
  try {
47
- c[t.onSearch](g);
48
+ c[a.onSearch](g);
48
49
  } catch (e) {
49
- console.error(e);
50
+ console.error(e + `
51
+ onSearch: ${a.onSearch}`);
50
52
  }
51
- }, { currentOptions: s, loading: V } = U(t);
52
- return (e, d) => {
53
+ }, { currentOptions: d, loading: V } = U(a);
54
+ return (e, s) => {
53
55
  var _;
54
- const m = f("el-option"), p = f("el-select"), n = f("el-button"), a = I("loading");
55
- return e.read ? (o(), i("div", q, [
56
- e.multiple ? (o(), i("div", z, y(r.value && r.value.map((l) => {
57
- var K;
58
- return (K = u(s).find((D) => D[e.valueKey] === l)) == null ? void 0 : K[e.labelKey];
59
- }).join("、")), 1)) : (o(), i("div", G, y(((_ = u(s).find((l) => l[e.valueKey] === r.value)) == null ? void 0 : _[e.labelKey]) || "--"), 1))
60
- ])) : (o(), i("div", H, [
61
- N((o(), C(p, j({
56
+ const m = f("el-option"), p = f("el-select"), n = f("el-button"), o = A("loading");
57
+ return e.read ? (t(), i("div", q, [
58
+ e.multiple ? (t(), i("div", z, h(r.value && r.value.map((l) => {
59
+ var S;
60
+ return (S = u(d).find((D) => D[e.valueKey] === l)) == null ? void 0 : S[e.labelKey];
61
+ }).join("、")), 1)) : (t(), i("div", G, h(((_ = u(d).find((l) => l[e.valueKey] === r.value)) == null ? void 0 : _[e.labelKey]) || "--"), 1))
62
+ ])) : (t(), i("div", H, [
63
+ I((t(), C(p, N({
62
64
  modelValue: r.value,
63
- "onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l)
65
+ "onUpdate:modelValue": s[0] || (s[0] = (l) => r.value = l)
64
66
  }, e.$attrs, {
65
67
  onChange: B,
66
68
  multiple: e.multiple,
@@ -68,29 +70,29 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
68
70
  filterable: "",
69
71
  disabled: e.disabled
70
72
  }), {
71
- default: b(() => [
72
- (o(!0), i(O, null, P(u(s), (l) => (o(), C(m, {
73
+ default: y(() => [
74
+ (t(!0), i(j, null, O(u(d), (l) => (t(), C(m, {
73
75
  key: l[e.valueKey],
74
76
  label: l[e.labelKey],
75
77
  value: l[e.valueKey],
76
78
  disabled: l[e.disabledKey]
77
79
  }, {
78
- default: b(() => [
79
- T(y(l[e.labelKey]), 1)
80
+ default: y(() => [
81
+ P(h(l[e.labelKey]), 1)
80
82
  ]),
81
83
  _: 2
82
84
  }, 1032, ["label", "value", "disabled"]))), 128))
83
85
  ]),
84
86
  _: 1
85
87
  }, 16, ["modelValue", "multiple", "disabled"])), [
86
- [a, u(V)]
88
+ [o, u(V)]
87
89
  ]),
88
90
  k(n, {
89
91
  onClick: M,
90
92
  disabled: e.disabled,
91
93
  class: "search-btn"
92
94
  }, {
93
- default: b(() => [
95
+ default: y(() => [
94
96
  k(u(E), { name: "search" })
95
97
  ]),
96
98
  _: 1
@@ -98,7 +100,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
98
100
  ]));
99
101
  };
100
102
  }
101
- }), X = /* @__PURE__ */ L(J, [["__scopeId", "data-v-ce5f6b46"]]);
103
+ }), X = /* @__PURE__ */ L(J, [["__scopeId", "data-v-b14d9207"]]);
102
104
  export {
103
105
  X as default
104
106
  };
@@ -1,7 +1,7 @@
1
- import { defineComponent as F, mergeModels as w, computed as p, useModel as x, inject as v, resolveComponent as b, openBlock as i, createElementBlock as g, normalizeStyle as A, toDisplayString as h, createBlock as K, mergeProps as N, unref as V, withCtx as m, createElementVNode as r, Fragment as T, renderList as j, createTextVNode as E } from "vue";
2
- import { u as I } from "./index-Ch0AEG6l.js";
3
- import { u as O } from "./useSelect-MBMFJjvJ.js";
4
- const P = { style: { "min-height": "32px" } }, R = /* @__PURE__ */ F({
1
+ import { defineComponent as F, mergeModels as w, computed as p, useModel as x, inject as v, resolveComponent as b, openBlock as i, createElementBlock as g, normalizeStyle as A, toDisplayString as h, createBlock as C, mergeProps as N, unref as K, withCtx as m, createElementVNode as r, Fragment as T, renderList as $, createTextVNode as j } from "vue";
2
+ import { u as E } from "./index-Fgpo2Weq.js";
3
+ import { u as I } from "./useSelect-CFf27TOg.js";
4
+ const O = { style: { "min-height": "32px" } }, R = /* @__PURE__ */ F({
5
5
  __name: "Select",
6
6
  props: /* @__PURE__ */ w({
7
7
  options: { default: () => [] },
@@ -27,16 +27,17 @@ const P = { style: { "min-height": "32px" } }, R = /* @__PURE__ */ F({
27
27
  }),
28
28
  emits: ["update:modelValue"],
29
29
  setup(y) {
30
- const l = y, C = p(() => l.clearable === null || l.clearable === void 0 ? !0 : !!l.clearable), d = x(y, "modelValue"), c = I(), M = p(() => c.schema.read), f = v("ruleModule", void 0), k = v("pageMethodMap", {}), B = (e) => {
30
+ const l = y, V = p(() => l.clearable === null || l.clearable === void 0 ? !0 : !!l.clearable), d = x(y, "modelValue"), c = E(), M = p(() => c.schema.read), f = v("ruleModule", void 0), k = v("pageMethodMap", {}), B = (e) => {
31
31
  const { valueKey: t = "value", multiple: n, name: o } = l;
32
32
  let a = {};
33
33
  if (n && Array.isArray(e) ? a = s.value.filter((u) => e.includes(u[t])) : a = s.value.find((u) => u[t] === e) || {}, c.selectData && o && c.updateSelectData(o, a), l.onChange && f)
34
34
  try {
35
35
  f[l.onChange](k, e, a);
36
36
  } catch (u) {
37
- console.error(u);
37
+ console.error(u + `
38
+ onChange: ${l.onChange}`);
38
39
  }
39
- }, { currentOptions: s, loading: S } = O(l), D = p(() => {
40
+ }, { currentOptions: s, loading: S } = I(l), D = p(() => {
40
41
  var t;
41
42
  if (l.multiple)
42
43
  return s.value.filter(
@@ -50,17 +51,17 @@ const P = { style: { "min-height": "32px" } }, R = /* @__PURE__ */ F({
50
51
  return e.read || M.value ? (i(), g("span", {
51
52
  key: 0,
52
53
  style: A({ color: e.readTextColor })
53
- }, h(D.value), 5)) : (i(), K(o, N({
54
+ }, h(D.value), 5)) : (i(), C(o, N({
54
55
  key: 1,
55
56
  modelValue: d.value,
56
57
  "onUpdate:modelValue": t[0] || (t[0] = (a) => d.value = a)
57
58
  }, e.$attrs, {
58
59
  onChange: B,
59
60
  multiple: e.multiple,
60
- clearable: C.value,
61
+ clearable: V.value,
61
62
  filterable: "",
62
63
  "fallback-placements": ["bottom"],
63
- loading: V(S)
64
+ loading: K(S)
64
65
  }), {
65
66
  loading: m(() => t[1] || (t[1] = [
66
67
  r("svg", {
@@ -100,15 +101,15 @@ const P = { style: { "min-height": "32px" } }, R = /* @__PURE__ */ F({
100
101
  ], -1)
101
102
  ])),
102
103
  default: m(() => [
103
- r("div", P, [
104
- (i(!0), g(T, null, j(V(s), (a) => (i(), K(n, {
104
+ r("div", O, [
105
+ (i(!0), g(T, null, $(K(s), (a) => (i(), C(n, {
105
106
  key: a[e.valueKey],
106
107
  label: a[e.labelKey],
107
108
  value: a[e.valueKey],
108
109
  disabled: a[e.disabledKey]
109
110
  }, {
110
111
  default: m(() => [
111
- E(h(a[e.labelKey]), 1)
112
+ j(h(a[e.labelKey]), 1)
112
113
  ]),
113
114
  _: 2
114
115
  }, 1032, ["label", "value", "disabled"]))), 128))