asiaint-lowcode 3.1.183 → 3.1.184
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.
- package/dist/asiaint-lowcode.d.ts +8 -0
- package/dist/asiaint-lowcode.js +3 -3
- package/dist/asiaint-lowcode.umd.cjs +210 -210
- package/dist/lazy/{Card-DnSZ5Ugq.js → Card-DzaeJ02g.js} +1 -1
- package/dist/lazy/{Cascader-6EpRyHfe.js → Cascader-PPrunCsp.js} +1 -1
- package/dist/lazy/{Checkbox-D9NJyAhj.js → Checkbox-Cu0EmvN6.js} +2 -2
- package/dist/lazy/{Collapse-Di2tiz3J.js → Collapse-Blw4qFX8.js} +2 -2
- package/dist/lazy/{Component-JA7tSDIp.js → Component--LyVBHsO.js} +1 -1
- package/dist/lazy/{Component-Co46PX6D.js → Component-BrkRJGAq.js} +1 -1
- package/dist/lazy/{Component-C4WoSQaL.js → Component-CJpqKAB4.js} +1 -1
- package/dist/lazy/{Component-C2I0S_OM.js → Component-D6xDx2Ay.js} +1 -1
- package/dist/lazy/{CurdCard-xtdNKB0N.js → CurdCard-BFXnFZ9V.js} +1 -1
- package/dist/lazy/{Custom-D6H6EWOY.js → Custom-x6mbdp_x.js} +1 -1
- package/dist/lazy/{DatePicker-PcOQaSke.js → DatePicker-DP5LVFB4.js} +1 -1
- package/dist/lazy/{DragList-BRdZ8gfl.js → DragList-DKlvSs_d.js} +29 -29
- package/dist/lazy/{FilterSearch-DatqH6xV.js → FilterSearch-Roo1D8jn.js} +1 -1
- package/dist/lazy/{FloatCurd-BWnY8WcZ.js → FloatCurd-DzllrurO.js} +33 -33
- package/dist/lazy/{FloatSearchCurd-KJTd369h.js → FloatSearchCurd-CP-RueJA.js} +1 -1
- package/dist/lazy/{FormList-Bgt0B2Jd.js → FormList-C4qHVCH6.js} +1 -1
- package/dist/lazy/{Grid-BGzB9ZkQ.js → Grid-CiV5F0gk.js} +1 -1
- package/dist/lazy/{InfiniteScroll-67EeDQlt.js → InfiniteScroll-B6D7tn4G.js} +1 -1
- package/dist/lazy/{Inline-3PI5n2Xs.js → Inline-bnPlph8J.js} +1 -1
- package/dist/lazy/{JsonEdit-CZNmLA9m.js → JsonEdit-BuoJd__Z.js} +1 -1
- package/dist/lazy/{LogList-Qzdi7Q-w.js → LogList-Bq38ecoH.js} +1 -1
- package/dist/lazy/{ObjGroup-of-n_H20.js → ObjGroup-CTKctQpC.js} +1 -1
- package/dist/lazy/{OfferDetails-DHv4DvJP.js → OfferDetails-Cs3rGDJR.js} +7 -6
- package/dist/lazy/{Pagination-D73S6tUZ.js → Pagination-rb_w1NWp.js} +1 -1
- package/dist/lazy/{Progress-BzasOOuK.js → Progress-DDTBdxbp.js} +1 -1
- package/dist/lazy/{Radio-qEOzL2e_.js → Radio-DCc9j11t.js} +2 -2
- package/dist/lazy/{SearchSelect-DYt-F4TU.js → SearchSelect-PYkHLUgM.js} +2 -2
- package/dist/lazy/{Select-ehcafdbQ.js → Select-Br-zeylA.js} +2 -2
- package/dist/lazy/Table-C9RG26NI.js +677 -0
- package/dist/lazy/{Tabs-CYlbzM9I.js → Tabs-BGmHowbT.js} +1 -1
- package/dist/lazy/{Tag-T-p9NedK.js → Tag-BaGf8gHB.js} +1 -1
- package/dist/lazy/{TextArea-u4E4V-Yw.js → TextArea-Bu2rg7rP.js} +1 -1
- package/dist/lazy/{Title-BTFtjOMW.js → Title-FCXVbs5M.js} +1 -1
- package/dist/lazy/{Title.vue_vue_type_script_setup_true_lang-C7qQflaA.js → Title.vue_vue_type_script_setup_true_lang-DCAFNhpG.js} +1 -1
- package/dist/lazy/{Wrapper--ovcnmfP.js → Wrapper-DvEVYYFP.js} +1 -1
- package/dist/lazy/{index-b1P_BAW4.js → index-B4edvXgN.js} +8847 -8601
- package/dist/lazy/{useSelect-Ovknp8vX.js → useSelect-DhxywPcF.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Table-D9Ngc3KV.js +0 -609
package/package.json
CHANGED
|
@@ -1,609 +0,0 @@
|
|
|
1
|
-
import { defineComponent as nt, computed as q, inject as A, ref as y, watch as at, nextTick as de, useTemplateRef as ot, onMounted as lt, onActivated as rt, onBeforeUnmount as it, readonly as st, toRefs as ut, onUnmounted as ct, resolveComponent as I, resolveDirective as pt, openBlock as i, createElementBlock as g, normalizeClass as L, withDirectives as O, createElementVNode as _, createBlock as v, unref as d, withCtx as h, createVNode as k, toDisplayString as R, createCommentVNode as f, Fragment as T, renderList as ge, normalizeStyle as J, withModifiers as he, vShow as me, mergeProps as dt } from "vue";
|
|
2
|
-
import { u as gt, $ as ht, h as F, d as mt, i as yt, a as vt, I as $, b as W, C as ft, f as Ct, _ as kt } from "./index-b1P_BAW4.js";
|
|
3
|
-
import { ElTable as wt } from "element-plus";
|
|
4
|
-
const St = ["id"], bt = { class: "empty-content" }, Pt = ["title"], zt = ["title", "onClick"], Bt = {
|
|
5
|
-
key: 1,
|
|
6
|
-
class: "icon-text-wrapper"
|
|
7
|
-
}, _t = ["title", "onClick"], Rt = { key: 2 }, Tt = ["title"], Nt = { class: "row-btn-wrapper" }, $t = /* @__PURE__ */ nt({
|
|
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
|
-
handleSelectionChange: {},
|
|
18
|
-
"highlight-current-row": { type: Boolean },
|
|
19
|
-
stripe: { type: Boolean },
|
|
20
|
-
rowClick: {},
|
|
21
|
-
rowDbClick: {},
|
|
22
|
-
sizeChange: {},
|
|
23
|
-
pageChange: {},
|
|
24
|
-
topBtns: {},
|
|
25
|
-
rowBtns: {},
|
|
26
|
-
rowBtnsLabel: {},
|
|
27
|
-
rowBtnsWidth: {},
|
|
28
|
-
columns: {},
|
|
29
|
-
hidden: { type: Boolean },
|
|
30
|
-
hiddenPagination: { type: Boolean },
|
|
31
|
-
handleCurrentChange: {},
|
|
32
|
-
selectable: {},
|
|
33
|
-
pageSizes: {},
|
|
34
|
-
pagerCount: {},
|
|
35
|
-
paginationLayout: {},
|
|
36
|
-
defaultPageSize: {},
|
|
37
|
-
typeSwitch: { type: Boolean },
|
|
38
|
-
displayType: { default: "table" },
|
|
39
|
-
onMounted: {},
|
|
40
|
-
onActivated: {},
|
|
41
|
-
height: {},
|
|
42
|
-
collapsible: { type: Boolean },
|
|
43
|
-
sortable: { type: Boolean, default: !0 },
|
|
44
|
-
paginationPosition: {},
|
|
45
|
-
paginationTopColor: {},
|
|
46
|
-
totalText: { default: "{{ `Showing ${$total} matching tickets`}}" },
|
|
47
|
-
onPollChange: {},
|
|
48
|
-
showPollCheckbox: { type: Boolean },
|
|
49
|
-
cardStyle: { type: [Boolean, null, String, Object, Array] },
|
|
50
|
-
smallPagination: { type: Boolean },
|
|
51
|
-
name: {},
|
|
52
|
-
gridColumns: {},
|
|
53
|
-
heightDifference: {}
|
|
54
|
-
},
|
|
55
|
-
setup(ye, { expose: ve }) {
|
|
56
|
-
const o = ye, Q = (e) => e == null ? void 0 : e.replace(/ /g, " "), fe = gt(), G = () => {
|
|
57
|
-
var t, a;
|
|
58
|
-
const e = (t = fe.schema) == null ? void 0 : t.items;
|
|
59
|
-
if (o.name && Array.isArray(e)) {
|
|
60
|
-
const r = Ct(e, o.name);
|
|
61
|
-
if (Array.isArray((a = r == null ? void 0 : r.props) == null ? void 0 : a.columns))
|
|
62
|
-
return r.props.columns;
|
|
63
|
-
}
|
|
64
|
-
return o.columns;
|
|
65
|
-
}, E = q(() => o.displayType ? o.displayType : o.typeSwitch ? "card" : "table"), Ce = A("ruleModule", void 0), X = A("ruleMap", void 0), c = q(() => o.rulePath && X[o.rulePath] ? X[o.rulePath] : Ce), m = A("pageMethodMap", {}), D = A("getGlobalParams", () => {
|
|
66
|
-
}), Y = A(ht), Z = Y ? Y.translateFn : null, S = y(), ee = y(), ke = (e, t, a) => {
|
|
67
|
-
p.value[e] && (p.value[e][t] = a);
|
|
68
|
-
}, we = (e, t) => {
|
|
69
|
-
const a = G().find((r) => r.key === e);
|
|
70
|
-
a && (a.hidden = !t);
|
|
71
|
-
}, H = (e, t, a, r) => {
|
|
72
|
-
try {
|
|
73
|
-
c.value[e.onClick](m, t, a, r), r == null || r.stopPropagation();
|
|
74
|
-
} catch (C) {
|
|
75
|
-
console.error(C + `
|
|
76
|
-
onClick: ${e.onClick}`);
|
|
77
|
-
}
|
|
78
|
-
}, Se = (e) => {
|
|
79
|
-
if (o.rowClick)
|
|
80
|
-
try {
|
|
81
|
-
c.value[o.rowClick](m, e);
|
|
82
|
-
} catch (t) {
|
|
83
|
-
console.error(
|
|
84
|
-
t + `
|
|
85
|
-
|
|
86
|
-
rulePath: ${c.value.rulePath}
|
|
87
|
-
|
|
88
|
-
handleRowClick: ${o.rowClick}
|
|
89
|
-
`
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
}, be = (e) => {
|
|
93
|
-
if (o.rowDbClick)
|
|
94
|
-
try {
|
|
95
|
-
c.value[o.rowDbClick](m, e);
|
|
96
|
-
} catch (t) {
|
|
97
|
-
console.error(t);
|
|
98
|
-
}
|
|
99
|
-
}, Pe = y([]), ze = (e) => {
|
|
100
|
-
Pe.value = e;
|
|
101
|
-
}, Be = (e, t) => {
|
|
102
|
-
if (!o.selectable)
|
|
103
|
-
return !0;
|
|
104
|
-
try {
|
|
105
|
-
return c.value[o.selectable](m, e, t);
|
|
106
|
-
} catch (a) {
|
|
107
|
-
console.error(a);
|
|
108
|
-
}
|
|
109
|
-
return !0;
|
|
110
|
-
}, _e = () => {
|
|
111
|
-
var e;
|
|
112
|
-
(e = S.value) == null || e.clearSelection();
|
|
113
|
-
}, Re = (e, t) => {
|
|
114
|
-
var a, r;
|
|
115
|
-
if (o.rowKey) {
|
|
116
|
-
const C = p.value.find((j) => j[o.rowKey] === e);
|
|
117
|
-
if (!C)
|
|
118
|
-
return;
|
|
119
|
-
t === void 0 ? (a = S.value) == null || a.toggleRowSelection(C) : (r = S.value) == null || r.toggleRowSelection(C, t);
|
|
120
|
-
} else
|
|
121
|
-
return console.error("rowKey is required");
|
|
122
|
-
}, Te = () => p.value, te = y(), ne = (e) => {
|
|
123
|
-
if (te.value = e, !!o.handleCurrentChange)
|
|
124
|
-
try {
|
|
125
|
-
c.value[o.handleCurrentChange](m, e || {});
|
|
126
|
-
} catch (t) {
|
|
127
|
-
console.error(t);
|
|
128
|
-
}
|
|
129
|
-
}, Ne = () => te.value, $e = () => {
|
|
130
|
-
var e;
|
|
131
|
-
return (e = S.value) == null ? void 0 : e.getSelectionRows();
|
|
132
|
-
}, De = async () => !0, xe = (e, t) => {
|
|
133
|
-
var r;
|
|
134
|
-
const a = (r = o.topBtns) == null ? void 0 : r.find((C) => C.key === e);
|
|
135
|
-
a && (a.hidden = t);
|
|
136
|
-
}, Me = (e, t) => {
|
|
137
|
-
var r;
|
|
138
|
-
const a = (r = o.rowBtns) == null ? void 0 : r.find((C) => C.key === e);
|
|
139
|
-
a && (a.condition = !t);
|
|
140
|
-
}, K = y(0), Ae = (e) => {
|
|
141
|
-
K.value = e;
|
|
142
|
-
}, Ie = () => K.value, u = y({ pageNum: 1, pageSize: o.defaultPageSize || 10 }), b = y({ pageNum: 1, pageSize: o.defaultPageSize || 10 }), Le = () => u.value, Fe = (e) => {
|
|
143
|
-
let t = !1;
|
|
144
|
-
return e.pageNum !== void 0 && e.pageNum > -1 && (u.value.pageNum !== e.pageNum && (t = !0), u.value.pageNum = e.pageNum), e.pageSize !== void 0 && e.pageSize > -1 && (u.value.pageSize !== e.pageSize && (t = !0), u.value.pageSize = e.pageSize), { pagination: u.value, isChange: t };
|
|
145
|
-
}, Ee = async () => {
|
|
146
|
-
if (u.value.pageNum = 1, !!o.sizeChange)
|
|
147
|
-
try {
|
|
148
|
-
B.value = !0, await c.value[o.sizeChange](m, u.value), b.value.pageNum = u.value.pageNum, b.value.pageSize = u.value.pageSize;
|
|
149
|
-
} catch (e) {
|
|
150
|
-
console.error(e), u.value.pageNum = b.value.pageNum, u.value.pageSize = b.value.pageSize;
|
|
151
|
-
} finally {
|
|
152
|
-
B.value = !1;
|
|
153
|
-
}
|
|
154
|
-
}, He = async () => {
|
|
155
|
-
if (o.pageChange)
|
|
156
|
-
try {
|
|
157
|
-
B.value = !0, await c.value[o.pageChange](m, u.value), b.value.pageNum = u.value.pageNum, b.value.pageSize = u.value.pageSize;
|
|
158
|
-
} catch (e) {
|
|
159
|
-
console.error(e), u.value.pageNum = b.value.pageNum, u.value.pageSize = b.value.pageSize;
|
|
160
|
-
} finally {
|
|
161
|
-
B.value = !1;
|
|
162
|
-
}
|
|
163
|
-
}, Ke = (e) => {
|
|
164
|
-
var t, a;
|
|
165
|
-
console.log("zytest---selectRow-row", e), E.value === "card" ? (t = ee.value) == null || t.selectRow(e) : (a = S.value) == null || a.setCurrentRow(e);
|
|
166
|
-
}, Ve = (e) => {
|
|
167
|
-
var t;
|
|
168
|
-
(t = S.value) == null || t.setCurrentRow(p.value[e]);
|
|
169
|
-
}, Ue = (e, t, a) => {
|
|
170
|
-
G().forEach((r) => {
|
|
171
|
-
r.key === e && (r[t] = a);
|
|
172
|
-
});
|
|
173
|
-
}, p = y([]), je = (e) => {
|
|
174
|
-
p.value = e || [];
|
|
175
|
-
};
|
|
176
|
-
at(
|
|
177
|
-
p,
|
|
178
|
-
() => {
|
|
179
|
-
de(() => {
|
|
180
|
-
var e;
|
|
181
|
-
(e = S.value) == null || e.setScrollTop(0);
|
|
182
|
-
});
|
|
183
|
-
},
|
|
184
|
-
{ flush: "post" }
|
|
185
|
-
);
|
|
186
|
-
const We = (e = {}) => {
|
|
187
|
-
p.value.push(e);
|
|
188
|
-
}, Ge = (e) => {
|
|
189
|
-
e >= 0 && e < p.value.length && p.value.splice(e, 1);
|
|
190
|
-
}, qe = async () => {
|
|
191
|
-
p.value = [...p.value];
|
|
192
|
-
}, ae = ot("rootRef"), z = (e, t) => {
|
|
193
|
-
const a = Z ? Z(e, t) : t[e.key];
|
|
194
|
-
if (!e.encrypted || !a)
|
|
195
|
-
return a;
|
|
196
|
-
const r = `${a}`;
|
|
197
|
-
return r.length <= 4 ? "*".repeat(r.length) : r.slice(0, -4) + "****";
|
|
198
|
-
}, Oe = (e, t) => {
|
|
199
|
-
if (!e.getTextStyle || !c.value)
|
|
200
|
-
return {};
|
|
201
|
-
try {
|
|
202
|
-
return c.value[e.getTextStyle](m, t, e);
|
|
203
|
-
} catch (a) {
|
|
204
|
-
console.error(a);
|
|
205
|
-
}
|
|
206
|
-
}, P = (e, t) => {
|
|
207
|
-
if (!(!e.getIconInfo || !c.value))
|
|
208
|
-
try {
|
|
209
|
-
return c.value[e.getIconInfo](m, t, e);
|
|
210
|
-
} catch (a) {
|
|
211
|
-
console.error(a);
|
|
212
|
-
}
|
|
213
|
-
}, V = (e, t) => {
|
|
214
|
-
if (!(!e.getIconPopoverContent || !c.value))
|
|
215
|
-
try {
|
|
216
|
-
return c.value[e.getIconPopoverContent](m, t, e);
|
|
217
|
-
} catch (a) {
|
|
218
|
-
console.error(a);
|
|
219
|
-
}
|
|
220
|
-
}, Je = (e, t) => {
|
|
221
|
-
if (!(!e.getCustomContent || !c.value))
|
|
222
|
-
try {
|
|
223
|
-
return c.value[e.getCustomContent](m, t, e);
|
|
224
|
-
} catch (a) {
|
|
225
|
-
console.error(a);
|
|
226
|
-
}
|
|
227
|
-
}, Qe = q(() => !o.rowBtns || o.rowBtns.length === 0 || !p.value || p.value.length === 0 ? !1 : p.value.some(
|
|
228
|
-
(e) => {
|
|
229
|
-
var t;
|
|
230
|
-
return (t = o.rowBtns) == null ? void 0 : t.some((a) => a.condition === void 0 || a.condition === null ? !0 : F(a.condition, {
|
|
231
|
-
$row: e,
|
|
232
|
-
$globalParams: D()
|
|
233
|
-
}));
|
|
234
|
-
}
|
|
235
|
-
)), oe = mt(), Xe = y(o.showPollCheckbox || !1);
|
|
236
|
-
y(10);
|
|
237
|
-
const Ye = y(10), U = y(void 0);
|
|
238
|
-
function le(e) {
|
|
239
|
-
if (e) {
|
|
240
|
-
U.value = e;
|
|
241
|
-
return;
|
|
242
|
-
}
|
|
243
|
-
o.heightDifference && Number(o.heightDifference) > 0 ? U.value = window.innerHeight - Number(o.heightDifference) : U.value = void 0;
|
|
244
|
-
}
|
|
245
|
-
const B = y(!1), Ze = (e) => {
|
|
246
|
-
B.value = e;
|
|
247
|
-
}, et = () => G(), re = async () => {
|
|
248
|
-
if (!o.onMounted || !c.value)
|
|
249
|
-
return;
|
|
250
|
-
await de();
|
|
251
|
-
const e = o.onMounted;
|
|
252
|
-
try {
|
|
253
|
-
c.value[e](m);
|
|
254
|
-
} catch (t) {
|
|
255
|
-
console.error(t);
|
|
256
|
-
}
|
|
257
|
-
}, ie = async () => {
|
|
258
|
-
if (!o.onActivated || !c.value)
|
|
259
|
-
return;
|
|
260
|
-
const e = o.onActivated;
|
|
261
|
-
try {
|
|
262
|
-
c.value[e](m);
|
|
263
|
-
} catch (t) {
|
|
264
|
-
console.error(t);
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
lt(async () => {
|
|
268
|
-
await re(), le();
|
|
269
|
-
}), rt(() => {
|
|
270
|
-
ie();
|
|
271
|
-
}), it(() => {
|
|
272
|
-
});
|
|
273
|
-
const se = st({
|
|
274
|
-
...ut(o),
|
|
275
|
-
setCellData: ke,
|
|
276
|
-
clearSelection: _e,
|
|
277
|
-
getData: Te,
|
|
278
|
-
getCurrentRow: Ne,
|
|
279
|
-
getSelectedRows: $e,
|
|
280
|
-
addRow: We,
|
|
281
|
-
deleteRow: Ge,
|
|
282
|
-
refresh: qe,
|
|
283
|
-
validate: De,
|
|
284
|
-
setData: je,
|
|
285
|
-
selectRow: Ke,
|
|
286
|
-
selectRowNum: Ve,
|
|
287
|
-
setTotal: Ae,
|
|
288
|
-
getTotal: Ie,
|
|
289
|
-
getPagination: Le,
|
|
290
|
-
setPagination: Fe,
|
|
291
|
-
setTopBtnHidden: xe,
|
|
292
|
-
setColVisible: we,
|
|
293
|
-
setColumn: Ue,
|
|
294
|
-
setRowsBtnHidden: Me,
|
|
295
|
-
pollEnabled: Xe,
|
|
296
|
-
pollInterval: Ye,
|
|
297
|
-
rootRef: ae,
|
|
298
|
-
mounted: re,
|
|
299
|
-
activated: ie,
|
|
300
|
-
toggleSelection: Re,
|
|
301
|
-
setLoading: Ze,
|
|
302
|
-
setMaxTableHeight: le,
|
|
303
|
-
getColumns: et,
|
|
304
|
-
type: "table"
|
|
305
|
-
});
|
|
306
|
-
if (o.name) {
|
|
307
|
-
const e = yt(o.name, se);
|
|
308
|
-
ct(() => {
|
|
309
|
-
e();
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
return ve(se), (e, t) => {
|
|
313
|
-
const a = I("el-table-column"), r = I("el-popover"), C = I("el-tooltip"), j = I("el-button"), tt = I("el-pagination"), ue = pt("loading");
|
|
314
|
-
return e.hidden ? f("", !0) : (i(), g("div", {
|
|
315
|
-
key: 0,
|
|
316
|
-
class: L(["table-render", {
|
|
317
|
-
[e.name]: !0,
|
|
318
|
-
"legacy-pagination-padding": e.paginationPosition === "top"
|
|
319
|
-
}]),
|
|
320
|
-
ref_key: "rootRef",
|
|
321
|
-
ref: ae,
|
|
322
|
-
id: e.name
|
|
323
|
-
}, [
|
|
324
|
-
O(_("div", null, [
|
|
325
|
-
O((i(), v(d(wt), {
|
|
326
|
-
ref_key: "tableRef",
|
|
327
|
-
ref: S,
|
|
328
|
-
data: p.value,
|
|
329
|
-
"highlight-current-row": "",
|
|
330
|
-
border: !0,
|
|
331
|
-
"row-key": e.rowKey,
|
|
332
|
-
stripe: e.stripe,
|
|
333
|
-
onRowClick: Se,
|
|
334
|
-
onRowDblclick: be,
|
|
335
|
-
onSelectionChange: ze,
|
|
336
|
-
onCurrentChange: ne,
|
|
337
|
-
height: e.height || void 0,
|
|
338
|
-
"max-height": U.value,
|
|
339
|
-
"scrollbar-always-on": ""
|
|
340
|
-
}, {
|
|
341
|
-
empty: h(() => [
|
|
342
|
-
_("div", bt, [
|
|
343
|
-
k(d(vt), {
|
|
344
|
-
name: "tableEmpty",
|
|
345
|
-
style: { width: 56, height: 56 }
|
|
346
|
-
}),
|
|
347
|
-
_("div", null, R(d(oe).table.emptyText), 1)
|
|
348
|
-
])
|
|
349
|
-
]),
|
|
350
|
-
default: h(() => [
|
|
351
|
-
e.multipleSelection ? (i(), v(a, {
|
|
352
|
-
key: 0,
|
|
353
|
-
type: "selection",
|
|
354
|
-
fixed: "left",
|
|
355
|
-
width: "46",
|
|
356
|
-
selectable: Be
|
|
357
|
-
})) : f("", !0),
|
|
358
|
-
(i(!0), g(T, null, ge(e.columns, (n) => (i(), g(T, {
|
|
359
|
-
key: n.key
|
|
360
|
-
}, [
|
|
361
|
-
n.hidden ? f("", !0) : (i(), v(a, {
|
|
362
|
-
key: 0,
|
|
363
|
-
prop: n.key,
|
|
364
|
-
"min-width": n.minWidth,
|
|
365
|
-
fixed: n.fixed || !1,
|
|
366
|
-
sortable: n.sortable ?? e.sortable ?? !0
|
|
367
|
-
}, {
|
|
368
|
-
header: h(() => [
|
|
369
|
-
_("div", {
|
|
370
|
-
class: "text-ellipsis",
|
|
371
|
-
title: Q(n.label)
|
|
372
|
-
}, R(Q(n.label)), 9, Pt)
|
|
373
|
-
]),
|
|
374
|
-
default: h(({ row: s, $index: l }) => {
|
|
375
|
-
var x, N, ce, pe;
|
|
376
|
-
return [
|
|
377
|
-
n.type === "link" ? (i(), g("div", {
|
|
378
|
-
key: 0,
|
|
379
|
-
class: L(["text-ellipsis link-style", { "click-style": n.onClick }]),
|
|
380
|
-
title: z(n, s),
|
|
381
|
-
onClick: (w) => H(n, s, l, w)
|
|
382
|
-
}, R(z(n, s)), 11, zt)) : n.type === "iconText" ? (i(), g("div", Bt, [
|
|
383
|
-
n.iconPosition === "left" ? (i(), g(T, { key: 0 }, [
|
|
384
|
-
n.iconPopover && Array.isArray(V(n, s)) ? (i(), v(r, { key: 0 }, {
|
|
385
|
-
reference: h(() => {
|
|
386
|
-
var w, M;
|
|
387
|
-
return [
|
|
388
|
-
k($, {
|
|
389
|
-
name: (w = P(n, s)) == null ? void 0 : w.name,
|
|
390
|
-
color: (M = P(n, s)) == null ? void 0 : M.color
|
|
391
|
-
}, null, 8, ["name", "color"])
|
|
392
|
-
];
|
|
393
|
-
}),
|
|
394
|
-
default: h(() => [
|
|
395
|
-
k(d(W), {
|
|
396
|
-
list: V(n, s) || []
|
|
397
|
-
}, null, 8, ["list"])
|
|
398
|
-
]),
|
|
399
|
-
_: 2
|
|
400
|
-
}, 1024)) : (i(), v($, {
|
|
401
|
-
key: 1,
|
|
402
|
-
name: (x = P(n, s)) == null ? void 0 : x.name,
|
|
403
|
-
color: (N = P(n, s)) == null ? void 0 : N.color
|
|
404
|
-
}, null, 8, ["name", "color"]))
|
|
405
|
-
], 64)) : f("", !0),
|
|
406
|
-
_("span", {
|
|
407
|
-
class: L(["text-ellipsis", { "click-style": n.onClick }]),
|
|
408
|
-
title: z(n, s),
|
|
409
|
-
onClick: (w) => H(n, s, l, w)
|
|
410
|
-
}, R(z(n, s)), 11, _t),
|
|
411
|
-
n.iconPosition === "right" ? (i(), g(T, { key: 1 }, [
|
|
412
|
-
n.iconPopover && Array.isArray(V(n, s)) ? (i(), v(r, { key: 0 }, {
|
|
413
|
-
reference: h(() => {
|
|
414
|
-
var w, M;
|
|
415
|
-
return [
|
|
416
|
-
k($, {
|
|
417
|
-
name: (w = P(n, s)) == null ? void 0 : w.name,
|
|
418
|
-
color: (M = P(n, s)) == null ? void 0 : M.color
|
|
419
|
-
}, null, 8, ["name", "color"])
|
|
420
|
-
];
|
|
421
|
-
}),
|
|
422
|
-
default: h(() => [
|
|
423
|
-
k(d(W), {
|
|
424
|
-
list: V(n, s) || []
|
|
425
|
-
}, null, 8, ["list"])
|
|
426
|
-
]),
|
|
427
|
-
_: 2
|
|
428
|
-
}, 1024)) : (i(), v($, {
|
|
429
|
-
key: 1,
|
|
430
|
-
name: (ce = P(n, s)) == null ? void 0 : ce.name,
|
|
431
|
-
color: (pe = P(n, s)) == null ? void 0 : pe.color
|
|
432
|
-
}, null, 8, ["name", "color"]))
|
|
433
|
-
], 64)) : f("", !0)
|
|
434
|
-
])) : n.type === "customContent" ? (i(), g("div", Rt, [
|
|
435
|
-
k(d(W), {
|
|
436
|
-
list: Je(n, s) || []
|
|
437
|
-
}, null, 8, ["list"])
|
|
438
|
-
])) : (i(), g("div", {
|
|
439
|
-
key: 3,
|
|
440
|
-
class: L({ "text-ellipsis": !n.noEllipsis }),
|
|
441
|
-
title: z(n, s),
|
|
442
|
-
style: J(Oe(n, s))
|
|
443
|
-
}, R(z(n, s)), 15, Tt))
|
|
444
|
-
];
|
|
445
|
-
}),
|
|
446
|
-
_: 2
|
|
447
|
-
}, 1032, ["prop", "min-width", "fixed", "sortable"]))
|
|
448
|
-
], 64))), 128)),
|
|
449
|
-
Qe.value && e.rowBtns && e.rowBtns.length > 0 ? (i(), v(a, {
|
|
450
|
-
key: 1,
|
|
451
|
-
label: e.rowBtnsLabel || d(oe).table.actionColumn,
|
|
452
|
-
fixed: "right",
|
|
453
|
-
align: "left",
|
|
454
|
-
width: e.rowBtnsWidth || (e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100)
|
|
455
|
-
}, {
|
|
456
|
-
default: h(({ row: n, $index: s }) => [
|
|
457
|
-
_("div", Nt, [
|
|
458
|
-
(i(!0), g(T, null, ge(e.rowBtns, (l) => {
|
|
459
|
-
var x;
|
|
460
|
-
return i(), g(T, {
|
|
461
|
-
key: l.key
|
|
462
|
-
}, [
|
|
463
|
-
l.component === "Popover" ? (i(), v(r, {
|
|
464
|
-
key: 0,
|
|
465
|
-
title: l.label,
|
|
466
|
-
trigger: "click",
|
|
467
|
-
"popper-class": "btn-popover",
|
|
468
|
-
width: (x = l.children) != null && x.length && l.children[0].width || 400
|
|
469
|
-
}, {
|
|
470
|
-
reference: h(() => [
|
|
471
|
-
l.condition === void 0 || l.condition === null || d(F)(l.condition, {
|
|
472
|
-
$row: n,
|
|
473
|
-
$globalParams: d(D)()
|
|
474
|
-
}) ? (i(), v(j, {
|
|
475
|
-
key: 0,
|
|
476
|
-
disabled: l.disabled,
|
|
477
|
-
link: "",
|
|
478
|
-
size: "small",
|
|
479
|
-
type: l.type,
|
|
480
|
-
onClick: he((N) => H(l, n, s, N), ["stop"])
|
|
481
|
-
}, {
|
|
482
|
-
default: h(() => [
|
|
483
|
-
k(C, {
|
|
484
|
-
class: "box-item",
|
|
485
|
-
effect: "dark",
|
|
486
|
-
content: l.label,
|
|
487
|
-
placement: "top"
|
|
488
|
-
}, {
|
|
489
|
-
default: h(() => [
|
|
490
|
-
l.icon ? (i(), v($, {
|
|
491
|
-
key: 0,
|
|
492
|
-
name: l.icon.name,
|
|
493
|
-
color: l.icon.color
|
|
494
|
-
}, null, 8, ["name", "color"])) : f("", !0)
|
|
495
|
-
]),
|
|
496
|
-
_: 2
|
|
497
|
-
}, 1032, ["content"]),
|
|
498
|
-
l.buttonText ? (i(), g("span", {
|
|
499
|
-
key: 0,
|
|
500
|
-
style: J({ color: l.buttonText.color, fontSize: "14px" })
|
|
501
|
-
}, R(d(F)(l.buttonText.text, {
|
|
502
|
-
$row: n,
|
|
503
|
-
$globalParams: d(D)()
|
|
504
|
-
})), 5)) : f("", !0)
|
|
505
|
-
]),
|
|
506
|
-
_: 2
|
|
507
|
-
}, 1032, ["disabled", "type", "onClick"])) : f("", !0)
|
|
508
|
-
]),
|
|
509
|
-
default: h(() => [
|
|
510
|
-
_("div", null, [
|
|
511
|
-
k(d(W), {
|
|
512
|
-
list: l.children
|
|
513
|
-
}, null, 8, ["list"])
|
|
514
|
-
])
|
|
515
|
-
]),
|
|
516
|
-
_: 2
|
|
517
|
-
}, 1032, ["title", "width"])) : (i(), g(T, { key: 1 }, [
|
|
518
|
-
l.condition === void 0 || l.condition === null || d(F)(l.condition, {
|
|
519
|
-
$row: n,
|
|
520
|
-
$globalParams: d(D)()
|
|
521
|
-
}) ? (i(), v(j, {
|
|
522
|
-
key: 0,
|
|
523
|
-
disabled: l.disabled,
|
|
524
|
-
link: "",
|
|
525
|
-
size: "small",
|
|
526
|
-
type: l.type,
|
|
527
|
-
onClick: he((N) => H(l, n, s, N), ["stop"])
|
|
528
|
-
}, {
|
|
529
|
-
default: h(() => [
|
|
530
|
-
k(C, {
|
|
531
|
-
class: "box-item",
|
|
532
|
-
effect: "dark",
|
|
533
|
-
content: l.label,
|
|
534
|
-
placement: "top"
|
|
535
|
-
}, {
|
|
536
|
-
default: h(() => [
|
|
537
|
-
l.icon ? (i(), v($, {
|
|
538
|
-
key: 0,
|
|
539
|
-
name: l.icon.name,
|
|
540
|
-
color: l.icon.color
|
|
541
|
-
}, null, 8, ["name", "color"])) : f("", !0)
|
|
542
|
-
]),
|
|
543
|
-
_: 2
|
|
544
|
-
}, 1032, ["content"]),
|
|
545
|
-
l.buttonText ? (i(), g("span", {
|
|
546
|
-
key: 0,
|
|
547
|
-
style: J({ color: l.buttonText.color, fontSize: "14px" })
|
|
548
|
-
}, R(d(F)(l.buttonText.text, {
|
|
549
|
-
$row: n,
|
|
550
|
-
$globalParams: d(D)()
|
|
551
|
-
})), 5)) : f("", !0)
|
|
552
|
-
]),
|
|
553
|
-
_: 2
|
|
554
|
-
}, 1032, ["disabled", "type", "onClick"])) : f("", !0)
|
|
555
|
-
], 64))
|
|
556
|
-
], 64);
|
|
557
|
-
}), 128))
|
|
558
|
-
])
|
|
559
|
-
]),
|
|
560
|
-
_: 1
|
|
561
|
-
}, 8, ["label", "width"])) : f("", !0)
|
|
562
|
-
]),
|
|
563
|
-
_: 1
|
|
564
|
-
}, 8, ["data", "row-key", "stripe", "height", "max-height"])), [
|
|
565
|
-
[ue, B.value]
|
|
566
|
-
])
|
|
567
|
-
], 512), [
|
|
568
|
-
[me, E.value === "table"]
|
|
569
|
-
]),
|
|
570
|
-
O(k(ft, dt({
|
|
571
|
-
ref_key: "cardListRef",
|
|
572
|
-
ref: ee,
|
|
573
|
-
data: p.value
|
|
574
|
-
}, o, {
|
|
575
|
-
getColText: z,
|
|
576
|
-
onCurrentChange: ne
|
|
577
|
-
}), null, 16, ["data"]), [
|
|
578
|
-
[me, E.value === "card"],
|
|
579
|
-
[ue, B.value]
|
|
580
|
-
]),
|
|
581
|
-
K.value > 0 ? (i(), g("div", {
|
|
582
|
-
key: 0,
|
|
583
|
-
class: L(["pagination-wrapper", {
|
|
584
|
-
hidePagination: e.hiddenPagination && !e.height,
|
|
585
|
-
transparentPagination: e.hiddenPagination && e.height,
|
|
586
|
-
cardlistPadding: E.value === "card"
|
|
587
|
-
}])
|
|
588
|
-
}, [
|
|
589
|
-
k(tt, {
|
|
590
|
-
layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
|
|
591
|
-
total: K.value,
|
|
592
|
-
"page-sizes": e.pageSizes || [5, 6, 10, 20, 30, 40],
|
|
593
|
-
"default-page-size": e.defaultPageSize,
|
|
594
|
-
"current-page": u.value.pageNum,
|
|
595
|
-
"onUpdate:currentPage": t[0] || (t[0] = (n) => u.value.pageNum = n),
|
|
596
|
-
"page-size": u.value.pageSize,
|
|
597
|
-
"onUpdate:pageSize": t[1] || (t[1] = (n) => u.value.pageSize = n),
|
|
598
|
-
"pager-count": 5,
|
|
599
|
-
onSizeChange: Ee,
|
|
600
|
-
onCurrentChange: He
|
|
601
|
-
}, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size"])
|
|
602
|
-
], 2)) : f("", !0)
|
|
603
|
-
], 10, St));
|
|
604
|
-
};
|
|
605
|
-
}
|
|
606
|
-
}), At = /* @__PURE__ */ kt($t, [["__scopeId", "data-v-1254aa4b"]]);
|
|
607
|
-
export {
|
|
608
|
-
At as default
|
|
609
|
-
};
|