asiaint-lowcode 3.0.31 → 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 (35) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +137 -137
  3. package/dist/index.d.ts +7 -2
  4. package/dist/lazy/Card-DyDOeYfh.js +102 -0
  5. package/dist/lazy/{Cascader-P7IuNThb.js → Cascader-hwQ0ped8.js} +1 -1
  6. package/dist/lazy/{Checkbox-07QRyXME.js → Checkbox-z4QRPu-x.js} +2 -2
  7. package/dist/lazy/{Collapse-ByfiOimw.js → Collapse-oh9RnpYq.js} +1 -1
  8. package/dist/lazy/Component-56ym46d6.js +36 -0
  9. package/dist/lazy/{Component-6TS6wNl_.js → Component-CXtb3Yi3.js} +1 -1
  10. package/dist/lazy/{Component-D3_BYRj4.js → Component-ClkUsqZ1.js} +1 -1
  11. package/dist/lazy/{Component-B0XVJZnQ.js → Component-DYCbyY8z.js} +1 -1
  12. package/dist/lazy/{Component-DjB_gS1V.js → Component-DadAKRPu.js} +1 -1
  13. package/dist/lazy/{Component-CyKpm5k5.js → Component-mcJAWcjt.js} +1 -1
  14. package/dist/lazy/{CurdCard-BpFxnWRz.js → CurdCard-BTYaL0uB.js} +1 -1
  15. package/dist/lazy/{Custom-CScf47ec.js → Custom-CrZDANN2.js} +1 -1
  16. package/dist/lazy/{FormList-B4ySQVLt.js → FormList-BGuR7mbH.js} +1 -1
  17. package/dist/lazy/{Grid-D8IOvbfU.js → Grid-BRKcU88d.js} +1 -1
  18. package/dist/lazy/{Inline-CCyImOu3.js → Inline-x1p6kwDV.js} +1 -1
  19. package/dist/lazy/{JsonEdit-DDieBuc6.js → JsonEdit-C8acmbOx.js} +1 -1
  20. package/dist/lazy/{ObjGroup-QEyMHJ0O.js → ObjGroup-Bvm_JRv0.js} +1 -1
  21. package/dist/lazy/OfferDetails-IuisIR_V.js +168 -0
  22. package/dist/lazy/{Radio-aDFaQLLq.js → Radio-Swys9rO6.js} +2 -2
  23. package/dist/lazy/{SearchSelect-B96_wH_8.js → SearchSelect-DpWjU1ff.js} +2 -2
  24. package/dist/lazy/{Select-C84zNi2F.js → Select-BG2okaza.js} +2 -2
  25. package/dist/lazy/{Table-C2RB8hlb.js → Table-BOIHWhbh.js} +95 -83
  26. package/dist/lazy/{Tabs-4CRMSCiJ.js → Tabs-ByfQlZ3V.js} +1 -1
  27. package/dist/lazy/{Wrapper-3N8Y7y6e.js → Wrapper-CJINhrFP.js} +1 -1
  28. package/dist/lazy/{index-Be_hWoLI.js → index-CX2louHY.js} +4887 -4718
  29. package/dist/lazy/useSelect-PiddJYFH.js +61 -0
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Card-D4r6xjTv.js +0 -93
  33. package/dist/lazy/Component-DVIJ_1tV.js +0 -34
  34. package/dist/lazy/OfferDetails-Dh_ZZz7F.js +0 -165
  35. package/dist/lazy/useSelect-BLvs_Rd3.js +0 -58
