asiaint-lowcode 3.1.3 → 3.1.5

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 (37) hide show
  1. package/README.md +31 -31
  2. package/dist/asiaint-lowcode.js +1 -1
  3. package/dist/asiaint-lowcode.umd.cjs +95 -95
  4. package/dist/index.d.ts +5 -6
  5. package/dist/lazy/{Card-DelnzYHh.js → Card-BOfaGCAD.js} +2 -2
  6. package/dist/lazy/{Cascader-BoyY8qNi.js → Cascader-c9NVH0HO.js} +1 -1
  7. package/dist/lazy/{Checkbox-BQXkmpHk.js → Checkbox-CP5Hz_sn.js} +2 -2
  8. package/dist/lazy/{Collapse-BpsJMZUL.js → Collapse-DmRhWMQi.js} +1 -1
  9. package/dist/lazy/{Component-CwlJSw-B.js → Component-6pKnk_5J.js} +2 -2
  10. package/dist/lazy/{Component-Db9FyBXr.js → Component-B7oOk_E_.js} +2 -2
  11. package/dist/lazy/{Component-CE53GsPm.js → Component-BY0o1x9x.js} +8 -8
  12. package/dist/lazy/{Component-BHodX8tI.js → Component-C-kcQly6.js} +1 -1
  13. package/dist/lazy/{Component-_dMWsHxy.js → Component-Dxp6d8WW.js} +1 -1
  14. package/dist/lazy/{Component-BM8XQdsc.js → Component-NhzPHEjf.js} +1 -1
  15. package/dist/lazy/{CurdCard-CeNTaILI.js → CurdCard-BELDwe8l.js} +2 -2
  16. package/dist/lazy/{Custom-B-S62SW9.js → Custom-DYftWr_j.js} +7 -7
  17. package/dist/lazy/{DatePicker-KuHkgUXv.js → DatePicker-BRMH_x0K.js} +1 -1
  18. package/dist/lazy/{DragList-CR7Qa1ZA.js → DragList-D64A9BXk.js} +2 -2
  19. package/dist/lazy/{FormList-CfYt3XmS.js → FormList-CkML06iK.js} +1 -1
  20. package/dist/lazy/{Grid-CY1ucf6C.js → Grid-IbiIAh4a.js} +1 -1
  21. package/dist/lazy/{Inline-DH1xajPF.js → Inline-Rx-auuwH.js} +3 -3
  22. package/dist/lazy/{JsonEdit-D4y4v0yR.js → JsonEdit-DuM8TwHB.js} +3 -3
  23. package/dist/lazy/{LogList-CYvCNluF.js → LogList-ByQb0pIn.js} +7 -7
  24. package/dist/lazy/{ObjGroup-Dgg6WEZo.js → ObjGroup-BSlL3U9c.js} +1 -1
  25. package/dist/lazy/{OfferDetails-Cy86N2gm.js → OfferDetails-CCJ9cBaX.js} +11 -11
  26. package/dist/lazy/{Progress-CLqSj8SR.js → Progress-DUt0ohVN.js} +5 -5
  27. package/dist/lazy/{Radio-DWlKdAvA.js → Radio-tICi60XR.js} +3 -3
  28. package/dist/lazy/{SearchSelect-gU5QjTeJ.js → SearchSelect-GKmQ98_x.js} +11 -11
  29. package/dist/lazy/{Select-BtONL7x5.js → Select-CJnwBHHb.js} +2 -2
  30. package/dist/lazy/{Table-CEQez_FF.js → Table-BGK1AwZz.js} +49 -49
  31. package/dist/lazy/{Tabs-DUKYIka1.js → Tabs-DRmGUewV.js} +1 -1
  32. package/dist/lazy/{Wrapper-B6d-d-6i.js → Wrapper-wgAxYRVL.js} +7 -7
  33. package/dist/lazy/{index-Tp_hfJyR.js → index-Dx7tUT8V.js} +3287 -3265
  34. package/dist/lazy/{useSelect-DpxtO7zI.js → useSelect-C5yOBcgw.js} +1 -1
  35. package/dist/style.css +2 -2
  36. package/global.d.ts +10 -10
  37. package/package.json +36 -36
