asiaint-lowcode 3.0.33 → 3.0.34

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 (34) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +125 -125
  3. package/dist/index.d.ts +7 -2
  4. package/dist/lazy/Card-DyDOeYfh.js +102 -0
  5. package/dist/lazy/{Cascader-B-lZfCap.js → Cascader-hwQ0ped8.js} +1 -1
  6. package/dist/lazy/{Checkbox-YO_0wBKc.js → Checkbox-z4QRPu-x.js} +2 -2
  7. package/dist/lazy/{Collapse-BlH5sRWv.js → Collapse-oh9RnpYq.js} +1 -1
  8. package/dist/lazy/Component-56ym46d6.js +36 -0
  9. package/dist/lazy/{Component-Bl19KoSv.js → Component-CXtb3Yi3.js} +1 -1
  10. package/dist/lazy/{Component-09uMPQXo.js → Component-ClkUsqZ1.js} +1 -1
  11. package/dist/lazy/{Component-b97O_1Tl.js → Component-DYCbyY8z.js} +1 -1
  12. package/dist/lazy/{Component-BCfLKjK8.js → Component-DadAKRPu.js} +1 -1
  13. package/dist/lazy/{Component-D8B2QjBe.js → Component-mcJAWcjt.js} +1 -1
  14. package/dist/lazy/{CurdCard-DTv68TEH.js → CurdCard-BTYaL0uB.js} +1 -1
  15. package/dist/lazy/{Custom-Cu1dz0F5.js → Custom-CrZDANN2.js} +1 -1
  16. package/dist/lazy/{FormList-DbrUeW7x.js → FormList-BGuR7mbH.js} +1 -1
  17. package/dist/lazy/{Grid-Bg52fX8Z.js → Grid-BRKcU88d.js} +1 -1
  18. package/dist/lazy/{Inline-JoP0Kz2Z.js → Inline-x1p6kwDV.js} +1 -1
  19. package/dist/lazy/{JsonEdit-B07NWENB.js → JsonEdit-C8acmbOx.js} +1 -1
  20. package/dist/lazy/{ObjGroup-a2USDXVL.js → ObjGroup-Bvm_JRv0.js} +1 -1
  21. package/dist/lazy/OfferDetails-IuisIR_V.js +168 -0
  22. package/dist/lazy/{Radio-bAObj-SF.js → Radio-Swys9rO6.js} +2 -2
  23. package/dist/lazy/{SearchSelect-yvRqORip.js → SearchSelect-DpWjU1ff.js} +2 -2
  24. package/dist/lazy/{Select-B8CtrHsk.js → Select-BG2okaza.js} +2 -2
  25. package/dist/lazy/{Table-7R5XEA27.js → Table-BOIHWhbh.js} +54 -54
  26. package/dist/lazy/{Tabs-4wVyNH_D.js → Tabs-ByfQlZ3V.js} +1 -1
  27. package/dist/lazy/{Wrapper-6_mhBiQ0.js → Wrapper-CJINhrFP.js} +1 -1
  28. package/dist/lazy/{index-C8n7TbR6.js → index-CX2louHY.js} +4748 -4591
  29. package/dist/lazy/{useSelect-B3zM60ey.js → useSelect-PiddJYFH.js} +1 -1
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Card-CBrL-lfq.js +0 -93
  33. package/dist/lazy/Component-CK_IFBCD.js +0 -34
  34. package/dist/lazy/OfferDetails-Dwry8T2e.js +0 -165