@@ -1,7 +1,7 @@
1
- import { defineComponent as he, inject as S, ref as f, useTemplateRef as ye, readonly as fe, toRefs as me, onUnmounted as Ce, resolveComponent as B, openBlock as u, createElementBlock as g, normalizeClass as P, withDirectives as F, createElementVNode as m, createVNode as b, unref as c, withCtx as C, createBlock as z, createCommentVNode as k, Fragment as R, renderList as V, toDisplayString as _, withModifiers as ke, vShow as U, mergeProps as ve } from "vue";
2
- import { $ as we, h as ze, _ as Se, f as be, I as Re, C as Be, b as Pe } from "./index-Be_hWoLI.js";
3
- import { ElTable as _e } from "element-plus";
4
- const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"], Me = ["title"], $e = { class: "row-btn-wrapper" }, Ee = /* @__PURE__ */ he({
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
+ import { ElTable as Ne } from "element-plus";
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",
6
6
  props: {
7
7
  title: {},
@@ -30,48 +30,49 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["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
- const a = j, h = S("ruleModule", void 0), y = S("pageMethodMap", {}), H = S("getGlobalParams", () => {
37
- }), N = S(we), d = N ? N.translateFn : null, v = f(), K = (e, t, o) => {
38
- s.value[e] && (s.value[e][t] = o);
37
+ const a = j, y = S("ruleModule", void 0), f = S("pageMethodMap", {}), H = S("getGlobalParams", () => {
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
- h[e.onClick](y, t, o);
45
+ y[e.onClick](f, t, o);
45
46
  } catch (i) {
46
47
  console.error(i);
47
48
  }
48
49
  }, A = (e) => {
49
50
  if (a.rowClick)
50
51
  try {
51
- h[a.rowClick](y, e);
52
+ y[a.rowClick](f, e);
52
53
  } catch (t) {
53
54
  console.error(t);
54
55
  }
55
56
  }, W = (e) => {
56
57
  if (a.rowDbClick)
57
58
  try {
58
- h[a.rowDbClick](y, e);
59
+ y[a.rowDbClick](f, e);
59
60
  } catch (t) {
60
61
  console.error(t);
61
62
  }
62
- }, q = f([]), I = (e) => {
63
+ }, q = m([]), I = (e) => {
63
64
  q.value = e;
64
65
  }, J = () => {
65
66
  var e;
66
67
  (e = v.value) == null || e.clearSelection();
67
- }, O = () => s.value, T = f(), 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
- h[a.handleCurrentChange](y, e);
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,22 +83,22 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["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 = f(0), te = (e) => {
86
- M.value = e;
87
- }, l = f({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), ne = () => l.value, ae = (e) => {
86
+ }, T = m(0), te = (e) => {
87
+ T.value = e;
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 };
90
91
  }, oe = (e) => {
91
92
  if (l.value.pageNum = 1, l.value.pageSize = e, !!a.sizeChange)
92
93
  try {
93
- h[a.sizeChange](y, l.value);
94
+ y[a.sizeChange](f, l.value);
94
95
  } catch (t) {
95
96
  console.error(t);
96
97
  }
97
98
  }, le = (e) => {
98
99
  if (l.value.pageNum = e, !!a.pageChange)
99
100
  try {
100
- h[a.pageChange](y, l.value);
101
+ y[a.pageChange](f, l.value);
101
102
  } catch (t) {
102
103
  console.error(t);
103
104
  }
@@ -106,28 +107,28 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["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 = f([]), 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
- }, $ = ye("rootRef"), E = fe({
123
- ...me(a),
122
+ r.value = [...r.value];
123
+ }, M = fe("rootRef"), $ = me({
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,29 +141,29 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["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
- Ce(() => {
148
+ const e = ze(a.name, $);
149
+ ke(() => {
149
150
  e();
150
151
  });
151
152
  }
152
- return G(E), (e, t) => {
153
- const o = B("el-table-column"), i = B("el-button"), w = B("el-pagination");
153
+ return G($), (e, t) => {
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: P(["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
- F(m("div", null, [
161
- b(c(_e), {
161
+ F(C("div", null, [
162
+ b(p(Ne), {
162
163
  ref_key: "tableRef",
163
164
  ref: v,
164
- data: s.value,
165
- "highlight-current-row": e.highlightCurrentRow,
165
+ data: r.value,
166
+ "highlight-current-row": "",
166
167
  "row-key": e.rowKey,
167
168
  stripe: e.stripe,
168
169
  onRowClick: A,
@@ -171,22 +172,22 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
171
172
  onCurrentChange: Q,
172
173
  height: e.height
173
174
  }, {
174
- empty: C(() => [
175
- m("div", Ne, [
176
- b(c(Se), {
175
+ empty: h(() => [
176
+ C("div", De, [
177
+ b(p(Se), {
177
178
  name: "tableEmpty",
178
179
  style: { width: 56, height: 56 }
179
180
  }),
180
- t[2] || (t[2] = m("div", null, "No data available,please check", -1))
181
+ t[2] || (t[2] = C("div", null, "No data available,please check", -1))
181
182
  ])
182
183
  ]),
183
- default: C(() => [
184
+ default: h(() => [
184
185
  e.multipleSelection ? (u(), z(o, {
185
186
  key: 0,
186
187
  type: "selection",
187
188
  width: "55"
188
189
  })) : k("", !0),
189
- (u(!0), g(R, null, V(e.columns, (n) => (u(), g(R, {
190
+ (u(!0), g(B, null, V(e.columns, (n) => (u(), g(B, {
190
191
  key: n.key
191
192
  }, [
192
193
  n.hidden ? k("", !0) : (u(), z(o, {
@@ -195,23 +196,23 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
195
196
  "min-width": n.minWidth,
196
197
  fixed: n.fixed || !1
197
198
  }, {
198
- header: C(() => [
199
- m("div", {
199
+ header: h(() => [
200
+ C("div", {
200
201
  class: "text-ellipsis",
201
202
  title: n.label
202
- }, _(n.label), 9, De)
203
+ }, _(n.label), 9, Te)
203
204
  ]),
204
- default: C(({ 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: (ge) => D(n, p, r)
210
- }, _(c(d) ? c(d)(n.key, p) : p[n.key]), 9, Te)) : (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
- }, _(c(d) ? c(d)(n.key, p) : p[n.key]), 9, Me))
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,26 +223,37 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
222
223
  fixed: "right",
223
224
  align: "left"
224
225
  }, {
225
- default: C(({ row: n, $index: p }) => [
226
- m("div", $e, [
227
- (u(!0), g(R, null, V(e.rowBtns, (r) => (u(), g(R, {
228
- key: r.key
226
+ default: h(({ row: n, $index: c }) => [
227
+ C("div", Ee, [
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(be)(r.condition, { $row: n, $globalParams: c(H)() }) ? (u(), z(i, {
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: ke((ge) => D(r, n, p), ["stop"])
236
+ type: s.type,
237
+ onClick: ve((he) => N(s, n, c), ["stop"])
237
238
  }, {
238
- default: C(() => [
239
- r.icon ? (u(), z(Re, {
240
- key: 0,
241
- name: r.icon.name,
242
- color: r.icon.color,
243
- class: P({ "btn-icon": r.text || r.label })
244
- }, null, 8, ["name", "color", "class"])) : k("", !0)
239
+ default: h(() => [
240
+ b(i, {
241
+ class: "box-item",
242
+ effect: "dark",
243
+ content: s.label,
244
+ placement: "top",
245
+ "popper-class": "low-tsp",
246
+ "show-after": 300
247
+ }, {
248
+ default: h(() => [
249
+ s.icon ? (u(), z(Be, {
250
+ key: 0,
251
+ name: s.icon.name,
252
+ color: s.icon.color
253
+ }, null, 8, ["name", "color"])) : k("", !0)
254
+ ]),
255
+ _: 2
256
+ }, 1032, ["content"])
245
257
  ]),
246
258
  _: 2
247
259
  }, 1032, ["disabled", "type", "onClick"])) : k("", !0)
@@ -252,22 +264,22 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
252
264
  })) : k("", !0)
253
265
  ]),
254
266
  _: 1
255
- }, 8, ["data", "highlight-current-row", "row-key", "stripe", "height"])
267
+ }, 8, ["data", "row-key", "stripe", "height"])
256
268
  ], 512), [
257
269
  [U, e.displayType === "table"]
258
270
  ]),
259
- F(b(Be, ve({ data: s.value }, a), null, 16, ["data"]), [
271
+ F(b(_e, we({ data: r.value }, a), null, 16, ["data"]), [
260
272
  [U, e.displayType === "card"]
261
273
  ]),
262
- m("div", {
263
- class: P(["pagination-wrapper", {
264
- hidePagination: e.hiddenPagination || s.value.length === 0,
274
+ C("div", {
275
+ class: E(["pagination-wrapper", {
276
+ hidePagination: e.hiddenPagination || r.value.length === 0,
265
277
  cardlistPadding: e.displayType === "card"
266
278
  }])
267
279
  }, [
268
- b(w, {
280
+ b(ge, {
269
281
  layout: "total,sizes, prev, pager, next,jumper",
270
- total: M.value,
282
+ total: T.value,
271
283
  "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
272
284
  "default-page-size": e.defaultPageSize,
273
285
  "current-page": l.value.pageNum,
@@ -282,7 +294,7 @@ const Ne = { class: "empty-content" }, De = ["title"], Te = ["title", "onClick"]
282
294
  ], 2));
283
295
  };
284
296
  }
285
- }), je = /* @__PURE__ */ Pe(Ee, [["__scopeId", "data-v-2cc52842"]]);
297
+ }), Ge = /* @__PURE__ */ Pe(Fe, [["__scopeId", "data-v-bc7f6b3e"]]);
286
298
  export {
287
- je as default
299
+ Ge as default
288
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-Be_hWoLI.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-Be_hWoLI.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",