asiaint-lowcode 3.0.23 → 3.0.24

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 +45 -45
  3. package/dist/index.d.ts +2 -0
  4. package/dist/lazy/{Card-CZG5Z0uD.js → Card-DWHXO8QF.js} +1 -1
  5. package/dist/lazy/{Cascader-DRUN46Ip.js → Cascader-BRSxnuqk.js} +1 -1
  6. package/dist/lazy/{Checkbox-VJj_2reX.js → Checkbox-FOpBQ2u7.js} +2 -2
  7. package/dist/lazy/{Collapse-DfwDACCK.js → Collapse-NyEQs15R.js} +1 -1
  8. package/dist/lazy/{Component-BlPY6jX4.js → Component-4MN_4phy.js} +1 -1
  9. package/dist/lazy/{Component-COS7arjK.js → Component-Bh3J0rdf.js} +1 -1
  10. package/dist/lazy/Component-CEM0gst0.js +93 -0
  11. package/dist/lazy/{Component-D4VHJjc9.js → Component-DrDAFMp3.js} +1 -1
  12. package/dist/lazy/{Component-CCXpFiMP.js → Component-tnTacQmK.js} +1 -1
  13. package/dist/lazy/{Component-CXXtarUs.js → Component-xNOvM2iR.js} +1 -1
  14. package/dist/lazy/{CurdCard-BuqhRpnH.js → CurdCard-D1pm5KZ5.js} +17 -17
  15. package/dist/lazy/{Custom-CSOmIV5k.js → Custom-BPTzdX6c.js} +1 -1
  16. package/dist/lazy/{FormList-Bl10uAR5.js → FormList-Cilxebcn.js} +1 -1
  17. package/dist/lazy/{Grid-rPXNVOXV.js → Grid-CT8qq4Pi.js} +3 -3
  18. package/dist/lazy/{Inline-82FAt4Bv.js → Inline-ChdliYlO.js} +1 -1
  19. package/dist/lazy/{JsonEdit-DD7fKpdC.js → JsonEdit-CWKx0wA9.js} +1 -1
  20. package/dist/lazy/{ObjGroup-Bc87HPkp.js → ObjGroup-UNJvnh1b.js} +1 -1
  21. package/dist/lazy/{OfferDetails-CoNcRBAv.js → OfferDetails-CUZi3yz4.js} +2 -1
  22. package/dist/lazy/{Radio-CEaEiwQN.js → Radio-DtPOd1to.js} +2 -2
  23. package/dist/lazy/{SearchSelect-Bm5f45My.js → SearchSelect-DtZPSGCS.js} +2 -2
  24. package/dist/lazy/{Select-DyBW5JN_.js → Select-BNV3Zt9l.js} +2 -2
  25. package/dist/lazy/Table-BkvHcRpT.js +280 -0
  26. package/dist/lazy/{Tabs-bpY3t6W5.js → Tabs-CcBlFBej.js} +1 -1
  27. package/dist/lazy/{Wrapper-C7rWy4nk.js → Wrapper-CQbgkAfW.js} +1 -1
  28. package/dist/lazy/{index-Pv4NkPBu.js → index-DCpsxjeZ.js} +334 -327
  29. package/dist/lazy/{useSelect-DuOFzI6m.js → useSelect-N-3TdoV-.js} +1 -1
  30. package/dist/style.css +2 -2
  31. package/package.json +1 -1
  32. package/dist/lazy/Component-CWcv8ZVM.js +0 -89
  33. package/dist/lazy/Table-CEDCYyQw.js +0 -296
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.0.23",
3
+ "version": "3.0.24",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,89 +0,0 @@
1
- import { defineComponent as $, inject as h, ref as b, resolveComponent as C, openBlock as c, createBlock as m, mergeProps as B, withCtx as f, createElementVNode as d, toDisplayString as y, createElementBlock as _, createCommentVNode as k, Fragment as v, renderList as I, unref as P, withModifiers as V, createTextVNode as w } from "vue";
2
- import { f as E, I as F, b as j } from "./index-Pv4NkPBu.js";
3
- import "element-plus";
4
- const A = { class: "custom-tree-node" }, D = { class: "tree-node-text" }, K = { class: "tree-node-label" }, R = {
5
- key: 0,
6
- class: "tree-node-present"
7
- }, S = /* @__PURE__ */ $({
8
- __name: "Component",
9
- props: {
10
- onNodeClick: {},
11
- onLoad: {},
12
- btns: {}
13
- },
14
- setup(N) {
15
- const l = N, r = h("ruleModule", void 0), a = h("pageMethodMap", {}), i = b(), g = (e, t) => {
16
- i.value = e.id;
17
- }, M = (e, t, n) => {
18
- if (r)
19
- try {
20
- r[e](a, { node: t, data: n });
21
- } catch (s) {
22
- console.error(s);
23
- }
24
- }, x = (e, t) => {
25
- if (l.onNodeClick && r)
26
- try {
27
- r[l.onNodeClick](a, { node: e, data: t });
28
- } catch (n) {
29
- console.error(n);
30
- }
31
- }, L = (e, t, n) => {
32
- if (l.onLoad && r)
33
- try {
34
- r[l.onLoad](a, { node: e, resolve: t, reject: n });
35
- } catch (s) {
36
- console.error(s);
37
- }
38
- };
39
- return (e, t) => {
40
- const n = C("el-button"), s = C("el-tree");
41
- return c(), m(s, B(e.$attrs, {
42
- onNodeClick: x,
43
- load: L,
44
- ref: "treeRef",
45
- class: "crm-tree",
46
- indent: 32,
47
- "current-node-key": i.value,
48
- onCurrentChange: g
49
- }), {
50
- default: f(({ node: p, data: u }) => [
51
- d("div", A, [
52
- d("div", D, [
53
- d("span", K, y(p.label), 1),
54
- u.id === i.value ? (c(), _("div", R, "Present")) : k("", !0)
55
- ]),
56
- d("div", null, [
57
- (c(!0), _(v, null, I(e.btns, (o) => (c(), _(v, {
58
- key: o.key
59
- }, [
60
- P(E)(o.hidden, { $node: p, $data: u }) ? k("", !0) : (c(), m(n, {
61
- key: 0,
62
- link: "",
63
- onClick: V((T) => M(o.onClick, p, u), ["stop"]),
64
- disabled: o.disabled,
65
- type: o.type
66
- }, {
67
- default: f(() => [
68
- o.icon ? (c(), m(F, {
69
- key: 0,
70
- name: o.icon.name,
71
- color: o.icon.color,
72
- class: "btn-icon"
73
- }, null, 8, ["name", "color"])) : k("", !0),
74
- w(" " + y(o.text), 1)
75
- ]),
76
- _: 2
77
- }, 1032, ["onClick", "disabled", "type"]))
78
- ], 64))), 128))
79
- ])
80
- ])
81
- ]),
82
- _: 1
83
- }, 16, ["current-node-key"]);
84
- };
85
- }
86
- }), H = /* @__PURE__ */ j(S, [["__scopeId", "data-v-d08d9a81"]]);
87
- export {
88
- H as default
89
- };
@@ -1,296 +0,0 @@
1
- import { defineComponent as ge, inject as B, ref as f, useTemplateRef as he, readonly as fe, toRefs as ye, onUnmounted as me, resolveComponent as b, openBlock as u, createElementBlock as w, normalizeClass as _, withDirectives as V, createElementVNode as y, createVNode as m, unref as p, withCtx as c, createBlock as z, createCommentVNode as C, Fragment as R, renderList as $, toDisplayString as N, withModifiers as Ce, createTextVNode as ve, vShow as F, mergeProps as ke } from "vue";
2
- import { $ as we, h as ze, _ as Se, f as be, I as Re, C as Be, b as _e } from "./index-Pv4NkPBu.js";
3
- import { ElTable as Ne } from "element-plus";
4
- const Pe = { class: "empty-content" }, De = { class: "text-ellipsis" }, Te = { class: "text-ellipsis" }, Me = /* @__PURE__ */ ge({
5
- __name: "Table",
6
- props: {
7
- title: {},
8
- key: {},
9
- rulePath: {},
10
- rowKey: {},
11
- showDynamicSearch: { type: Boolean },
12
- multipleSelection: { type: Boolean },
13
- highlightCurrentRow: { type: Boolean },
14
- "highlight-current-row": { type: Boolean },
15
- stripe: { type: Boolean },
16
- rowClick: {},
17
- rowDbClick: {},
18
- sizeChange: {},
19
- pageChange: {},
20
- topBtns: {},
21
- rowBtns: {},
22
- columns: {},
23
- hidden: { type: Boolean },
24
- hiddenPagination: { type: Boolean },
25
- handleCurrentChange: {},
26
- pageSizes: {},
27
- pagerCount: {},
28
- defaultPageSize: {},
29
- typeSwitch: { type: Boolean },
30
- displayType: {},
31
- onMounted: {},
32
- name: {}
33
- },
34
- setup(U, { expose: j }) {
35
- const n = U, d = B("ruleModule", void 0), g = B("pageMethodMap", {}), P = B(we), S = P ? P.translateFn : null, v = f(), H = (e, t, a) => {
36
- s.value[e] && (s.value[e][t] = a);
37
- }, K = (e, t) => {
38
- const a = n.columns.find((l) => l.key === e);
39
- a && (a.hidden = !t);
40
- }, L = (e, t, a) => {
41
- try {
42
- d[e.onClick](g, t, a);
43
- } catch (l) {
44
- console.error(l);
45
- }
46
- }, A = (e) => {
47
- if (n.rowClick)
48
- try {
49
- d[n.rowClick](g, e);
50
- } catch (t) {
51
- console.error(t);
52
- }
53
- }, W = (e) => {
54
- if (n.rowDbClick)
55
- try {
56
- d[n.rowDbClick](g, e);
57
- } catch (t) {
58
- console.error(t);
59
- }
60
- }, q = f([]), G = (e) => {
61
- q.value = e;
62
- }, I = () => {
63
- var e;
64
- (e = v.value) == null || e.clearSelection();
65
- }, J = () => s.value, D = f(), O = (e) => {
66
- if (D.value = e, !!n.handleCurrentChange)
67
- try {
68
- d[n.handleCurrentChange](g, e);
69
- } catch (t) {
70
- console.error(t);
71
- }
72
- }, Q = () => D.value, X = () => {
73
- var e;
74
- return (e = v.value) == null ? void 0 : e.getSelectionRows();
75
- }, Y = async () => !0, Z = (e, t) => {
76
- var l;
77
- const a = (l = n.topBtns) == null ? void 0 : l.find((k) => k.key === e);
78
- a && (a.hidden = t);
79
- }, x = (e, t) => {
80
- var l;
81
- const a = (l = n.rowBtns) == null ? void 0 : l.find((k) => k.key === e);
82
- a && (a.condition = !t);
83
- }, T = f(0), ee = (e) => {
84
- T.value = e;
85
- }, r = f({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), te = () => r.value, ne = (e) => {
86
- let t = !1;
87
- return e.pageNum > -1 && (r.value.pageNum !== e.pageNum && (t = !0), r.value.pageNum = e.pageNum), e.pageSize > -1 && (r.value.pageSize !== e.pageSize && (t = !0), r.value.pageSize = e.pageSize), { pagination: r.value, isChange: t };
88
- }, ae = (e) => {
89
- if (r.value.pageNum = 1, r.value.pageSize = e, !!n.sizeChange)
90
- try {
91
- d[n.sizeChange](g, r.value);
92
- } catch (t) {
93
- console.error(t);
94
- }
95
- }, oe = (e) => {
96
- if (r.value.pageNum = e, !!n.pageChange)
97
- try {
98
- d[n.pageChange](g, r.value);
99
- } catch (t) {
100
- console.error(t);
101
- }
102
- }, le = (e) => {
103
- var t;
104
- (t = v.value) == null || t.setCurrentRow(e);
105
- }, re = (e) => {
106
- var t;
107
- (t = v.value) == null || t.setCurrentRow(s.value[e]);
108
- }, ie = (e, t, a) => {
109
- n.columns.forEach((l) => {
110
- l.key === e && l[t] && (l[t] = a);
111
- });
112
- }, s = f([]), se = (e) => {
113
- s.value = e;
114
- }, ue = (e = {}) => {
115
- s.value.push(e);
116
- }, ce = (e) => {
117
- e >= 0 && e < s.value.length && s.value.splice(e, 1);
118
- }, pe = async () => {
119
- s.value = [...s.value];
120
- }, M = he("rootRef"), E = fe({
121
- ...ye(n),
122
- setCellData: H,
123
- clearSelection: I,
124
- getData: J,
125
- getCurrentRow: Q,
126
- getSelectedRows: X,
127
- addRow: ue,
128
- deleteRow: ce,
129
- refresh: pe,
130
- validate: Y,
131
- setData: se,
132
- selectRow: le,
133
- selectRowNum: re,
134
- setTotal: ee,
135
- getPagination: te,
136
- setPagination: ne,
137
- setTopBtnHidden: Z,
138
- setColVisible: K,
139
- setColumn: ie,
140
- setRowsBtnHidden: x,
141
- rootRef: M,
142
- type: "table"
143
- });
144
- if (n.name) {
145
- const e = ze(n.name, E);
146
- me(() => {
147
- e();
148
- });
149
- }
150
- return j(E), (e, t) => {
151
- const a = b("el-table-column"), l = b("el-tooltip"), k = b("el-button"), de = b("el-pagination");
152
- return e.hidden ? C("", !0) : (u(), w("div", {
153
- key: 0,
154
- class: _(["table-render", { tableBorder: e.displayType === "table" }]),
155
- ref_key: "rootRef",
156
- ref: M
157
- }, [
158
- V(y("div", null, [
159
- m(p(Ne), {
160
- ref_key: "tableRef",
161
- ref: v,
162
- data: s.value,
163
- "highlight-current-row": e.highlightCurrentRow,
164
- "row-key": e.rowKey,
165
- stripe: e.stripe,
166
- onRowClick: A,
167
- onRowDblclick: W,
168
- onSelectionChange: G,
169
- onCurrentChange: O,
170
- height: 250
171
- }, {
172
- empty: c(() => [
173
- y("div", Pe, [
174
- m(p(Se), {
175
- name: "tableEmpty",
176
- style: { width: 56, height: 56 }
177
- }),
178
- t[2] || (t[2] = y("div", null, "No data available,please check", -1))
179
- ])
180
- ]),
181
- default: c(() => [
182
- e.multipleSelection ? (u(), z(a, {
183
- key: 0,
184
- type: "selection",
185
- width: "55"
186
- })) : C("", !0),
187
- (u(!0), w(R, null, $(e.columns, (o) => (u(), w(R, {
188
- key: o.key
189
- }, [
190
- o.hidden ? C("", !0) : (u(), z(a, {
191
- key: 0,
192
- prop: o.key,
193
- "min-width": o.minWidth,
194
- fixed: o.fixed || !1
195
- }, {
196
- header: c(() => [
197
- m(l, {
198
- class: "box-item",
199
- effect: "dark",
200
- content: o.label,
201
- "show-after": 300,
202
- placement: "top"
203
- }, {
204
- default: c(() => [
205
- y("div", De, N(o.label), 1)
206
- ]),
207
- _: 2
208
- }, 1032, ["content"])
209
- ]),
210
- default: c(({ row: h }) => [
211
- m(l, {
212
- class: "box-item",
213
- effect: "dark",
214
- content: p(S) ? p(S)(o.key, h) : h[o.key],
215
- "show-after": 300,
216
- placement: "top"
217
- }, {
218
- default: c(() => [
219
- y("div", Te, N(p(S) ? p(S)(o.key, h) : h[o.key]), 1)
220
- ]),
221
- _: 2
222
- }, 1032, ["content"])
223
- ]),
224
- _: 2
225
- }, 1032, ["prop", "min-width", "fixed"]))
226
- ], 64))), 128)),
227
- e.rowBtns && e.rowBtns.length > 0 ? (u(), z(a, {
228
- key: 1,
229
- label: "Action",
230
- fixed: "right",
231
- align: "left"
232
- }, {
233
- default: c(({ row: o, $index: h }) => [
234
- (u(!0), w(R, null, $(e.rowBtns, (i) => (u(), w(R, {
235
- key: i.key
236
- }, [
237
- i.condition === void 0 || i.condition === null || p(be)(i.condition, { $row: o }) ? (u(), z(k, {
238
- key: 0,
239
- disabled: i.disabled,
240
- link: "",
241
- size: "small",
242
- type: i.type,
243
- onClick: Ce((Ee) => L(i, o, h), ["stop"])
244
- }, {
245
- default: c(() => [
246
- i.icon ? (u(), z(Re, {
247
- key: 0,
248
- name: i.icon.name,
249
- color: i.icon.color,
250
- class: _({ "btn-icon": i.text || i.label })
251
- }, null, 8, ["name", "color", "class"])) : C("", !0),
252
- ve(" " + N(i.label), 1)
253
- ]),
254
- _: 2
255
- }, 1032, ["disabled", "type", "onClick"])) : C("", !0)
256
- ], 64))), 128))
257
- ]),
258
- _: 1
259
- })) : C("", !0)
260
- ]),
261
- _: 1
262
- }, 8, ["data", "highlight-current-row", "row-key", "stripe"])
263
- ], 512), [
264
- [F, e.displayType === "table"]
265
- ]),
266
- V(m(Be, ke({ data: s.value }, n), null, 16, ["data"]), [
267
- [F, e.displayType === "card"]
268
- ]),
269
- y("div", {
270
- class: _(["pagination-wrapper", {
271
- hidePagination: e.hiddenPagination,
272
- cardlistPadding: e.displayType === "card"
273
- }])
274
- }, [
275
- m(de, {
276
- background: "",
277
- layout: "total,sizes, prev, pager, next,jumper",
278
- total: T.value,
279
- "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
280
- "default-page-size": e.defaultPageSize,
281
- "current-page": r.value.pageNum,
282
- "onUpdate:currentPage": t[0] || (t[0] = (o) => r.value.pageNum = o),
283
- "page-size": r.value.pageSize,
284
- "onUpdate:pageSize": t[1] || (t[1] = (o) => r.value.pageSize = o),
285
- "pager-count": e.pagerCount,
286
- onSizeChange: ae,
287
- onCurrentChange: oe
288
- }, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
289
- ], 2)
290
- ], 2));
291
- };
292
- }
293
- }), Ue = /* @__PURE__ */ _e(Me, [["__scopeId", "data-v-5e50f69e"]]);
294
- export {
295
- Ue as default
296
- };