@@ -1,5 +1,5 @@
1
- import { defineComponent as ye, inject as S, ref as m, useTemplateRef as fe, readonly as me, toRefs as Ce, onUnmounted as ke, resolveComponent as R, openBlock as u, createElementBlock as g, normalizeClass as _, withDirectives as F, createElementVNode as C, createVNode as b, unref as c, withCtx as h, createBlock as z, createCommentVNode as k, Fragment as B, renderList as V, toDisplayString as P, withModifiers as ve, vShow as U, mergeProps as we } from "vue";
2
- import { $ as be, i as ze, _ as Se, f as Re, I as Be, C as _e, b as Pe } from "./index-C8n7TbR6.js";
1
+ import { defineComponent as ye, inject as S, ref as m, useTemplateRef as fe, readonly as me, toRefs as Ce, onUnmounted as ke, resolveComponent as R, openBlock as u, createElementBlock as g, normalizeClass as E, withDirectives as F, createElementVNode as C, createVNode as b, unref as p, withCtx as h, createBlock as z, createCommentVNode as k, Fragment as B, renderList as V, toDisplayString as _, withModifiers as ve, vShow as U, mergeProps as we } from "vue";
2
+ import { $ as be, i as ze, _ as Se, f as Re, I as Be, C as _e, b as Pe } from "./index-CX2louHY.js";
3
3
  import { ElTable as Ne } from "element-plus";
4
4
  const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"], $e = ["title"], Ee = { class: "row-btn-wrapper" }, Fe = /* @__PURE__ */ ye({
5
5
  __name: "Table",
@@ -30,16 +30,17 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
30
30
  displayType: { default: "table" },
31
31
  onMounted: {},
32
32
  height: {},
33
+ collapsible: { type: Boolean },
33
34
  name: {}
34
35
  },
