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