asiaint-lowcode 3.0.10 → 3.0.11

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 (32) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +132 -132
  3. package/dist/index.d.ts +227 -38
  4. package/dist/lazy/Card-CpK65F2R.js +77 -0
  5. package/dist/lazy/{Cascader-Gem1tf3p.js → Cascader-DwYAjKnt.js} +10 -9
  6. package/dist/lazy/{Checkbox-BxrnuJq1.js → Checkbox-DyhHO1lI.js} +3 -2
  7. package/dist/lazy/{Collapse-Cu8gp21w.js → Collapse-BB6uq8XG.js} +1 -1
  8. package/dist/lazy/{Component-CAj69dYy.js → Component-D2cqqZWu.js} +1 -1
  9. package/dist/lazy/{Component-46GeOz3I.js → Component-DPMNuys3.js} +1 -1
  10. package/dist/lazy/{Component-B4ZGwOZm.js → Component-Dc6ui_ac.js} +1 -1
  11. package/dist/lazy/{Component-Cp33Touf.js → Component-Dch4Sc0Z.js} +1 -1
  12. package/dist/lazy/Component-SBS5WSNC.js +32 -0
  13. package/dist/lazy/{Component-DQD6fDeO.js → Component-ZCJQNxel.js} +1 -1
  14. package/dist/lazy/{Custom-DYmckKCU.js → Custom-BxBsRCKU.js} +1 -1
  15. package/dist/lazy/{DatePicker-C2Xfur9H.js → DatePicker-DKOiq92L.js} +1 -1
  16. package/dist/lazy/{FormList-mj0DqTX9.js → FormList-z1CXVWu9.js} +1 -1
  17. package/dist/lazy/{Grid-BY7cCYmz.js → Grid-CriVKZ2b.js} +1 -1
  18. package/dist/lazy/{Inline-C_YHch3X.js → Inline-DTwut_Pu.js} +1 -1
  19. package/dist/lazy/{JsonEdit-BWWAH1jp.js → JsonEdit-CoLe-wTH.js} +1 -1
  20. package/dist/lazy/{ObjGroup-CX5cfC_g.js → ObjGroup-DuZvdEA5.js} +1 -1
  21. package/dist/lazy/{Radio-DXZ53glk.js → Radio-DGDip7ml.js} +7 -6
  22. package/dist/lazy/{SearchSelect-DByMp_ra.js → SearchSelect-BZqvg68V.js} +12 -11
  23. package/dist/lazy/Select-D_OzapP0.js +78 -0
  24. package/dist/lazy/{Tabs-DWO651cu.js → Tabs-C73JPy1z.js} +1 -1
  25. package/dist/lazy/{TextArea-Bb0ecX94.js → TextArea-2ePXEvCP.js} +1 -1
  26. package/dist/lazy/{index-9KA43iIq.js → index-lmlqy9ej.js} +6539 -6263
  27. package/dist/lazy/{useSelect-Dhsn7wE7.js → useSelect-BmR-wNME.js} +1 -1
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
  30. package/dist/lazy/Card-DR9xYcyf.js +0 -70
  31. package/dist/lazy/Component-B0VBQwhJ.js +0 -29
  32. package/dist/lazy/Select-BbCbrGeu.js +0 -69