35
36
  setup(j, { expose: G }) {
36
37
  const a = j, y = S("ruleModule", void 0), f = S("pageMethodMap", {}), H = S("getGlobalParams", () => {
37
- }), N = S(be), d = N ? N.translateFn : null, v = m(), K = (e, t, o) => {
38
- s.value[e] && (s.value[e][t] = o);
38
+ }), P = S(be), d = P ? P.translateFn : null, v = m(), K = (e, t, o) => {
39
+ r.value[e] && (r.value[e][t] = o);
39
40
  }, L = (e, t) => {
40
41
  const o = a.columns.find((i) => i.key === e);
41
42
  o && (o.hidden = !t);
42
- }, D = (e, t, o) => {
43
+ }, N = (e, t, o) => {
43
44
  try {
44
45
  y[e.onClick](f, t, o);
45
46
  } catch (i) {
@@ -64,14 +65,14 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
64
65
  }, J = () => {
65
66
  var e;
66
67
  (e = v.value) == null || e.clearSelection();
67
- }, O = () => s.value, T = m(), Q = (e) => {
68
- if (T.value = e, !!a.handleCurrentChange)
68
+ }, O = () => r.value, D = m(), Q = (e) => {
69
+ if (D.value = e, !!a.handleCurrentChange)
69
70
  try {
70
71
  y[a.handleCurrentChange](f, e);
71
72
  } catch (t) {
72
73
  console.error(t);
73
74
  }
74
- }, X = () => T.value, Y = () => {
75
+ }, X = () => D.value, Y = () => {
75
76
  var e;
76
77
  return (e = v.value) == null ? void 0 : e.getSelectionRows();
77
78
  }, Z = async () => !0, x = (e, t) => {
@@ -82,8 +83,8 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
82
83
  var i;
83
84
  const o = (i = a.rowBtns) == null ? void 0 : i.find((w) => w.key === e);
84
85
  o && (o.condition = !t);
85
- }, M = m(0), te = (e) => {
86
- M.value = e;
86
+ }, T = m(0), te = (e) => {
87
+ T.value = e;
87
88
  }, l = m({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), ne = () => l.value, ae = (e) => {
88
89
  let t = !1;
89
90
  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 };
@@ -106,28 +107,28 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
106
107
  (t = v.value) == null || t.setCurrentRow(e);
107
108
  }, re = (e) => {
108
109
  var t;
109
- (t = v.value) == null || t.setCurrentRow(s.value[e]);
110
+ (t = v.value) == null || t.setCurrentRow(r.value[e]);
110
111
  }, se = (e, t, o) => {
111
112
  a.columns.forEach((i) => {
112
113
  i.key === e && i[t] && (i[t] = o);
113
114
  });
114
- }, s = m([]), ue = (e) => {
115
- s.value = e;
116
- }, ce = (e = {}) => {
117
- s.value.push(e);
118
- }, pe = (e) => {
119
- e >= 0 && e < s.value.length && s.value.splice(e, 1);
115
+ }, r = m([]), ue = (e) => {
116
+ r.value = e;
117
+ }, pe = (e = {}) => {
118
+ r.value.push(e);
119
+ }, ce = (e) => {
120
+ e >= 0 && e < r.value.length && r.value.splice(e, 1);
120
121
  }, de = async () => {
121
- s.value = [...s.value];
122
- }, $ = fe("rootRef"), E = me({
122
+ r.value = [...r.value];
123
+ }, M = fe("rootRef"), $ = me({
123
124
  ...Ce(a),
124
125
  setCellData: K,
125
126
  clearSelection: J,
126
127
  getData: O,
127
128
  getCurrentRow: X,
128
129
  getSelectedRows: Y,
129
- addRow: ce,
130
- deleteRow: pe,
130
+ addRow: pe,
131
+ deleteRow: ce,
131
132
  refresh: de,
132
133
  validate: Z,
133
134
  setData: ue,
@@ -140,28 +141,28 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
140
141
  setColVisible: L,
141
142
  setColumn: se,
142
143
  setRowsBtnHidden: ee,
143
- rootRef: $,
144
+ rootRef: M,
144
145
  type: "table"
145
146
  });
146
147
  if (a.name) {
147
- const e = ze(a.name, E);
148
+ const e = ze(a.name, $);
148
149
  ke(() => {
149
150
  e();
150
151
  });
151
152
  }
152
- return G(E), (e, t) => {
153
+ return G($), (e, t) => {
153
154
  const o = R("el-table-column"), i = R("el-tooltip"), w = R("el-button"), ge = R("el-pagination");
154
155
  return e.hidden ? k("", !0) : (u(), g("div", {
155
156
  key: 0,
156
- class: _(["table-render", { tableBorder: e.displayType === "table" }]),
157
+ class: E(["table-render", { tableBorder: e.displayType === "table" }]),
157
158
  ref_key: "rootRef",
158
- ref: $
159
+ ref: M
159
160
  }, [
160
161
  F(C("div", null, [
161
- b(c(Ne), {
162
+ b(p(Ne), {
162
163
  ref_key: "tableRef",
163
164
  ref: v,
164
- data: s.value,
165
+ data: r.value,
165
166
  "highlight-current-row": "",
166
167
  "row-key": e.rowKey,
167
168
  stripe: e.stripe,
@@ -173,7 +174,7 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
173
174
  }, {
174
175
  empty: h(() => [
175
176
  C("div", De, [
176
- b(c(Se), {
177
+ b(p(Se), {
177
178
  name: "tableEmpty",
178
179
  style: { width: 56, height: 56 }
179
180
  }),
@@ -199,19 +200,19 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
199
200
  C("div", {
200
201
  class: "text-ellipsis",
201
202
  title: n.label
202
- }, P(n.label), 9, Te)
203
+ }, _(n.label), 9, Te)
203
204
  ]),
204
- default: h(({ row: p, $index: r }) => [
205
+ default: h(({ row: c, $index: s }) => [
205
206
  n.type === "link" ? (u(), g("div", {
206
207
  key: 0,
207
208
  class: "text-ellipsis link-style",
208
- title: c(d) ? c(d)(n.key, p) : p[n.key],
209
- onClick: (he) => D(n, p, r)
210
- }, P(c(d) ? c(d)(n.key, p) : p[n.key]), 9, Me)) : (u(), g("div", {
209
+ title: p(d) ? p(d)(n.key, c) : c[n.key],
210
+ onClick: (he) => N(n, c, s)
211
+ }, _(p(d) ? p(d)(n.key, c) : c[n.key]), 9, Me)) : (u(), g("div", {
211
212
  key: 1,
212
213
  class: "text-ellipsis",
213
- title: c(d) ? c(d)(n.key, p) : p[n.key]
214
- }, P(c(d) ? c(d)(n.key, p) : p[n.key]), 9, $e))
214
+ title: p(d) ? p(d)(n.key, c) : c[n.key]
215
+ }, _(p(d) ? p(d)(n.key, c) : c[n.key]), 9, $e))
215
216
  ]),
216
217
  _: 2
217
218
  }, 1032, ["prop", "min-width", "fixed"]))
@@ -222,35 +223,34 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
222
223
  fixed: "right",
223
224
  align: "left"
224
225
  }, {
225
- default: h(({ row: n, $index: p }) => [
226
+ default: h(({ row: n, $index: c }) => [
226
227
  C("div", Ee, [
227
- (u(!0), g(B, null, V(e.rowBtns, (r) => (u(), g(B, {
228
- key: r.key
228
+ (u(!0), g(B, null, V(e.rowBtns, (s) => (u(), g(B, {
229
+ key: s.key
229
230
  }, [
230
- r.condition === void 0 || r.condition === null || c(Re)(r.condition, { $row: n, $globalParams: c(H)() }) ? (u(), z(w, {
231
+ s.condition === void 0 || s.condition === null || p(Re)(s.condition, { $row: n, $globalParams: p(H)() }) ? (u(), z(w, {
231
232
  key: 0,
232
- disabled: r.disabled,
233
+ disabled: s.disabled,
233
234
  link: "",
234
235
  size: "small",
235
- type: r.type,
236
- onClick: ve((he) => D(r, n, p), ["stop"])
236
+ type: s.type,
237
+ onClick: ve((he) => N(s, n, c), ["stop"])
237
238
  }, {
238
239
  default: h(() => [
239
240
  b(i, {
240
241
  class: "box-item",
241
242
  effect: "dark",
242
- content: r.label,
243
+ content: s.label,
243
244
  placement: "top",
244
245
  "popper-class": "low-tsp",
245
246
  "show-after": 300
246
247
  }, {
247
248
  default: h(() => [
248
- r.icon ? (u(), z(Be, {
249
+ s.icon ? (u(), z(Be, {
249
250
  key: 0,
250
- name: r.icon.name,
251
- color: r.icon.color,
252
- class: _({ "btn-icon": r.text || r.label })
253
- }, null, 8, ["name", "color", "class"])) : k("", !0)
251
+ name: s.icon.name,
252
+ color: s.icon.color
253
+ }, null, 8, ["name", "color"])) : k("", !0)
254
254
  ]),
255
255
  _: 2
256
256
  }, 1032, ["content"])
@@ -268,18 +268,18 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
268
268
  ], 512), [
269
269
  [U, e.displayType === "table"]
270
270
  ]),
271
- F(b(_e, we({ data: s.value }, a), null, 16, ["data"]), [
271
+ F(b(_e, we({ data: r.value }, a), null, 16, ["data"]), [
272
272
  [U, e.displayType === "card"]
273
273
  ]),
274
274
  C("div", {
275
- class: _(["pagination-wrapper", {
276
- hidePagination: e.hiddenPagination || s.value.length === 0,
275
+ class: E(["pagination-wrapper", {
276
+ hidePagination: e.hiddenPagination || r.value.length === 0,
277
277
  cardlistPadding: e.displayType === "card"
278
278
  }])
279
279
  }, [
280
280
  b(ge, {
281
281
  layout: "total,sizes, prev, pager, next,jumper",
282
- total: M.value,
282
+ total: T.value,
283
283
  "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
284
284
  "default-page-size": e.defaultPageSize,
285
285
  "current-page": l.value.pageNum,
@@ -294,7 +294,7 @@ const De = { class: "empty-content" }, Te = ["title"], Me = ["title", "onClick"]
294
294
  ], 2));
295
295
  };
296
296
  }
297
- }), Ge = /* @__PURE__ */ Pe(Fe, [["__scopeId", "data-v-09d2c8e9"]]);
297
+ }), Ge = /* @__PURE__ */ Pe(Fe, [["__scopeId", "data-v-bc7f6b3e"]]);
298
298
  export {
299
299
  Ge as default
300
300
  };
@@ -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-C8n7TbR6.js";
2
+ import { a as V } from "./index-CX2louHY.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 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-C8n7TbR6.js";
2
+ import { a as f, b as u } from "./index-CX2louHY.js";
3
3
  import "element-plus";
4
4
  const y = /* @__PURE__ */ t({
5
5
  __name: "Wrapper",