asiaint-lowcode 3.0.28 → 3.0.30

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 (33) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +103 -103
  3. package/dist/index.d.ts +2 -0
  4. package/dist/lazy/{Card-z13j1Hea.js → Card-CbehVl9_.js} +27 -27
  5. package/dist/lazy/{Cascader-DWyRds69.js → Cascader-8c-hC66Q.js} +1 -1
  6. package/dist/lazy/{Checkbox-3gB5hjyk.js → Checkbox-B6af4S0J.js} +2 -2
  7. package/dist/lazy/{Collapse-DkUlLs0R.js → Collapse-AYFBTLq-.js} +1 -1
  8. package/dist/lazy/{Component-CAvvEMpL.js → Component-CG9-c5gd.js} +1 -1
  9. package/dist/lazy/{Component-GCDvqVFC.js → Component-CPXd3jfW.js} +1 -1
  10. package/dist/lazy/{Component-HY_qpC4f.js → Component-CwSm0XAw.js} +1 -1
  11. package/dist/lazy/{Component-BsEoVYpP.js → Component-fzK7wQlj.js} +1 -1
  12. package/dist/lazy/{Component-0iFTdS1B.js → Component-t0tb9C5C.js} +1 -1
  13. package/dist/lazy/{Component-DW72e4Jb.js → Component-tLQlrGB3.js} +1 -1
  14. package/dist/lazy/CurdCard-BOP82hzx.js +134 -0
  15. package/dist/lazy/{Custom-DshTuvc5.js → Custom-D0Tfs7Js.js} +1 -1
  16. package/dist/lazy/{FormList-C1KaQTKh.js → FormList-dkFHZA51.js} +1 -1
  17. package/dist/lazy/{Grid-B-lk78Kc.js → Grid-JIjEUyvd.js} +1 -1
  18. package/dist/lazy/{Inline-DY_MkpWE.js → Inline-C3MSBCPC.js} +1 -1
  19. package/dist/lazy/{JsonEdit-oms5o4ul.js → JsonEdit-mVoJS-To.js} +1 -1
  20. package/dist/lazy/{ObjGroup-lbddbIgn.js → ObjGroup-CP3mP-v0.js} +1 -1
  21. package/dist/lazy/{OfferDetails-D7-vYQNI.js → OfferDetails-BFqz7-kS.js} +1 -1
  22. package/dist/lazy/{Radio-BbVL3tLa.js → Radio-Bz7j70D-.js} +2 -2
  23. package/dist/lazy/{SearchSelect-BSOc9F7u.js → SearchSelect-pG2nWWys.js} +2 -2
  24. package/dist/lazy/{Select-Bx3fLJHb.js → Select-BmYCnq9t.js} +2 -2
  25. package/dist/lazy/{Table-DvXSy6kA.js → Table-DDvp_k46.js} +91 -86
  26. package/dist/lazy/{Tabs-aWYBYNFZ.js → Tabs-CtcEmmuH.js} +1 -1
  27. package/dist/lazy/Wrapper-FhgmfTE3.js +35 -0
  28. package/dist/lazy/{index-NvXPJKiV.js → index-D6g75Cy0.js} +3840 -3821
  29. package/dist/lazy/{useSelect-m1WvnmsS.js → useSelect-CPWqgOdc.js} +1 -1
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/CurdCard-BSerZjDf.js +0 -137
  33. package/dist/lazy/Wrapper-DVfkWuvI.js +0 -30
@@ -1,7 +1,7 @@
1
- import { defineComponent as de, inject as b, ref as y, useTemplateRef as ge, readonly as he, toRefs as ye, onUnmounted as fe, resolveComponent as B, openBlock as u, createElementBlock as k, normalizeClass as N, withDirectives as V, createElementVNode as c, createVNode as S, unref as p, withCtx as f, createBlock as w, createCommentVNode as m, Fragment as R, renderList as $, toDisplayString as P, withModifiers as me, createTextVNode as Ce, vShow as F, mergeProps as ve } from "vue";
2
- import { $ as ke, h as we, _ as ze, f as Se, I as Re, C as be, b as Be } from "./index-NvXPJKiV.js";
1
+ import { defineComponent as de, inject as B, ref as f, useTemplateRef as ge, readonly as he, toRefs as ye, onUnmounted as fe, resolveComponent as N, openBlock as u, createElementBlock as g, normalizeClass as _, withDirectives as V, createElementVNode as m, createVNode as S, unref as c, withCtx as C, createBlock as z, createCommentVNode as v, Fragment as R, renderList as $, toDisplayString as b, withModifiers as me, createTextVNode as Ce, vShow as F, mergeProps as ve } from "vue";
2
+ import { $ as ke, h as we, _ as ze, f as Se, I as Re, C as be, b as Be } from "./index-D6g75Cy0.js";
3
3
  import { ElTable as Ne } from "element-plus";
