asiaint-lowcode 3.1.5 → 3.1.7

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 (38) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +106 -106
  3. package/dist/index.d.ts +46 -0
  4. package/dist/lazy/{Card-BOfaGCAD.js → Card--w9nxiAx.js} +1 -1
  5. package/dist/lazy/{Cascader-c9NVH0HO.js → Cascader-BY76cR4O.js} +1 -1
  6. package/dist/lazy/{Checkbox-CP5Hz_sn.js → Checkbox-BLeYFkT_.js} +3 -3
  7. package/dist/lazy/{Collapse-DmRhWMQi.js → Collapse-Bt4Ahrnf.js} +1 -1
  8. package/dist/lazy/{Component-B7oOk_E_.js → Component-Bd5bXSKi.js} +1 -1
  9. package/dist/lazy/{Component-Dxp6d8WW.js → Component-Bf3EVLvi.js} +1 -1
  10. package/dist/lazy/{Component-C-kcQly6.js → Component-BoRVBr-7.js} +1 -1
  11. package/dist/lazy/{Component-6pKnk_5J.js → Component-CJcTBpFq.js} +1 -1
  12. package/dist/lazy/{Component-BY0o1x9x.js → Component-CR8voVwE.js} +1 -1
  13. package/dist/lazy/{Component-NhzPHEjf.js → Component-Da2LNm-N.js} +1 -1
  14. package/dist/lazy/CurdCard-DpsAKs25.js +171 -0
  15. package/dist/lazy/{Custom-DYftWr_j.js → Custom-NVgxR9_v.js} +1 -1
  16. package/dist/lazy/{DatePicker-BRMH_x0K.js → DatePicker-DB4gjOJt.js} +1 -1
  17. package/dist/lazy/{DragList-D64A9BXk.js → DragList-De-xGFzP.js} +1 -1
  18. package/dist/lazy/{FormList-CkML06iK.js → FormList-BzXHPyJc.js} +1 -1
  19. package/dist/lazy/{Grid-IbiIAh4a.js → Grid-yeqxjsOY.js} +1 -1
  20. package/dist/lazy/{Inline-Rx-auuwH.js → Inline-IpWQp9Kw.js} +4 -4
  21. package/dist/lazy/{JsonEdit-DuM8TwHB.js → JsonEdit-DP4Yj85B.js} +1 -1
  22. package/dist/lazy/{LogList-ByQb0pIn.js → LogList-BykvjbR5.js} +1 -1
  23. package/dist/lazy/{ObjGroup-BSlL3U9c.js → ObjGroup-DqUiVSMx.js} +1 -1
  24. package/dist/lazy/{OfferDetails-CCJ9cBaX.js → OfferDetails-BZg6nCSv.js} +25 -23
  25. package/dist/lazy/Pagination-BcTgnr0F.js +70 -0
  26. package/dist/lazy/{Progress-DUt0ohVN.js → Progress-N36ua9TW.js} +1 -1
  27. package/dist/lazy/{Radio-tICi60XR.js → Radio-BLBujjCW.js} +2 -2
  28. package/dist/lazy/{SearchSelect-GKmQ98_x.js → SearchSelect-BGVGwqiE.js} +2 -2
  29. package/dist/lazy/{Select-CJnwBHHb.js → Select-pPcyEW_N.js} +2 -2
  30. package/dist/lazy/Table-DI7XDMgJ.js +471 -0
  31. package/dist/lazy/{Tabs-DRmGUewV.js → Tabs-DEvFGQW7.js} +1 -1
  32. package/dist/lazy/{Wrapper-wgAxYRVL.js → Wrapper-C8lKnyo8.js} +10 -10
  33. package/dist/lazy/{index-Dx7tUT8V.js → index-CEq1kq6m.js} +1614 -1583
  34. package/dist/lazy/{useSelect-C5yOBcgw.js → useSelect-3qVf5sLK.js} +1 -1
  35. package/dist/style.css +2 -2
  36. package/package.json +1 -1
  37. package/dist/lazy/CurdCard-BELDwe8l.js +0 -167
  38. package/dist/lazy/Table-BGK1AwZz.js +0 -448
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.5",
3
+ "version": "3.1.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,167 +0,0 @@
1
- import { defineComponent as F, inject as V, ref as w, resolveComponent as C, openBlock as a, createElementBlock as s, normalizeClass as m, normalizeStyle as j, createElementVNode as i, createBlock as r, createCommentVNode as v, toDisplayString as S, withCtx as f, Fragment as _, renderList as M, createTextVNode as A, createVNode as p, unref as B, withDirectives as O, vShow as P } from "vue";
2
- import { u as U, I as u, B as q, a as $, h as G, b as H } from "./index-Dx7tUT8V.js";
3
- import "element-plus";
4
- const J = ["id"], K = { class: "left-part" }, Q = { class: "title" }, W = { class: "right-part" }, X = {
5
- key: 0,
6
- class: "switch-panel"
7
- }, Y = { key: 2 }, Z = /* @__PURE__ */ F({
8
- __name: "CurdCard",
9
- props: {
10
- name: {},
11
- children: {},
12
- defaultCollapse: { type: Boolean },
13
- collapsible: { type: Boolean },
14
- onCollapsed: {},
15
- typeSwitch: { type: Boolean },
16
- title: {},
17
- btns: {},
18
- type: {},
19
- mainIcon: {},
20
- extraIcons: {},
21
- displayType: {},
22
- radioList: {},
23
- onRadioChange: {},
24
- radioDefault: {},
25
- style: { type: [Boolean, null, String, Object, Array] }
26
- },
27
- setup(R) {
28
- const d = V("ruleModule", void 0), k = V("pageMethodMap", {}), n = R, g = w(n.radioDefault ?? "2"), T = (e) => {
29
- if (e && d)
30
- try {
31
- d[e](k);
32
- } catch (o) {
33
- console.error(o);
34
- }
35
- }, D = (e) => {
36
- n.onRadioChange && d && d[n.onRadioChange](k, e);
37
- }, L = () => {
38
- c.value = !c.value, n.onCollapsed && d && d[n.onCollapsed](k, c.value);
39
- }, c = w(n.defaultCollapse ?? !1), y = w(n.displayType || (n.typeSwitch ? "card" : "table")), N = U(), b = (e) => {
40
- y.value = e;
41
- const o = G(N.schema.items, n.name), h = (I) => {
42
- I.forEach((t) => {
43
- t.component === "Table" && t.props && (t.props.displayType = e), t.children && t.children.length > 0 && h(t.children);
44
- });
45
- };
46
- o && o.children && h(o.children);
47
- };
48
- return b(y.value), (e, o) => {
49
- const h = C("el-radio"), I = C("el-radio-group"), t = C("el-tooltip"), z = C("el-collapse-transition");
50
- return a(), s("div", {
51
- class: m(["crm-curd-card", { gridItem: e.type === "gridItem" }]),
52
- style: j(e.style),
53
- id: e.name
54
- }, [
55
- i("div", {
56
- class: m(["card-header", {
57
- inline: e.type === "inline",
58
- mix: e.type === "mix",
59
- default: e.type === "default",
60
- gridItem: e.type === "gridItem",
61
- collapsedPadding: c.value && e.onCollapsed
62
- }])
63
- }, [
64
- i("div", K, [
65
- e.mainIcon ? (a(), r(u, {
66
- key: 0,
67
- class: "title-icon",
68
- size: "large",
69
- name: e.mainIcon.name,
70
- color: e.mainIcon.color
71
- }, null, 8, ["name", "color"])) : v("", !0),
72
- i("span", Q, S(e.title), 1),
73
- e.radioList ? (a(), r(I, {
74
- key: 1,
75
- class: "ml-9",
76
- modelValue: g.value,
77
- "onUpdate:modelValue": o[0] || (o[0] = (l) => g.value = l),
78
- onChange: o[1] || (o[1] = (l) => D(g.value))
79
- }, {
80
- default: f(() => [
81
- (a(!0), s(_, null, M(e.radioList, (l) => (a(), r(h, {
82
- value: l.value,
83
- key: l.value
84
- }, {
85
- default: f(() => [
86
- A(S(l.label), 1)
87
- ]),
88
- _: 2
89
- }, 1032, ["value"]))), 128))
90
- ]),
91
- _: 1
92
- }, 8, ["modelValue"])) : v("", !0),
93
- (a(!0), s(_, null, M(e.extraIcons, (l) => (a(), s(_, {
94
- key: l.name
95
- }, [
96
- l.tips ? (a(), r(t, {
97
- key: 0,
98
- content: l.tips,
99
- placement: "right"
100
- }, {
101
- default: f(() => [
102
- p(u, {
103
- class: "extra-icon",
104
- name: l.name,
105
- color: l.color,
106
- onClick: (E) => T(l.onClick)
107
- }, null, 8, ["name", "color", "onClick"])
108
- ]),
109
- _: 2
110
- }, 1032, ["content"])) : (a(), r(u, {
111
- key: 1,
112
- class: "extra-icon",
113
- name: l.name,
114
- color: l.color,
115
- onClick: (E) => T(l.onClick)
116
- }, null, 8, ["name", "color", "onClick"]))
117
- ], 64))), 128))
118
- ]),
119
- i("div", W, [
120
- e.typeSwitch ? (a(), s("div", X, [
121
- i("div", {
122
- class: m(["switch-icon-wrapper", { active: y.value === "card" }]),
123
- onClick: o[2] || (o[2] = (l) => b("card"))
124
- }, [
125
- p(u, { name: "icon-kapian" })
126
- ], 2),
127
- i("div", {
128
- class: m(["switch-icon-wrapper", { active: y.value === "table" }]),
129
- onClick: o[3] || (o[3] = (l) => b("table"))
130
- }, [
131
- p(u, { name: "icon-biaoge" })
132
- ], 2)
133
- ])) : v("", !0),
134
- e.collapsible ? (a(), s("div", {
135
- key: 1,
136
- class: m(["collapse-icon-wrapper", { collapsed: c.value }]),
137
- onClick: L
138
- }, [
139
- p(u, { name: "icon-shaixuan" })
140
- ], 2)) : v("", !0),
141
- e.btns && e.btns.length > 0 ? (a(), s("div", Y, [
142
- p(B(q), {
143
- btns: e.btns || []
144
- }, null, 8, ["btns"])
145
- ])) : v("", !0)
146
- ])
147
- ], 2),
148
- e.onCollapsed ? (a(), r(B($), {
149
- key: 1,
150
- list: e.children
151
- }, null, 8, ["list"])) : (a(), r(z, { key: 0 }, {
152
- default: f(() => [
153
- O(i("div", null, [
154
- p(B($), { list: e.children }, null, 8, ["list"])
155
- ], 512), [
156
- [P, !c.value]
157
- ])
158
- ]),
159
- _: 1
160
- }))
161
- ], 14, J);
162
- };
163
- }
164
- }), oe = /* @__PURE__ */ H(Z, [["__scopeId", "data-v-73ceae8b"]]);
165
- export {
166
- oe as default
167
- };
@@ -1,448 +0,0 @@
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
- import { ElTable as qe, ElLoading as O } from "element-plus";
4
- const Je = ["id"], Oe = { class: "empty-content" }, Qe = ["title"], Xe = ["title", "onClick"], Ye = {
5
- key: 1,
6
- class: "icon-text-wrapper"
7
- }, Ze = ["title"], et = ["title"], tt = { class: "row-btn-wrapper" }, nt = /* @__PURE__ */ Me({
8
- __name: "Table",
9
- props: {
10
- title: {},
11
- key: {},
12
- rulePath: {},
13
- rowKey: {},
14
- showDynamicSearch: { type: Boolean },
15
- multipleSelection: { type: Boolean },
16
- highlightCurrentRow: { type: Boolean },
17
- "highlight-current-row": { type: Boolean },
18
- stripe: { type: Boolean },
19
- rowClick: {},
20
- rowDbClick: {},
21
- sizeChange: {},
22
- pageChange: {},
23
- topBtns: {},
24
- rowBtns: {},
25
- columns: {},
26
- hidden: { type: Boolean },
27
- hiddenPagination: { type: Boolean },
28
- handleCurrentChange: {},
29
- selectable: {},
30
- pageSizes: {},
31
- pagerCount: {},
32
- paginationLayout: {},
33
- defaultPageSize: {},
34
- typeSwitch: { type: Boolean },
35
- displayType: { default: "table" },
36
- onMounted: {},
37
- onActivated: {},
38
- height: {},
39
- collapsible: { type: Boolean },
40
- name: {},
41
- gridColumns: {}
42
- },
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), u = D(() => n.rulePath && E[n.rulePath] ? E[n.rulePath] : Y), d = _("pageMethodMap", {}), T = _("getGlobalParams", () => {
45
- }), I = _(Ue), A = I ? I.translateFn : null, z = b(), Z = (e, t, a) => {
46
- i.value[e] && (i.value[e][t] = a);
47
- }, ee = (e, t) => {
48
- const a = n.columns.find((r) => r.key === e);
49
- a && (a.hidden = !t);
50
- }, M = (e, t, a, r) => {
51
- try {
52
- u.value[e.onClick](d, t, a, r), r == null || r.stopPropagation();
53
- } catch (y) {
54
- console.error(y);
55
- }
56
- }, te = (e) => {
57
- if (n.rowClick)
58
- try {
59
- u.value[n.rowClick](d, e);
60
- } catch (t) {
61
- console.error(t);
62
- }
63
- }, ne = (e) => {
64
- if (n.rowDbClick)
65
- try {
66
- u.value[n.rowDbClick](d, e);
67
- } catch (t) {
68
- console.error(t);
69
- }
70
- }, ae = b([]), oe = (e) => {
71
- ae.value = e;
72
- }, le = (e, t) => {
73
- if (!n.selectable)
74
- return !0;
75
- try {
76
- return u.value[n.selectable](d, e, t);
77
- } catch (a) {
78
- console.error(a);
79
- }
80
- return !0;
81
- }, re = () => {
82
- var e;
83
- (e = z.value) == null || e.clearSelection();
84
- }, ie = () => i.value, V = b(), se = (e) => {
85
- if (V.value = e, !!n.handleCurrentChange)
86
- try {
87
- u.value[n.handleCurrentChange](d, e);
88
- } catch (t) {
89
- console.error(t);
90
- }
91
- }, ue = () => V.value, ce = () => {
92
- var e;
93
- return (e = z.value) == null ? void 0 : e.getSelectionRows();
94
- }, pe = async () => !0, de = (e, t) => {
95
- var r;
96
- const a = (r = n.topBtns) == null ? void 0 : r.find((y) => y.key === e);
97
- a && (a.hidden = t);
98
- }, ge = (e, t) => {
99
- var r;
100
- const a = (r = n.rowBtns) == null ? void 0 : r.find((y) => y.key === e);
101
- a && (a.condition = !t);
102
- }, x = b(0), he = (e) => {
103
- x.value = e;
104
- }, c = b({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), ye = () => c.value, me = (e) => {
105
- let t = !1;
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
- return;
110
- const t = O.service({
111
- target: `#${n.name}`,
112
- text: "Loading..."
113
- });
114
- try {
115
- await u.value[n.sizeChange](d, c.value);
116
- } catch (a) {
117
- console.error(a);
118
- } finally {
119
- t.close();
120
- }
121
- }, ve = async (e) => {
122
- if (c.value.pageNum = e, !n.pageChange)
123
- return;
124
- const t = O.service({
125
- target: `#${n.name}`,
126
- text: "Loading..."
127
- });
128
- try {
129
- await u.value[n.pageChange](d, c.value);
130
- } catch (a) {
131
- console.error(a);
132
- } finally {
133
- t.close();
134
- }
135
- }, ke = (e) => {
136
- var t;
137
- (t = z.value) == null || t.setCurrentRow(e);
138
- }, Ce = (e) => {
139
- var t;
140
- (t = z.value) == null || t.setCurrentRow(i.value[e]);
141
- }, we = (e, t, a) => {
142
- n.columns.forEach((r) => {
143
- r.key === e && r[t] && (r[t] = a);
144
- });
145
- }, i = b([]), Se = (e) => {
146
- i.value = e;
147
- }, be = (e = {}) => {
148
- i.value.push(e);
149
- }, ze = (e) => {
150
- e >= 0 && e < i.value.length && i.value.splice(e, 1);
151
- }, _e = async () => {
152
- i.value = [...i.value];
153
- }, U = De("rootRef"), j = $e({
154
- ...Fe(n),
155
- setCellData: Z,
156
- clearSelection: re,
157
- getData: ie,
158
- getCurrentRow: ue,
159
- getSelectedRows: ce,
160
- addRow: be,
161
- deleteRow: ze,
162
- refresh: _e,
163
- validate: pe,
164
- setData: Se,
165
- selectRow: ke,
166
- selectRowNum: Ce,
167
- setTotal: he,
168
- getPagination: ye,
169
- setPagination: me,
170
- setTopBtnHidden: de,
171
- setColVisible: ee,
172
- setColumn: we,
173
- setRowsBtnHidden: ge,
174
- rootRef: U,
175
- type: "table"
176
- }), C = (e, t) => {
177
- const a = A ? A(e.key, t) : t[e.key];
178
- if (!e.encrypted || !a)
179
- return a;
180
- const r = `${a}`;
181
- return r.length <= 4 ? "*".repeat(r.length) : r.slice(0, -4) + "****";
182
- }, Be = (e, t) => {
183
- if (!e.getTextStyle || !u.value)
184
- return {};
185
- try {
186
- return u.value[e.getTextStyle](d, t, e);
187
- } catch (a) {
188
- console.error(a);
189
- }
190
- }, G = (e, t) => {
191
- if (!(!e.getIconInfo || !u.value))
192
- try {
193
- return u.value[e.getIconInfo](d, t, e);
194
- } catch (a) {
195
- console.error(a);
196
- }
197
- }, Pe = D(() => !n.rowBtns || n.rowBtns.length === 0 || !i.value || i.value.length === 0 ? !1 : i.value.some(
198
- (e) => {
199
- var t;
200
- return (t = n.rowBtns) == null ? void 0 : t.some((a) => a.condition === void 0 || a.condition === null ? !0 : F(a.condition, {
201
- $row: e,
202
- $globalParams: T()
203
- }));
204
- }
205
- ));
206
- if (Le(async () => {
207
- if (!n.onMounted || !u.value)
208
- return;
209
- await Ee();
210
- const e = n.onMounted;
211
- try {
212
- u.value[e](d);
213
- } catch (t) {
214
- console.error(t);
215
- }
216
- }), Ie(() => {
217
- if (!n.onActivated || !u.value)
218
- return;
219
- const e = n.onActivated;
220
- try {
221
- u.value[e](d);
222
- } catch (t) {
223
- console.error(t);
224
- }
225
- }), n.name) {
226
- const e = je(n.name, j);
227
- Ae(() => {
228
- e();
229
- });
230
- }
231
- return X(j), (e, t) => {
232
- const a = B("el-table-column"), r = B("el-tooltip"), y = B("el-button"), Re = B("el-popover"), Ne = B("el-pagination");
233
- return e.hidden ? k("", !0) : (s(), h("div", {
234
- key: 0,
235
- class: $(["table-render", { tableBorder: R.value === "table" }]),
236
- ref_key: "rootRef",
237
- ref: U,
238
- id: e.name
239
- }, [
240
- K(m("div", null, [
241
- f(w(qe), {
242
- ref_key: "tableRef",
243
- ref: z,
244
- data: i.value,
245
- "highlight-current-row": "",
246
- "row-key": e.rowKey,
247
- stripe: e.stripe,
248
- "show-overflow-tooltip": "",
249
- onRowClick: te,
250
- onRowDblclick: ne,
251
- onSelectionChange: oe,
252
- onCurrentChange: se,
253
- height: e.height
254
- }, {
255
- empty: g(() => [
256
- m("div", Oe, [
257
- f(w(Ge), {
258
- name: "tableEmpty",
259
- style: { width: 56, height: 56 }
260
- }),
261
- t[2] || (t[2] = m("div", null, "No data available,please check", -1))
262
- ])
263
- ]),
264
- default: g(() => [
265
- e.multipleSelection ? (s(), v(a, {
266
- key: 0,
267
- type: "selection",
268
- width: "55",
269
- selectable: le
270
- })) : k("", !0),
271
- (s(!0), h(P, null, W(e.columns, (o) => (s(), h(P, {
272
- key: o.key
273
- }, [
274
- o.hidden ? k("", !0) : (s(), v(a, {
275
- key: 0,
276
- prop: o.key,
277
- "min-width": o.minWidth,
278
- fixed: o.fixed || !1
279
- }, {
280
- header: g(() => [
281
- m("div", {
282
- class: "text-ellipsis",
283
- title: o.label
284
- }, N(o.label), 9, Qe)
285
- ]),
286
- default: g(({ row: p, $index: l }) => {
287
- var S, H;
288
- return [
289
- o.type === "link" ? (s(), h("div", {
290
- key: 0,
291
- class: $(["text-ellipsis link-style", { "click-style": o.onClick }]),
292
- title: C(o, p),
293
- onClick: (Te) => M(o, p, l, Te)
294
- }, N(C(o, p)), 11, Xe)) : o.type === "iconText" ? (s(), h("div", Ye, [
295
- f(L, {
296
- name: (S = G(o, p)) == null ? void 0 : S.name,
297
- color: (H = G(o, p)) == null ? void 0 : H.color
298
- }, null, 8, ["name", "color"]),
299
- m("span", {
300
- class: "text-ellipsis",
301
- title: C(o, p)
302
- }, N(C(o, p)), 9, Ze)
303
- ])) : (s(), h("div", {
304
- key: 2,
305
- class: "text-ellipsis",
306
- title: C(o, p),
307
- style: Ve(Be(o, p))
308
- }, N(C(o, p)), 13, et))
309
- ];
310
- }),
311
- _: 2
312
- }, 1032, ["prop", "min-width", "fixed"]))
313
- ], 64))), 128)),
314
- Pe.value && e.rowBtns && e.rowBtns.length > 0 ? (s(), v(a, {
315
- key: 1,
316
- label: "Action",
317
- fixed: "right",
318
- align: "left",
319
- width: e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100
320
- }, {
321
- default: g(({ row: o, $index: p }) => [
322
- m("div", tt, [
323
- (s(!0), h(P, null, W(e.rowBtns, (l) => (s(), h(P, {
324
- key: l.key
325
- }, [
326
- l.component === "Popover" ? (s(), v(Re, {
327
- key: 0,
328
- title: l.label,
329
- trigger: "click",
330
- "popper-class": "btn-popover",
331
- width: "400"
332
- }, {
333
- reference: g(() => [
334
- l.condition === void 0 || l.condition === null || w(F)(l.condition, {
335
- $row: o,
336
- $globalParams: w(T)()
337
- }) ? (s(), v(y, {
338
- key: 0,
339
- disabled: l.disabled,
340
- link: "",
341
- size: "small",
342
- type: l.type,
343
- onClick: q((S) => M(l, o, p, S), ["stop"])
344
- }, {
345
- default: g(() => [
346
- f(r, {
347
- class: "box-item",
348
- effect: "dark",
349
- content: l.label,
350
- placement: "top",
351
- "popper-class": "low-tsp"
352
- }, {
353
- default: g(() => [
354
- l.icon ? (s(), v(L, {
355
- key: 0,
356
- name: l.icon.name,
357
- color: l.icon.color
358
- }, null, 8, ["name", "color"])) : k("", !0)
359
- ]),
360
- _: 2
361
- }, 1032, ["content"])
362
- ]),
363
- _: 2
364
- }, 1032, ["disabled", "type", "onClick"])) : k("", !0)
365
- ]),
366
- default: g(() => [
367
- m("div", null, [
368
- f(w(He), {
369
- list: l.children
370
- }, null, 8, ["list"])
371
- ])
372
- ]),
373
- _: 2
374
- }, 1032, ["title"])) : (s(), h(P, { key: 1 }, [
375
- l.condition === void 0 || l.condition === null || w(F)(l.condition, {
376
- $row: o,
377
- $globalParams: w(T)()
378
- }) ? (s(), v(y, {
379
- key: 0,
380
- disabled: l.disabled,
381
- link: "",
382
- size: "small",
383
- type: l.type,
384
- onClick: q((S) => M(l, o, p, S), ["stop"])
385
- }, {
386
- default: g(() => [
387
- f(r, {
388
- class: "box-item",
389
- effect: "dark",
390
- content: l.label,
391
- placement: "top",
392
- "popper-class": "low-tsp"
393
- }, {
394
- default: g(() => [
395
- l.icon ? (s(), v(L, {
396
- key: 0,
397
- name: l.icon.name,
398
- color: l.icon.color
399
- }, null, 8, ["name", "color"])) : k("", !0)
400
- ]),
401
- _: 2
402
- }, 1032, ["content"])
403
- ]),
404
- _: 2
405
- }, 1032, ["disabled", "type", "onClick"])) : k("", !0)
406
- ], 64))
407
- ], 64))), 128))
408
- ])
409
- ]),
410
- _: 1
411
- }, 8, ["width"])) : k("", !0)
412
- ]),
413
- _: 1
414
- }, 8, ["data", "row-key", "stripe", "height"])
415
- ], 512), [
416
- [J, R.value === "table"]
417
- ]),
418
- K(f(Ke, xe({ data: i.value }, n, { getColText: C }), null, 16, ["data"]), [
419
- [J, R.value === "card"]
420
- ]),
421
- m("div", {
422
- class: $(["pagination-wrapper", {
423
- hidePagination: (e.hiddenPagination || i.value.length === 0) && !e.height,
424
- transparentPagination: (e.hiddenPagination || i.value.length === 0) && e.height,
425
- cardlistPadding: R.value === "card"
426
- }])
427
- }, [
428
- f(Ne, {
429
- layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
430
- total: x.value,
431
- "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
432
- "default-page-size": e.defaultPageSize,
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
- "pager-count": Number(e.pagerCount) || 5,
438
- onSizeChange: fe,
439
- onCurrentChange: ve
440
- }, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
441
- ], 2)
442
- ], 10, Je));
443
- };
444
- }
445
- }), rt = /* @__PURE__ */ We(nt, [["__scopeId", "data-v-7dd25355"]]);
446
- export {
447
- rt as default
448
- };