@@ -1,5 +1,5 @@
1
- import { defineComponent as Me, computed as D, inject as _, ref as b, useTemplateRef as De, readonly as $e, toRefs as Fe, onMounted as Le, nextTick as Ee, onActivated as Ie, onUnmounted as Ae, resolveComponent as B, openBlock as s, createElementBlock as h, normalizeClass as $, withDirectives as K, createElementVNode as f, createVNode as m, unref as w, withCtx as g, createBlock as v, createCommentVNode as k, Fragment as P, renderList as W, toDisplayString as N, normalizeStyle as Ve, withModifiers as q, vShow as J, mergeProps as xe } from "vue";
2
- import { $ as Ue, f as F, i as je, _ as Ge, I as L, a as He, C as Ke, b as We } from "./index-Tp_hfJyR.js";
1
+ import { defineComponent as Me, computed as D, inject as _, ref as b, useTemplateRef as De, readonly as $e, toRefs as Fe, onMounted as Le, nextTick as Ee, onActivated as Ie, onUnmounted as Ae, resolveComponent as B, openBlock as s, createElementBlock as h, normalizeClass as $, withDirectives as K, createElementVNode as m, createVNode as f, unref as w, withCtx as g, createBlock as v, createCommentVNode as k, Fragment as P, renderList as W, toDisplayString as N, normalizeStyle as Ve, withModifiers as q, vShow as J, mergeProps as xe } from "vue";
2
+ import { $ as Ue, f as F, i as je, _ as Ge, I as L, a as He, C as Ke, b as We } from "./index-Dx7tUT8V.js";
3
3
  import { ElTable as qe, ElLoading as O } from "element-plus";
4
4
  const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title", "onClick"], Ye = {
5
5
  key: 1,
@@ -41,7 +41,7 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
41
41
  gridColumns: {}
42
42
  },