4
- const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { class: "row-btn-wrapper" }, Me = /* @__PURE__ */ de({
4
+ const _e = { class: "empty-content" }, Pe = ["title"], De = ["title"], Te = ["title"], Me = { class: "row-btn-wrapper" }, Ee = /* @__PURE__ */ de({
5
5
  __name: "Table",
6
6
  props: {
7
7
  title: {},
@@ -33,84 +33,84 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
33
33
  name: {}
34
34
  },
35
35
  setup(U, { expose: j }) {
36
- const n = U, d = b("ruleModule", void 0), g = b("pageMethodMap", {}), _ = b(ke), z = _ ? _.translateFn : null, C = y(), H = (e, t, a) => {
37
- r.value[e] && (r.value[e][t] = a);
36
+ const a = U, h = B("ruleModule", void 0), y = B("pageMethodMap", {}), P = B(ke), d = P ? P.translateFn : null, k = f(), H = (e, t, o) => {
37
+ r.value[e] && (r.value[e][t] = o);
38
38
  }, K = (e, t) => {
39
- const a = n.columns.find((i) => i.key === e);
40
- a && (a.hidden = !t);
41
- }, L = (e, t, a) => {
39
+ const o = a.columns.find((i) => i.key === e);
40
+ o && (o.hidden = !t);
41
+ }, L = (e, t, o) => {
42
42
  try {
43
- d[e.onClick](g, t, a);
43
+ h[e.onClick](y, t, o);
44
44
  } catch (i) {
45
45
  console.error(i);
46
46
  }
47
47
  }, A = (e) => {
48
- if (n.rowClick)
48
+ if (a.rowClick)
49
49
  try {
50
- d[n.rowClick](g, e);
50
+ h[a.rowClick](y, e);
51
51
  } catch (t) {
52
52
  console.error(t);
53
53
  }
54
54
  }, W = (e) => {
55
- if (n.rowDbClick)
55
+ if (a.rowDbClick)
56
56
  try {
57
- d[n.rowDbClick](g, e);
57
+ h[a.rowDbClick](y, e);
58
58
  } catch (t) {
59
59
  console.error(t);
60
60
  }
61
- }, q = y([]), G = (e) => {
61
+ }, q = f([]), G = (e) => {
62
62
  q.value = e;
63
63
  }, I = () => {
64
64
  var e;
65
- (e = C.value) == null || e.clearSelection();
66
- }, J = () => r.value, D = y(), O = (e) => {
67
- if (D.value = e, !!n.handleCurrentChange)
65
+ (e = k.value) == null || e.clearSelection();
66
+ }, J = () => r.value, D = f(), O = (e) => {
67
+ if (D.value = e, !!a.handleCurrentChange)
68
68
  try {
69
- d[n.handleCurrentChange](g, e);
69
+ h[a.handleCurrentChange](y, e);
70
70
  } catch (t) {
71
71
  console.error(t);
72
72
  }
73
73
  }, Q = () => D.value, X = () => {
74
74
  var e;
75
- return (e = C.value) == null ? void 0 : e.getSelectionRows();
75
+ return (e = k.value) == null ? void 0 : e.getSelectionRows();
76
76
  }, Y = async () => !0, Z = (e, t) => {
77
77
  var i;
78
- const a = (i = n.topBtns) == null ? void 0 : i.find((v) => v.key === e);
79
- a && (a.hidden = t);
78
+ const o = (i = a.topBtns) == null ? void 0 : i.find((w) => w.key === e);
79
+ o && (o.hidden = t);
80
80
  }, x = (e, t) => {
81
81
  var i;
82
- const a = (i = n.rowBtns) == null ? void 0 : i.find((v) => v.key === e);
83
- a && (a.condition = !t);
84
- }, T = y(0), ee = (e) => {
82
+ const o = (i = a.rowBtns) == null ? void 0 : i.find((w) => w.key === e);
83
+ o && (o.condition = !t);
84
+ }, T = f(0), ee = (e) => {
85
85
  T.value = e;
86
- }, l = y({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), te = () => l.value, ne = (e) => {
86
+ }, l = f({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), te = () => l.value, ne = (e) => {
87
87
  let t = !1;
88
88
  return e.pageNum > -1 && (l.value.pageNum !== e.pageNum && (t = !0), l.value.pageNum = e.pageNum), e.pageSize > -1 && (l.value.pageSize !== e.pageSize && (t = !0), l.value.pageSize = e.pageSize), { pagination: l.value, isChange: t };
89
89
  }, ae = (e) => {
90
- if (l.value.pageNum = 1, l.value.pageSize = e, !!n.sizeChange)
90
+ if (l.value.pageNum = 1, l.value.pageSize = e, !!a.sizeChange)
91
91
  try {
92
- d[n.sizeChange](g, l.value);
92
+ h[a.sizeChange](y, l.value);
93
93
  } catch (t) {
94
94
  console.error(t);
95
95
  }
96
96
  }, oe = (e) => {
97
- if (l.value.pageNum = e, !!n.pageChange)
97
+ if (l.value.pageNum = e, !!a.pageChange)
98
98
  try {
99
- d[n.pageChange](g, l.value);
99
+ h[a.pageChange](y, l.value);
100
100
  } catch (t) {
101
101
  console.error(t);
102
102
  }
103
103
  }, le = (e) => {
104
104
  var t;
105
- (t = C.value) == null || t.setCurrentRow(e);
105
+ (t = k.value) == null || t.setCurrentRow(e);
106
106
  }, ie = (e) => {
107
107
  var t;
108
- (t = C.value) == null || t.setCurrentRow(r.value[e]);
109
- }, re = (e, t, a) => {
110
- n.columns.forEach((i) => {
111
- i.key === e && i[t] && (i[t] = a);
108
+ (t = k.value) == null || t.setCurrentRow(r.value[e]);
109
+ }, re = (e, t, o) => {
110
+ a.columns.forEach((i) => {
111
+ i.key === e && i[t] && (i[t] = o);
112
112
  });
113
- }, r = y([]), se = (e) => {
113
+ }, r = f([]), se = (e) => {
114
114
  r.value = e;
115
115
  }, ue = (e = {}) => {
116
116
  r.value.push(e);
@@ -119,7 +119,7 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
119
119
  }, pe = async () => {
120
120
  r.value = [...r.value];
121
121
  }, M = ge("rootRef"), E = he({
122
- ...ye(n),
122
+ ...ye(a),
123
123
  setCellData: H,
124
124
  clearSelection: I,
125
125
  getData: J,
@@ -142,24 +142,24 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
142
142
  rootRef: M,
143
143
  type: "table"
144
144
  });
145
- if (n.name) {
146
- const e = we(n.name, E);
145
+ if (a.name) {
146
+ const e = we(a.name, E);
147
147
  fe(() => {
148
148
  e();
149
149
  });
150
150
  }
151
151
  return j(E), (e, t) => {
152
- const a = B("el-table-column"), i = B("el-button"), v = B("el-pagination");
153
- return e.hidden ? m("", !0) : (u(), k("div", {
152
+ const o = N("el-table-column"), i = N("el-button"), w = N("el-pagination");
153
+ return e.hidden ? v("", !0) : (u(), g("div", {
154
154
  key: 0,
155
- class: N(["table-render", { tableBorder: e.displayType === "table" }]),
155
+ class: _(["table-render", { tableBorder: e.displayType === "table" }]),
156
156
  ref_key: "rootRef",
157
157
  ref: M
158
158
  }, [
159
- V(c("div", null, [
160
- S(p(Ne), {
159
+ V(m("div", null, [
160
+ S(c(Ne), {
161
161
  ref_key: "tableRef",
162
- ref: C,
162
+ ref: k,
163
163
  data: r.value,
164
164
  "highlight-current-row": e.highlightCurrentRow,
165
165
  "row-key": e.rowKey,
@@ -170,104 +170,109 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
170
170
  onCurrentChange: O,
171
171
  height: e.height
172
172
  }, {
173
- empty: f(() => [
174
- c("div", Pe, [
175
- S(p(ze), {
173
+ empty: C(() => [
174
+ m("div", _e, [
175
+ S(c(ze), {
176
176
  name: "tableEmpty",
177
177
  style: { width: 56, height: 56 }
178
178
  }),
179
- t[2] || (t[2] = c("div", null, "No data available,please check", -1))
179
+ t[2] || (t[2] = m("div", null, "No data available,please check", -1))
180
180
  ])
181
181
  ]),
182
- default: f(() => [
183
- e.multipleSelection ? (u(), w(a, {
182
+ default: C(() => [
183
+ e.multipleSelection ? (u(), z(o, {
184
184
  key: 0,
185
185
  type: "selection",
186
186
  width: "55"
187
- })) : m("", !0),
188
- (u(!0), k(R, null, $(e.columns, (o) => (u(), k(R, {
189
- key: o.key
187
+ })) : v("", !0),
188
+ (u(!0), g(R, null, $(e.columns, (n) => (u(), g(R, {
189
+ key: n.key
190
190
  }, [
191
- o.hidden ? m("", !0) : (u(), w(a, {
191
+ n.hidden ? v("", !0) : (u(), z(o, {
192
192
  key: 0,
193
- prop: o.key,
194
- "min-width": o.minWidth,
195
- fixed: o.fixed || !1
193
+ prop: n.key,
194
+ "min-width": n.minWidth,
195
+ fixed: n.fixed || !1
196
196
  }, {
197
- header: f(() => [
198
- c("div", {
197
+ header: C(() => [
198
+ m("div", {
199
199
  class: "text-ellipsis",
200
- title: o.label
201
- }, P(o.label), 9, _e)
200
+ title: n.label
201
+ }, b(n.label), 9, Pe)
202
202
  ]),
203
- default: f(({ row: h }) => [
204
- c("div", {
203
+ default: C(({ row: p }) => [
204
+ n.type === "link" ? (u(), g("div", {
205
+ key: 0,
206
+ class: "text-ellipsis link-style",
207
+ title: c(d) ? c(d)(n.key, p) : p[n.key]
208
+ }, b(c(d) ? c(d)(n.key, p) : p[n.key]), 9, De)) : (u(), g("div", {
209
+ key: 1,
205
210
  class: "text-ellipsis",
206
- title: p(z) ? p(z)(o.key, h) : h[o.key]
207
- }, P(p(z) ? p(z)(o.key, h) : h[o.key]), 9, De)
211
+ title: c(d) ? c(d)(n.key, p) : p[n.key]
212
+ }, b(c(d) ? c(d)(n.key, p) : p[n.key]), 9, Te))
208
213
  ]),
209
214
  _: 2
210
215
  }, 1032, ["prop", "min-width", "fixed"]))
211
216
  ], 64))), 128)),
212
- e.rowBtns && e.rowBtns.length > 0 ? (u(), w(a, {
217
+ e.rowBtns && e.rowBtns.length > 0 ? (u(), z(o, {
213
218
  key: 1,
214
219
  label: "Action",
215
220
  fixed: "right",
216
221
  align: "left"
217
222
  }, {
218
- default: f(({ row: o, $index: h }) => [
219
- c("div", Te, [
220
- (u(!0), k(R, null, $(e.rowBtns, (s) => (u(), k(R, {
223
+ default: C(({ row: n, $index: p }) => [
224
+ m("div", Me, [
225
+ (u(!0), g(R, null, $(e.rowBtns, (s) => (u(), g(R, {
221
226
  key: s.key
222
227
  }, [
223
- s.condition === void 0 || s.condition === null || p(Se)(s.condition, { $row: o }) ? (u(), w(i, {
228
+ s.condition === void 0 || s.condition === null || c(Se)(s.condition, { $row: n }) ? (u(), z(i, {
224
229
  key: 0,
225
230
  disabled: s.disabled,
226
231
  link: "",
227
232
  size: "small",
228
233
  type: s.type,
229
- onClick: me((Ee) => L(s, o, h), ["stop"])
234
+ onClick: me((Ve) => L(s, n, p), ["stop"])
230
235
  }, {
231
- default: f(() => [
232
- s.icon ? (u(), w(Re, {
236
+ default: C(() => [
237
+ s.icon ? (u(), z(Re, {
233
238
  key: 0,
234
239
  name: s.icon.name,
235
240
  color: s.icon.color,
236
- class: N({ "btn-icon": s.text || s.label })
237
- }, null, 8, ["name", "color", "class"])) : m("", !0),
238
- Ce(" " + P(s.label), 1)
241
+ class: _({ "btn-icon": s.text || s.label })
242
+ }, null, 8, ["name", "color", "class"])) : v("", !0),
243
+ Ce(" " + b(s.label), 1)
239
244
  ]),
240
245
  _: 2
241
- }, 1032, ["disabled", "type", "onClick"])) : m("", !0)
246
+ }, 1032, ["disabled", "type", "onClick"])) : v("", !0)
242
247
  ], 64))), 128))
243
248
  ])
244
249
  ]),
245
250
  _: 1
246
- })) : m("", !0)
251
+ })) : v("", !0)
247
252
  ]),
248
253
  _: 1
249
254
  }, 8, ["data", "highlight-current-row", "row-key", "stripe", "height"])
250
255
  ], 512), [
251
256
  [F, e.displayType === "table"]
252
257
  ]),
253
- V(S(be, ve({ data: r.value }, n), null, 16, ["data"]), [
258
+ V(S(be, ve({ data: r.value }, a), null, 16, ["data"]), [
254
259
  [F, e.displayType === "card"]
255
260
  ]),
256
- c("div", {
257
- class: N(["pagination-wrapper", {
261
+ m("div", {
262
+ class: _(["pagination-wrapper", {
258
263
  hidePagination: e.hiddenPagination || r.value.length === 0,
259
264
  cardlistPadding: e.displayType === "card"
260
265
  }])
261
266
  }, [
262
- S(v, {
267
+ S(w, {
263
268
  layout: "total,sizes, prev, pager, next,jumper",
264
269
  total: T.value,
265
270
  "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
266
271
  "default-page-size": e.defaultPageSize,
267
272
  "current-page": l.value.pageNum,
268
- "onUpdate:currentPage": t[0] || (t[0] = (o) => l.value.pageNum = o),
273
+ "onUpdate:currentPage": t[0] || (t[0] = (n) => l.value.pageNum = n),
269
274
  "page-size": l.value.pageSize,
270
- "onUpdate:pageSize": t[1] || (t[1] = (o) => l.value.pageSize = o),
275
+ "onUpdate:pageSize": t[1] || (t[1] = (n) => l.value.pageSize = n),
271
276
  "pager-count": e.pagerCount,
272
277
  onSizeChange: ae,
273
278
  onCurrentChange: oe
@@ -276,7 +281,7 @@ const Pe = { class: "empty-content" }, _e = ["title"], De = ["title"], Te = { cl
276
281
  ], 2));
277
282
  };
278
283
  }
279
- }), Ue = /* @__PURE__ */ Be(Me, [["__scopeId", "data-v-60aff21e"]]);
284
+ }), je = /* @__PURE__ */ Be(Ee, [["__scopeId", "data-v-95cc0dd0"]]);
280
285
  export {
281
- Ue as default
286
+ je as default
282
287
  };
@@ -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-NvXPJKiV.js";
2
+ import { a as V } from "./index-D6g75Cy0.js";
3
3
  import "element-plus";
4
4
  const w = /* @__PURE__ */ i({
5
5
  __name: "Tabs",
@@ -0,0 +1,35 @@
1
+ import { defineComponent as t, resolveComponent as n, openBlock as a, createElementBlock as r, createVNode as l, withCtx as s, withDirectives as p, createElementVNode as i, normalizeStyle as c, normalizeClass as m, unref as _, vShow as d } from "vue";
2
+ import { a as f, b as u } from "./index-D6g75Cy0.js";
3
+ import "element-plus";
4
+ const y = /* @__PURE__ */ t({
5
+ __name: "Wrapper",
6
+ props: {
7
+ children: {},
8
+ style: { type: [Boolean, null, String, Object, Array] },
9
+ type: {},
10
+ collapse: { type: Boolean }
11
+ },
12
+ setup(h) {
13
+ return (e, v) => {
14
+ const o = n("el-collapse-transition");
15
+ return a(), r("div", null, [
16
+ l(o, null, {
17
+ default: s(() => [
18
+ p(i("div", {
19
+ style: c(e.style),
20
+ class: m({ normal: e.type === "normal" })
21
+ }, [
22
+ l(_(f), { list: e.children }, null, 8, ["list"])
23
+ ], 6), [
24
+ [d, !e.collapse]
25
+ ])
26
+ ]),
27
+ _: 1
28
+ })
29
+ ]);
30
+ };
31
+ }
32
+ }), w = /* @__PURE__ */ u(y, [["__scopeId", "data-v-5bfa4aa2"]]);
33
+ export {
34
+ w as default
35
+ };