@@ -1,10 +1,10 @@
1
- import { defineComponent as B, mergeModels as S, useModel as T, inject as K, resolveComponent as p, resolveDirective as w, unref as l, openBlock as a, createElementBlock as d, toDisplayString as F, Fragment as y, createCommentVNode as N, withDirectives as I, createBlock as f, mergeProps as k, withCtx as C, createVNode as P, renderList as M } from "vue";
2
- import { u as $ } from "./index-9KA43iIq.js";
3
- import { u as j } from "./useSelect-Dhsn7wE7.js";
1
+ import { defineComponent as z, mergeModels as S, useModel as T, inject as K, resolveComponent as p, resolveDirective as w, unref as l, openBlock as a, createElementBlock as d, toDisplayString as F, Fragment as y, createCommentVNode as N, withDirectives as I, createBlock as f, mergeProps as k, withCtx as C, createVNode as P, renderList as M } from "vue";
2
+ import { u as $ } from "./index-lmlqy9ej.js";
3
+ import { u as j } from "./useSelect-BmR-wNME.js";
4
4
  const E = { key: 0 }, L = {
5
5
  key: 0,
6
6
  style: { "font-size": "12px" }
7
- }, q = /* @__PURE__ */ B({
7
+ }, q = /* @__PURE__ */ z({
8
8
  __name: "Radio",
9
9
  props: /* @__PURE__ */ S({
10
10
  options: { default: () => [] },
@@ -16,6 +16,7 @@ const E = { key: 0 }, L = {
16
16
  dependentFields: {},
17
17
  name: { default: "" },
18
18
  onChange: {},
19
+ read: { type: Boolean },
19
20
  optionType: { default: "circle" },
20
21
  direction: { default: "horizontal" },
21
22
  space: { default: 20 }
@@ -37,7 +38,7 @@ const E = { key: 0 }, L = {
37
38
  }, { currentOptions: n, loading: g } = j(u);
38
39
  return (e, i) => {
39
40
  var h;
40
- const s = p("el-radio"), t = p("el-radio-button"), r = p("el-space"), D = p("el-radio-group"), z = w("loading");
41
+ const s = p("el-radio"), t = p("el-radio-button"), r = p("el-space"), D = p("el-radio-group"), B = w("loading");
41
42
  return l(m).read ? (a(), d("div", E, F((h = l(n).find((o) => o[e.valueKey] === c.value)) == null ? void 0 : h[e.labelKey]), 1)) : (a(), d(y, { key: 1 }, [
42
43
  !l(n).length && !l(g) ? (a(), d("div", L, "暂无选项")) : N("", !0),
43
44
  I((a(), f(D, k({
@@ -72,7 +73,7 @@ const E = { key: 0 }, L = {
72
73
  ]),
73
74
  _: 1
74
75
  }, 16, ["modelValue"])), [
75
- [z, l(g)]
76
+ [B, l(g)]
76
77
  ])
77
78
  ], 64));
78
79
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as b, resolveDirective as I, unref as d, openBlock as o, createElementBlock as u, toDisplayString as v, withDirectives as N, createBlock as k, mergeProps as j, withCtx as y, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
2
- import { u as L, _ as O, b as T } from "./index-9KA43iIq.js";
3
- import { u as U } from "./useSelect-Dhsn7wE7.js";
1
+ import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as y, resolveDirective as I, unref as d, openBlock as o, createElementBlock as u, toDisplayString as b, withDirectives as N, createBlock as k, mergeProps as j, withCtx as v, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
2
+ import { u as L, _ as O, b as T } from "./index-lmlqy9ej.js";
3
+ import { u as U } from "./useSelect-BmR-wNME.js";
4
4
  const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
5
5
  key: 1,
6
6
  class: "search-select-wrapper"
@@ -18,7 +18,8 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
18
18
  apiParams: {},
19
19
  dependentFields: {},
20
20
  name: { default: "" },
21
- onChange: {}
21
+ onChange: {},
22
+ read: { type: Boolean }
22
23
  }, {
23
24
  modelValue: { type: [String, Number, Boolean, Array] },
24
25
  modelModifiers: {}
@@ -44,12 +45,12 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
44
45
  }, { currentOptions: r, loading: B } = U(t);
45
46
  return (e, i) => {
46
47
  var g;
47
- const f = b("el-option"), p = b("el-select"), n = b("el-button"), a = I("loading");
48
+ const f = y("el-option"), p = y("el-select"), n = y("el-button"), a = I("loading");
48
49
  return d(m).read ? (o(), u("div", q, [
49
- e.multiple ? (o(), u("div", z, v(s.value && s.value.map((l) => {
50
+ e.multiple ? (o(), u("div", z, b(s.value && s.value.map((l) => {
50
51
  var K;
51
52
  return (K = d(r).find((D) => D[e.valueKey] === l)) == null ? void 0 : K[e.labelKey];
52
- }).join("、")), 1)) : (o(), u("div", G, v((g = d(r).find((l) => l[e.valueKey] === s.value)) == null ? void 0 : g[e.labelKey]), 1))
53
+ }).join("、")), 1)) : (o(), u("div", G, b((g = d(r).find((l) => l[e.valueKey] === s.value)) == null ? void 0 : g[e.labelKey]), 1))
53
54
  ])) : (o(), u("div", H, [
54
55
  N((o(), k(p, j({
55
56
  modelValue: s.value,
@@ -61,15 +62,15 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
61
62
  filterable: "",
62
63
  disabled: e.disabled
63
64
  }), {
64
- default: y(() => [
65
+ default: v(() => [
65
66
  (o(!0), u(P, null, $(d(r), (l) => (o(), k(f, {
66
67
  key: l[e.valueKey],
67
68
  label: l[e.labelKey],
68
69
  value: l[e.valueKey],
69
70
  disabled: l[e.disabledKey]
70
71
  }, {
71
- default: y(() => [
72
- E(v(l[e.labelKey]), 1)
72
+ default: v(() => [
73
+ E(b(l[e.labelKey]), 1)
73
74
  ]),
74
75
  _: 2
75
76
  }, 1032, ["label", "value", "disabled"]))), 128))
@@ -83,7 +84,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
83
84
  disabled: e.disabled,
84
85
  class: "search-btn"
85
86
  }, {
86
- default: y(() => [
87
+ default: v(() => [
87
88
  C(d(O), { name: "search" })
88
89
  ]),
89
90
  _: 1
@@ -0,0 +1,78 @@
1
+ import { defineComponent as _, mergeModels as k, useModel as B, inject as y, computed as D, resolveComponent as v, resolveDirective as S, openBlock as r, createElementBlock as i, Fragment as b, unref as c, toDisplayString as g, createCommentVNode as N, createVNode as A, mergeProps as F, withCtx as h, withDirectives as j, renderList as w, createBlock as I, createTextVNode as P } from "vue";
2
+ import { u as E } from "./index-lmlqy9ej.js";
3
+ import { u as L } from "./useSelect-BmR-wNME.js";
4
+ const O = { key: 0 }, T = { style: { "min-height": "32px" } }, z = /* @__PURE__ */ _({
5
+ __name: "Select",
6
+ props: /* @__PURE__ */ k({
7
+ options: { default: () => [] },
8
+ multiple: { type: Boolean, default: !1 },
9
+ mode: { default: "static" },
10
+ labelKey: { default: "label" },
11
+ valueKey: { default: "value" },
12
+ disabledKey: { default: "disabled" },
13
+ apiParams: {},
14
+ dependentFields: {},
15
+ name: { default: "" },
16
+ onChange: {},
17
+ read: { type: Boolean }
18
+ }, {
19
+ modelValue: { type: [String, Number, Boolean, Array] },
20
+ modelModifiers: {}
21
+ }),
22
+ emits: ["update:modelValue"],
23
+ setup(m) {
24
+ const a = m, s = B(m, "modelValue"), p = E(), f = y("ruleModule", void 0), K = y("pageMethodMap", {}), V = (e) => {
25
+ const { valueKey: t = "value", multiple: o, name: d } = a;
26
+ let n = {};
27
+ if (o && Array.isArray(e) ? n = u.value.filter((l) => e.includes(l[t])) : n = u.value.find((l) => l[t] === e) || {}, p.selectData && d && p.updateSelectData(d, n), a.onChange && f)
28
+ try {
29
+ f[a.onChange](K, e, n);
30
+ } catch (l) {
31
+ console.error(l);
32
+ }
33
+ }, { currentOptions: u, loading: C } = L(a), M = D(() => {
34
+ var e;
35
+ return a.multiple ? u.value.filter(
36
+ (o) => s.value.includes(o[a.valueKey])
37
+ ).map((o) => o[a.labelKey]).join(",") : ((e = u.value.find((t) => t[a.valueKey] === s.value)) == null ? void 0 : e[a.labelKey]) || "--";
38
+ });
39
+ return (e, t) => {
40
+ const o = v("el-option"), d = v("el-select"), n = S("loading");
41
+ return r(), i(b, null, [
42
+ c(p).schema.read || e.read ? (r(), i("span", O, g(M.value), 1)) : N("", !0),
43
+ A(d, F({
44
+ modelValue: s.value,
45
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => s.value = l)
46
+ }, e.$attrs, {
47
+ onChange: V,
48
+ multiple: e.multiple,
49
+ clearable: "",
50
+ filterable: "",
51
+ "fallback-placements": ["bottom"]
52
+ }), {
53
+ default: h(() => [
54
+ j((r(), i("div", T, [
55
+ (r(!0), i(b, null, w(c(u), (l) => (r(), I(o, {
56
+ key: l[e.valueKey],
57
+ label: l[e.labelKey],
58
+ value: l[e.valueKey],
59
+ disabled: l[e.disabledKey]
60
+ }, {
61
+ default: h(() => [
62
+ P(g(l[e.labelKey]), 1)
63
+ ]),
64
+ _: 2
65
+ }, 1032, ["label", "value", "disabled"]))), 128))
66
+ ])), [
67
+ [n, c(C)]
68
+ ])
69
+ ]),
70
+ _: 1
71
+ }, 16, ["modelValue", "multiple"])
72
+ ], 64);
73
+ };
74
+ }
75
+ });
76
+ export {
77
+ z as default
78
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as i, ref as m, watch as _, onMounted as h, resolveComponent as a, openBlock as l, createBlock as c, mergeProps as u, withCtx as d, createElementBlock as b, Fragment as v, renderList as y, createVNode as k, unref as K } from "vue";
2
- import { a as V } from "./index-9KA43iIq.js";
2
+ import { a as V } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  const w = /* @__PURE__ */ i({
5
5
  __name: "Tabs",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, useModel as s, resolveComponent as p, unref as d, openBlock as t, createElementBlock as i, toDisplayString as c, createBlock as f, mergeProps as _ } from "vue";
2
- import { u as v } from "./index-9KA43iIq.js";
2
+ import { u as v } from "./index-lmlqy9ej.js";
3
3
  import "element-plus";
4
4
  const V = { key: 0 }, B = /* @__PURE__ */ u({
5
5
  __name: "TextArea",