43
43
  setup(Q, { expose: X }) {
44
- const n = Q, R = D(() => n.displayType ? n.displayType : n.typeSwitch ? "card" : "table"), Y = _("ruleModule", void 0), E = _("ruleMap", void 0), c = D(() => n.rulePath && E[n.rulePath] ? E[n.rulePath] : Y), d = _("pageMethodMap", {}), T = _("getGlobalParams", () => {
44
+ const n = Q, R = D(() => n.displayType ? n.displayType : n.typeSwitch ? "card" : "table"), Y = _("ruleModule", void 0), E = _("ruleMap", void 0), u = D(() => n.rulePath && E[n.rulePath] ? E[n.rulePath] : Y), d = _("pageMethodMap", {}), T = _("getGlobalParams", () => {
45
45
  }), I = _(Ue), A = I ? I.translateFn : null, z = b(), Z = (e, t, a) => {
46
46
  i.value[e] && (i.value[e][t] = a);
47
47
  }, ee = (e, t) => {
@@ -49,21 +49,21 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
49
49
  a && (a.hidden = !t);
50
50
  }, M = (e, t, a, r) => {
51
51
  try {
52
- c.value[e.onClick](d, t, a, r), r == null || r.stopPropagation();
52
+ u.value[e.onClick](d, t, a, r), r == null || r.stopPropagation();
53
53
  } catch (y) {
54
54
  console.error(y);
55
55
  }
56
56
  }, te = (e) => {
57
57
  if (n.rowClick)
58
58
  try {
59
- c.value[n.rowClick](d, e);
59
+ u.value[n.rowClick](d, e);
60
60
  } catch (t) {
61
61
  console.error(t);
62
62
  }
63
63
  }, ne = (e) => {
64
64
  if (n.rowDbClick)
65
65
  try {
66
- c.value[n.rowDbClick](d, e);
66
+ u.value[n.rowDbClick](d, e);
67
67
  } catch (t) {
68
68
  console.error(t);
69
69
  }
@@ -73,7 +73,7 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
73
73
  if (!n.selectable)
74
74
  return !0;
75
75
  try {
76
- return c.value[n.selectable](d, e, t);
76
+ return u.value[n.selectable](d, e, t);
77
77
  } catch (a) {
78
78
  console.error(a);
79
79
  }
@@ -84,11 +84,11 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
84
84
  }, ie = () => i.value, V = b(), se = (e) => {
85
85
  if (V.value = e, !!n.handleCurrentChange)
86
86
  try {
87
- c.value[n.handleCurrentChange](d, e);
87
+ u.value[n.handleCurrentChange](d, e);
88
88
  } catch (t) {
89
89
  console.error(t);
90
90
  }
91
- }, ce = () => V.value, ue = () => {
91
+ }, ue = () => V.value, ce = () => {
92
92
  var e;
93
93
  return (e = z.value) == null ? void 0 : e.getSelectionRows();
94
94
  }, pe = async () => !0, de = (e, t) => {
@@ -101,32 +101,32 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
101
101
  a && (a.condition = !t);
102
102
  }, x = b(0), he = (e) => {
103
103
  x.value = e;
104
- }, u = b({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), ye = () => u.value, fe = (e) => {
104
+ }, c = b({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), ye = () => c.value, me = (e) => {
105
105
  let t = !1;
106
- return e.pageNum !== void 0 && e.pageNum > -1 && (u.value.pageNum !== e.pageNum && (t = !0), u.value.pageNum = e.pageNum), e.pageSize !== void 0 && e.pageSize > -1 && (u.value.pageSize !== e.pageSize && (t = !0), u.value.pageSize = e.pageSize), { pagination: u.value, isChange: t };
107
- }, me = async (e) => {
108
- if (u.value.pageNum = 1, u.value.pageSize = e, !n.sizeChange)
106
+ return e.pageNum !== void 0 && e.pageNum > -1 && (c.value.pageNum !== e.pageNum && (t = !0), c.value.pageNum = e.pageNum), e.pageSize !== void 0 && e.pageSize > -1 && (c.value.pageSize !== e.pageSize && (t = !0), c.value.pageSize = e.pageSize), { pagination: c.value, isChange: t };
107
+ }, fe = async (e) => {
108
+ if (c.value.pageNum = 1, c.value.pageSize = e, !n.sizeChange)
109
109
  return;
110
110
  const t = O.service({
111
111
  target: `#${n.name}`,
112
112
  text: "Loading..."
113
113
  });
114
114
  try {
115
- await c.value[n.sizeChange](d, u.value);
115
+ await u.value[n.sizeChange](d, c.value);
116
116
  } catch (a) {
117
117
  console.error(a);
118
118
  } finally {
119
119
  t.close();
120
120
  }
121
121
  }, ve = async (e) => {
122
- if (u.value.pageNum = e, !n.pageChange)
122
+ if (c.value.pageNum = e, !n.pageChange)
123
123
  return;
124
124
  const t = O.service({
125
125
  target: `#${n.name}`,
126
126
  text: "Loading..."
127
127
  });
128
128
  try {
129
- await c.value[n.pageChange](d, u.value);
129
+ await u.value[n.pageChange](d, c.value);
130
130
  } catch (a) {
131
131
  console.error(a);
132
132
  } finally {
@@ -155,8 +155,8 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
155
155
  setCellData: Z,
156
156
  clearSelection: re,
157
157
  getData: ie,
158
- getCurrentRow: ce,
159
- getSelectedRows: ue,
158
+ getCurrentRow: ue,
159
+ getSelectedRows: ce,
160
160
  addRow: be,
161
161
  deleteRow: ze,
162
162
  refresh: _e,
@@ -166,7 +166,7 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
166
166
  selectRowNum: Ce,
167
167
  setTotal: he,
168
168
  getPagination: ye,
169
- setPagination: fe,
169
+ setPagination: me,
170
170
  setTopBtnHidden: de,
171
171
  setColVisible: ee,
172
172
  setColumn: we,
@@ -180,17 +180,17 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
180
180
  const r = `${a}`;
181
181
  return r.length <= 4 ? "*".repeat(r.length) : r.slice(0, -4) + "****";
182
182
  }, Be = (e, t) => {
183
- if (!e.getTextStyle || !c.value)
183
+ if (!e.getTextStyle || !u.value)
184
184
  return {};
185
185
  try {
186
- return c.value[e.getTextStyle](d, t, e);
186
+ return u.value[e.getTextStyle](d, t, e);
187
187
  } catch (a) {
188
188
  console.error(a);
189
189
  }
190
190
  }, G = (e, t) => {
191
- if (!(!e.getIconInfo || !c.value))
191
+ if (!(!e.getIconInfo || !u.value))
192
192
  try {
193
- return c.value[e.getIconInfo](d, t, e);
193
+ return u.value[e.getIconInfo](d, t, e);
194
194
  } catch (a) {
195
195
  console.error(a);
196
196
  }
@@ -204,21 +204,21 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
204
204
  }
205
205
  ));
206
206
  if (Le(async () => {
207
- if (!n.onMounted || !c.value)
207
+ if (!n.onMounted || !u.value)
208
208
  return;
209
209
  await Ee();
210
210
  const e = n.onMounted;
211
211
  try {
212
- c.value[e](d);
212
+ u.value[e](d);
213
213
  } catch (t) {
214
214
  console.error(t);
215
215
  }
216
216
  }), Ie(() => {
217
- if (!n.onActivated || !c.value)
217
+ if (!n.onActivated || !u.value)
218
218
  return;
219
219
  const e = n.onActivated;
220
220
  try {
221
- c.value[e](d);
221
+ u.value[e](d);
222
222
  } catch (t) {
223
223
  console.error(t);
224
224
  }
@@ -237,8 +237,8 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
237
237
  ref: U,
238
238
  id: e.name
239
239
  }, [
240
- K(f("div", null, [
241
- m(w(qe), {
240
+ K(m("div", null, [
241
+ f(w(qe), {
242
242
  ref_key: "tableRef",
243
243
  ref: z,
244
244
  data: i.value,
@@ -253,12 +253,12 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
253
253
  height: e.height
254
254
  }, {
255
255
  empty: g(() => [
256
- f("div", Oe, [
257
- m(w(Ge), {
256
+ m("div", Oe, [
257
+ f(w(Ge), {
258
258
  name: "tableEmpty",
259
259
  style: { width: 56, height: 56 }
260
260
  }),
261
- t[2] || (t[2] = f("div", null, "No data available,please check", -1))
261
+ t[2] || (t[2] = m("div", null, "No data available,please check", -1))
262
262
  ])
263
263
  ]),
264
264
  default: g(() => [
@@ -278,7 +278,7 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
278
278
  fixed: o.fixed || !1
279
279
  }, {
280
280
  header: g(() => [
281
- f("div", {
281
+ m("div", {
282
282
  class: "text-ellipsis",
283
283
  title: o.label
284
284
  }, N(o.label), 9, Qe)
@@ -292,11 +292,11 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
292
292
  title: C(o, p),
293
293
  onClick: (Te) => M(o, p, l, Te)
294
294
  }, N(C(o, p)), 11, Xe)) : o.type === "iconText" ? (s(), h("div", Ye, [
295
- m(L, {
295
+ f(L, {
296
296
  name: (S = G(o, p)) == null ? void 0 : S.name,
297
297
  color: (H = G(o, p)) == null ? void 0 : H.color
298
298
  }, null, 8, ["name", "color"]),
299
- f("span", {
299
+ m("span", {
300
300
  class: "text-ellipsis",
301
301
  title: C(o, p)
302
302
  }, N(C(o, p)), 9, Ze)
@@ -319,7 +319,7 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
319
319
  width: e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100
320
320
  }, {
321
321
  default: g(({ row: o, $index: p }) => [
322
- f("div", tt, [
322
+ m("div", tt, [
323
323
  (s(!0), h(P, null, W(e.rowBtns, (l) => (s(), h(P, {
324
324
  key: l.key
325
325
  }, [
@@ -343,7 +343,7 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
343
343
  onClick: q((S) => M(l, o, p, S), ["stop"])
344
344
  }, {
345
345
  default: g(() => [
346
- m(r, {
346
+ f(r, {
347
347
  class: "box-item",
348
348
  effect: "dark",
349
349
  content: l.label,
@@ -364,8 +364,8 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
364
364
  }, 1032, ["disabled", "type", "onClick"])) : k("", !0)
365
365
  ]),
366
366
  default: g(() => [
367
- f("div", null, [
368
- m(w(He), {
367
+ m("div", null, [
368
+ f(w(He), {
369
369
  list: l.children
370
370
  }, null, 8, ["list"])
371
371
  ])
@@ -384,7 +384,7 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
384
384
  onClick: q((S) => M(l, o, p, S), ["stop"])
385
385
  }, {
386
386
  default: g(() => [
387
- m(r, {
387
+ f(r, {
388
388
  class: "box-item",
389
389
  effect: "dark",
390
390
  content: l.label,
@@ -415,34 +415,34 @@ const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title
415
415
  ], 512), [
416
416
  [J, R.value === "table"]
417
417
  ]),
418
- K(m(Ke, xe({ data: i.value }, n, { getColText: C }), null, 16, ["data"]), [
418
+ K(f(Ke, xe({ data: i.value }, n, { getColText: C }), null, 16, ["data"]), [
419
419
  [J, R.value === "card"]
420
420
  ]),
421
- f("div", {
421
+ m("div", {
422
422
  class: $(["pagination-wrapper", {
423
423
  hidePagination: (e.hiddenPagination || i.value.length === 0) && !e.height,
424
424
  transparentPagination: (e.hiddenPagination || i.value.length === 0) && e.height,
425
425
  cardlistPadding: R.value === "card"
426
426
  }])
427
427
  }, [
428
- m(Ne, {
428
+ f(Ne, {
429
429
  layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
430
430
  total: x.value,
431
431
  "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
432
432
  "default-page-size": e.defaultPageSize,
433
- "current-page": u.value.pageNum,
434
- "onUpdate:currentPage": t[0] || (t[0] = (o) => u.value.pageNum = o),
435
- "page-size": u.value.pageSize,
436
- "onUpdate:pageSize": t[1] || (t[1] = (o) => u.value.pageSize = o),
433
+ "current-page": c.value.pageNum,
434
+ "onUpdate:currentPage": t[0] || (t[0] = (o) => c.value.pageNum = o),
435
+ "page-size": c.value.pageSize,
436
+ "onUpdate:pageSize": t[1] || (t[1] = (o) => c.value.pageSize = o),
437
437
  "pager-count": Number(e.pagerCount) || 5,
438
- onSizeChange: me,
438
+ onSizeChange: fe,
439
439
  onCurrentChange: ve
440
440
  }, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
441
441
  ], 2)
442
442
  ], 10, Je));
443
443
  };
444
444
  }
445
- }), rt = /* @__PURE__ */ We(nt, [["__scopeId", "data-v-fcf55e87"]]);
445
+ }), rt = /* @__PURE__ */ We(nt, [["__scopeId", "data-v-7dd25355"]]);
446
446
  export {
447
447
  rt as default
448
448
  };
@@ -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-Tp_hfJyR.js";
2
+ import { a as V } from "./index-Dx7tUT8V.js";
3
3
  import "element-plus";
4
4
  const w = /* @__PURE__ */ i({
5
5
  __name: "Tabs",
@@ -1,5 +1,5 @@
1
- import { defineComponent as f, ref as i, resolveComponent as C, openBlock as r, createElementBlock as t, normalizeStyle as c, createVNode as l, withCtx as _, withDirectives as g, createElementVNode as S, normalizeClass as d, unref as x, createCommentVNode as u, vShow as B } from "vue";
2
- import { j as b, a as k, I as y, b as E } from "./index-Tp_hfJyR.js";
1
+ import { defineComponent as f, ref as i, resolveComponent as C, openBlock as r, createElementBlock as t, normalizeStyle as c, createVNode as l, withCtx as _, withDirectives as b, createElementVNode as g, normalizeClass as d, unref as S, createCommentVNode as u, vShow as x } from "vue";
2
+ import { j as B, a as k, I as y, b as E } from "./index-Dx7tUT8V.js";
3
3
  import "element-plus";
4
4
  const D = {
5
5
  key: 0,
@@ -21,7 +21,7 @@ const D = {
21
21
  onExpand: {}
22
22
  },
23
23
  setup(m) {
24
- const o = m, { ruleModule: s, pageMethodMap: p } = b(), n = i(!1), h = () => {
24
+ const o = m, { ruleModule: s, pageMethodMap: p } = B(), n = i(!1), h = () => {
25
25
  if (o.onDropdownChange) {
26
26
  n.value = !n.value;
27
27
  try {
@@ -47,7 +47,7 @@ const D = {
47
47
  }, [
48
48
  l(w, null, {
49
49
  default: _(() => [
50
- g(S("div", {
50
+ b(g("div", {
51
51
  class: d({
52
52
  normal: e.type === "normal",
53
53
  onlytable: e.type === "onlytable",
@@ -56,7 +56,7 @@ const D = {
56
56
  }),
57
57
  style: c(e.innerStyle)
58
58
  }, [
59
- l(x(k), { list: e.children }, null, 8, ["list"]),
59
+ l(S(k), { list: e.children }, null, 8, ["list"]),
60
60
  e.dropdown ? (r(), t("div", D, [
61
61
  l(y, {
62
62
  name: "icon-xialaliebiao",
@@ -73,7 +73,7 @@ const D = {
73
73
  }, null, 8, ["color"])
74
74
  ])) : u("", !0)
75
75
  ], 6), [
76
- [B, !e.collapse]
76
+ [x, !e.collapse]
77
77
  ])
78
78
  ]),
79
79
  _: 1
@@ -81,7 +81,7 @@ const D = {
81
81
  ], 4);
82
82
  };
83
83
  }
84
- }), W = /* @__PURE__ */ E(A, [["__scopeId", "data-v-e7c4ee60"]]);
84
+ }), W = /* @__PURE__ */ E(A, [["__scopeId", "data-v-bdb9b825"]]);
85
85
  export {
86
86
  W as default
87
87
  };