asiaint-lowcode 3.1.6 → 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 +86 -86
  3. package/dist/index.d.ts +4 -0
  4. package/dist/lazy/{Card-BxSJZWRe.js → Card--w9nxiAx.js} +1 -1
  5. package/dist/lazy/{Cascader-CBQmHVMn.js → Cascader-BY76cR4O.js} +1 -1
  6. package/dist/lazy/{Checkbox-DtCo36qA.js → Checkbox-BLeYFkT_.js} +3 -3
  7. package/dist/lazy/{Collapse-DBhJpS8p.js → Collapse-Bt4Ahrnf.js} +1 -1
  8. package/dist/lazy/{Component-CGQyKbaJ.js → Component-Bd5bXSKi.js} +1 -1
  9. package/dist/lazy/{Component-CWCLi10T.js → Component-Bf3EVLvi.js} +1 -1
  10. package/dist/lazy/{Component-BX96i_xQ.js → Component-BoRVBr-7.js} +1 -1
  11. package/dist/lazy/{Component-D69uwk3G.js → Component-CJcTBpFq.js} +1 -1
  12. package/dist/lazy/{Component-DqIO3sLf.js → Component-CR8voVwE.js} +1 -1
  13. package/dist/lazy/{Component-BiJu0Wpo.js → Component-Da2LNm-N.js} +1 -1
  14. package/dist/lazy/CurdCard-DpsAKs25.js +171 -0
  15. package/dist/lazy/{Custom-CLeS0WNK.js → Custom-NVgxR9_v.js} +1 -1
  16. package/dist/lazy/{DatePicker-Dt5hcvo-.js → DatePicker-DB4gjOJt.js} +1 -1
  17. package/dist/lazy/{DragList-D_klHdv3.js → DragList-De-xGFzP.js} +1 -1
  18. package/dist/lazy/{FormList-B0do2Cww.js → FormList-BzXHPyJc.js} +1 -1
  19. package/dist/lazy/{Grid-BP0bLHZq.js → Grid-yeqxjsOY.js} +1 -1
  20. package/dist/lazy/{Inline-C9byVhlf.js → Inline-IpWQp9Kw.js} +4 -4
  21. package/dist/lazy/{JsonEdit-XfFAN1E_.js → JsonEdit-DP4Yj85B.js} +1 -1
  22. package/dist/lazy/{LogList-D0xbbo7m.js → LogList-BykvjbR5.js} +1 -1
  23. package/dist/lazy/{ObjGroup-C-1rV12d.js → ObjGroup-DqUiVSMx.js} +1 -1
  24. package/dist/lazy/{OfferDetails-BvFiG9OW.js → OfferDetails-BZg6nCSv.js} +25 -23
  25. package/dist/lazy/{Pagination-BiUvQdTB.js → Pagination-BcTgnr0F.js} +1 -1
  26. package/dist/lazy/{Progress-zgTpq2KP.js → Progress-N36ua9TW.js} +1 -1
  27. package/dist/lazy/{Radio-BCI45UYe.js → Radio-BLBujjCW.js} +2 -2
  28. package/dist/lazy/{SearchSelect-DXF1bSta.js → SearchSelect-BGVGwqiE.js} +2 -2
  29. package/dist/lazy/{Select-CbN7f0ZU.js → Select-pPcyEW_N.js} +2 -2
  30. package/dist/lazy/Table-DI7XDMgJ.js +471 -0
  31. package/dist/lazy/{Tabs-DnV2Nq-S.js → Tabs-DEvFGQW7.js} +1 -1
  32. package/dist/lazy/{Wrapper-CIIk9b6S.js → Wrapper-C8lKnyo8.js} +1 -1
  33. package/dist/lazy/{index-D6XwA1Hr.js → index-CEq1kq6m.js} +1349 -1326
  34. package/dist/lazy/{useSelect-B8H83TuD.js → useSelect-3qVf5sLK.js} +1 -1
  35. package/dist/style.css +2 -2
  36. package/package.json +1 -1
  37. package/dist/lazy/CurdCard-BDsszml2.js +0 -167
  38. package/dist/lazy/Table-C4IIGTbR.js +0 -449
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.6",
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-D6XwA1Hr.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,449 +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-D6XwA1Hr.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
- body: !0
114
- });
115
- try {
116
- await u.value[n.sizeChange](d, c.value);
117
- } catch (a) {
118
- console.error(a);
119
- } finally {
120
- t.close();
121
- }
122
- }, ve = async (e) => {
123
- if (c.value.pageNum = e, !n.pageChange)
124
- return;
125
- const t = O.service({
126
- target: `#${n.name}`,
127
- text: "Loading...",
128
- body: !0
129
- });
130
- try {
131
- await u.value[n.pageChange](d, c.value);
132
- } catch (a) {
133
- console.error(a);
134
- } finally {
135
- t.close();
136
- }
137
- }, ke = (e) => {
138
- var t;
139
- (t = z.value) == null || t.setCurrentRow(e);
140
- }, Ce = (e) => {
141
- var t;
142
- (t = z.value) == null || t.setCurrentRow(i.value[e]);
143
- }, we = (e, t, a) => {
144
- n.columns.forEach((r) => {
145
- r.key === e && r[t] && (r[t] = a);
146
- });
147
- }, i = b([]), Se = (e) => {
148
- i.value = e;
149
- }, be = (e = {}) => {
150
- i.value.push(e);
151
- }, ze = (e) => {
152
- e >= 0 && e < i.value.length && i.value.splice(e, 1);
153
- }, _e = async () => {
154
- i.value = [...i.value];
155
- }, U = De("rootRef"), j = $e({
156
- ...Fe(n),
157
- setCellData: Z,
158
- clearSelection: re,
159
- getData: ie,
160
- getCurrentRow: ue,
161
- getSelectedRows: ce,
162
- addRow: be,
163
- deleteRow: ze,
164
- refresh: _e,
165
- validate: pe,
166
- setData: Se,
167
- selectRow: ke,
168
- selectRowNum: Ce,
169
- setTotal: he,
170
- getPagination: ye,
171
- setPagination: me,
172
- setTopBtnHidden: de,
173
- setColVisible: ee,
174
- setColumn: we,
175
- setRowsBtnHidden: ge,
176
- rootRef: U,
177
- type: "table"
178
- }), C = (e, t) => {
179
- const a = A ? A(e.key, t) : t[e.key];
180
- if (!e.encrypted || !a)
181
- return a;
182
- const r = `${a}`;
183
- return r.length <= 4 ? "*".repeat(r.length) : r.slice(0, -4) + "****";
184
- }, Be = (e, t) => {
185
- if (!e.getTextStyle || !u.value)
186
- return {};
187
- try {
188
- return u.value[e.getTextStyle](d, t, e);
189
- } catch (a) {
190
- console.error(a);
191
- }
192
- }, G = (e, t) => {
193
- if (!(!e.getIconInfo || !u.value))
194
- try {
195
- return u.value[e.getIconInfo](d, t, e);
196
- } catch (a) {
197
- console.error(a);
198
- }
199
- }, Pe = D(() => !n.rowBtns || n.rowBtns.length === 0 || !i.value || i.value.length === 0 ? !1 : i.value.some(
200
- (e) => {
201
- var t;
202
- return (t = n.rowBtns) == null ? void 0 : t.some((a) => a.condition === void 0 || a.condition === null ? !0 : F(a.condition, {
203
- $row: e,
204
- $globalParams: T()
205
- }));
206
- }
207
- ));
208
- if (Le(async () => {
209
- if (!n.onMounted || !u.value)
210
- return;
211
- await Ee();
212
- const e = n.onMounted;
213
- try {
214
- u.value[e](d);
215
- } catch (t) {
216
- console.error(t);
217
- }
218
- }), Ie(() => {
219
- if (!n.onActivated || !u.value)
220
- return;
221
- const e = n.onActivated;
222
- try {
223
- u.value[e](d);
224
- } catch (t) {
225
- console.error(t);
226
- }
227
- }), n.name) {
228
- const e = je(n.name, j);
229
- Ae(() => {
230
- e();
231
- });
232
- }
233
- return X(j), (e, t) => {
234
- const a = B("el-table-column"), r = B("el-tooltip"), y = B("el-button"), Re = B("el-popover"), Ne = B("el-pagination");
235
- return e.hidden ? k("", !0) : (s(), h("div", {
236
- key: 0,
237
- class: $(["table-render", { tableBorder: R.value === "table" }]),
238
- ref_key: "rootRef",
239
- ref: U,
240
- id: e.name
241
- }, [
242
- K(m("div", null, [
243
- f(w(qe), {
244
- ref_key: "tableRef",
245
- ref: z,
246
- data: i.value,
247
- "highlight-current-row": "",
248
- "row-key": e.rowKey,
249
- stripe: e.stripe,
250
- onRowClick: te,
251
- onRowDblclick: ne,
252
- onSelectionChange: oe,
253
- onCurrentChange: se,
254
- height: e.height
255
- }, {
256
- empty: g(() => [
257
- m("div", Oe, [
258
- f(w(Ge), {
259
- name: "tableEmpty",
260
- style: { width: 56, height: 56 }
261
- }),
262
- t[2] || (t[2] = m("div", null, "No data available,please check", -1))
263
- ])
264
- ]),
265
- default: g(() => [
266
- e.multipleSelection ? (s(), v(a, {
267
- key: 0,
268
- type: "selection",
269
- width: "55",
270
- selectable: le
271
- })) : k("", !0),
272
- (s(!0), h(P, null, W(e.columns, (o) => (s(), h(P, {
273
- key: o.key
274
- }, [
275
- o.hidden ? k("", !0) : (s(), v(a, {
276
- key: 0,
277
- prop: o.key,
278
- "min-width": o.minWidth,
279
- fixed: o.fixed || !1
280
- }, {
281
- header: g(() => [
282
- m("div", {
283
- class: "text-ellipsis",
284
- title: o.label
285
- }, N(o.label), 9, Qe)
286
- ]),
287
- default: g(({ row: p, $index: l }) => {
288
- var S, H;
289
- return [
290
- o.type === "link" ? (s(), h("div", {
291
- key: 0,
292
- class: $(["text-ellipsis link-style", { "click-style": o.onClick }]),
293
- title: C(o, p),
294
- onClick: (Te) => M(o, p, l, Te)
295
- }, N(C(o, p)), 11, Xe)) : o.type === "iconText" ? (s(), h("div", Ye, [
296
- f(L, {
297
- name: (S = G(o, p)) == null ? void 0 : S.name,
298
- color: (H = G(o, p)) == null ? void 0 : H.color
299
- }, null, 8, ["name", "color"]),
300
- m("span", {
301
- class: "text-ellipsis",
302
- title: C(o, p)
303
- }, N(C(o, p)), 9, Ze)
304
- ])) : (s(), h("div", {
305
- key: 2,
306
- class: "text-ellipsis",
307
- title: C(o, p),
308
- style: Ve(Be(o, p))
309
- }, N(C(o, p)), 13, et))
310
- ];
311
- }),
312
- _: 2
313
- }, 1032, ["prop", "min-width", "fixed"]))
314
- ], 64))), 128)),
315
- Pe.value && e.rowBtns && e.rowBtns.length > 0 ? (s(), v(a, {
316
- key: 1,
317
- label: "Action",
318
- fixed: "right",
319
- align: "left",
320
- width: e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100
321
- }, {
322
- default: g(({ row: o, $index: p }) => [
323
- m("div", tt, [
324
- (s(!0), h(P, null, W(e.rowBtns, (l) => (s(), h(P, {
325
- key: l.key
326
- }, [
327
- l.component === "Popover" ? (s(), v(Re, {
328
- key: 0,
329
- title: l.label,
330
- trigger: "click",
331
- "popper-class": "btn-popover",
332
- width: "400"
333
- }, {
334
- reference: g(() => [
335
- l.condition === void 0 || l.condition === null || w(F)(l.condition, {
336
- $row: o,
337
- $globalParams: w(T)()
338
- }) ? (s(), v(y, {
339
- key: 0,
340
- disabled: l.disabled,
341
- link: "",
342
- size: "small",
343
- type: l.type,
344
- onClick: q((S) => M(l, o, p, S), ["stop"])
345
- }, {
346
- default: g(() => [
347
- f(r, {
348
- class: "box-item",
349
- effect: "dark",
350
- content: l.label,
351
- placement: "top",
352
- "popper-class": "low-tsp"
353
- }, {
354
- default: g(() => [
355
- l.icon ? (s(), v(L, {
356
- key: 0,
357
- name: l.icon.name,
358
- color: l.icon.color
359
- }, null, 8, ["name", "color"])) : k("", !0)
360
- ]),
361
- _: 2
362
- }, 1032, ["content"])
363
- ]),
364
- _: 2
365
- }, 1032, ["disabled", "type", "onClick"])) : k("", !0)
366
- ]),
367
- default: g(() => [
368
- m("div", null, [
369
- f(w(He), {
370
- list: l.children
371
- }, null, 8, ["list"])
372
- ])
373
- ]),
374
- _: 2
375
- }, 1032, ["title"])) : (s(), h(P, { key: 1 }, [
376
- l.condition === void 0 || l.condition === null || w(F)(l.condition, {
377
- $row: o,
378
- $globalParams: w(T)()
379
- }) ? (s(), v(y, {
380
- key: 0,
381
- disabled: l.disabled,
382
- link: "",
383
- size: "small",
384
- type: l.type,
385
- onClick: q((S) => M(l, o, p, S), ["stop"])
386
- }, {
387
- default: g(() => [
388
- f(r, {
389
- class: "box-item",
390
- effect: "dark",
391
- content: l.label,
392
- placement: "top",
393
- "popper-class": "low-tsp"
394
- }, {
395
- default: g(() => [
396
- l.icon ? (s(), v(L, {
397
- key: 0,
398
- name: l.icon.name,
399
- color: l.icon.color
400
- }, null, 8, ["name", "color"])) : k("", !0)
401
- ]),
402
- _: 2
403
- }, 1032, ["content"])
404
- ]),
405
- _: 2
406
- }, 1032, ["disabled", "type", "onClick"])) : k("", !0)
407
- ], 64))
408
- ], 64))), 128))
409
- ])
410
- ]),
411
- _: 1
412
- }, 8, ["width"])) : k("", !0)
413
- ]),
414
- _: 1
415
- }, 8, ["data", "row-key", "stripe", "height"])
416
- ], 512), [
417
- [J, R.value === "table"]
418
- ]),
419
- K(f(Ke, xe({ data: i.value }, n, { getColText: C }), null, 16, ["data"]), [
420
- [J, R.value === "card"]
421
- ]),
422
- m("div", {
423
- class: $(["pagination-wrapper", {
424
- hidePagination: (e.hiddenPagination || i.value.length === 0) && !e.height,
425
- transparentPagination: (e.hiddenPagination || i.value.length === 0) && e.height,
426
- cardlistPadding: R.value === "card"
427
- }])
428
- }, [
429
- f(Ne, {
430
- layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
431
- total: x.value,
432
- "page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
433
- "default-page-size": e.defaultPageSize,
434
- "current-page": c.value.pageNum,
435
- "onUpdate:currentPage": t[0] || (t[0] = (o) => c.value.pageNum = o),
436
- "page-size": c.value.pageSize,
437
- "onUpdate:pageSize": t[1] || (t[1] = (o) => c.value.pageSize = o),
438
- "pager-count": Number(e.pagerCount) || 5,
439
- onSizeChange: fe,
440
- onCurrentChange: ve
441
- }, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
442
- ], 2)
443
- ], 10, Je));
444
- };
445
- }
446
- }), rt = /* @__PURE__ */ We(nt, [["__scopeId", "data-v-14f69317"]]);
447
- export {
448
- rt as default
449
- };