asiaint-lowcode 3.1.124 → 3.1.127
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 +22 -0
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +204 -203
- package/dist/lazy/{Card-C3kpBdLQ.js → Card-HK2i0A7R.js} +1 -1
- package/dist/lazy/{Cascader-C90FEXcW.js → Cascader-BhLYyMO9.js} +1 -1
- package/dist/lazy/Checkbox-BuaQh4JW.js +101 -0
- package/dist/lazy/{Collapse-jKV6far-.js → Collapse-CGhIEDer.js} +1 -1
- package/dist/lazy/{Component-TDgjMyU_.js → Component-C17kNanI.js} +1 -1
- package/dist/lazy/{Component-nHI51gCH.js → Component-D0NAYCdA.js} +1 -1
- package/dist/lazy/{Component-ByrOyzcu.js → Component-DkduXnJY.js} +1 -1
- package/dist/lazy/{Component-DCrZrXze.js → Component-bLWzi0lw.js} +1 -1
- package/dist/lazy/Component-xssxWCzC.js +45 -0
- package/dist/lazy/{CurdCard-BT17Dj27.js → CurdCard-PypMDcL0.js} +1 -1
- package/dist/lazy/{Custom-D4CmyIvg.js → Custom-CWqP3xyK.js} +1 -1
- package/dist/lazy/{DatePicker-DNvU39mm.js → DatePicker-D_Zz7QfG.js} +1 -1
- package/dist/lazy/{DragList-BFpd1I6Y.js → DragList-CMDoKHyG.js} +1 -1
- package/dist/lazy/{FilterSearch-Bh0Jsp1x.js → FilterSearch-BsAjblJR.js} +1 -1
- package/dist/lazy/{FloatCurd-pQkhaiXp.js → FloatCurd-iAdwDimF.js} +1 -1
- package/dist/lazy/{FormList-B530bd2X.js → FormList-B1_qwRgv.js} +1 -1
- package/dist/lazy/{Grid-BmiG4ZzT.js → Grid-CmeV3vYT.js} +1 -1
- package/dist/lazy/{InfiniteScroll-rn1Gi4_Z.js → InfiniteScroll-WmQ-aQMK.js} +1 -1
- package/dist/lazy/{Inline-YBd4VRXq.js → Inline-BBBb3YBl.js} +1 -1
- package/dist/lazy/{JsonEdit-Bs6wTmWc.js → JsonEdit-BKJN-0ok.js} +1 -1
- package/dist/lazy/{LogList-BYeyjvBM.js → LogList-BQxqcw97.js} +1 -1
- package/dist/lazy/{ObjGroup-DL0UBLW5.js → ObjGroup-DKDbk43u.js} +1 -1
- package/dist/lazy/{OfferDetails-C51y9eGl.js → OfferDetails-RCMVzMY3.js} +2 -1
- package/dist/lazy/{Pagination-1ymRBbEV.js → Pagination-D2ghPkuN.js} +1 -1
- package/dist/lazy/{Progress-D7st7BYV.js → Progress-CZEQioNA.js} +1 -1
- package/dist/lazy/{Radio-8Ltzylre.js → Radio-CxXYdNJV.js} +2 -2
- package/dist/lazy/{SearchSelect-CvwYURhY.js → SearchSelect-BYVIksHr.js} +2 -2
- package/dist/lazy/{Select-BR3F3elT.js → Select-NJnxZzl_.js} +2 -2
- package/dist/lazy/Table-D92rM9sJ.js +660 -0
- package/dist/lazy/{Tabs-Dv_FHXcn.js → Tabs-CQNWNRy_.js} +1 -1
- package/dist/lazy/{TextArea-Bs_r2iyM.js → TextArea-DSnsDM5D.js} +1 -1
- package/dist/lazy/{Wrapper-DswKesIN.js → Wrapper-DWoKY8gk.js} +1 -1
- package/dist/lazy/{index-BQJEI0Bg.js → index-Diyo05ZT.js} +7601 -7521
- package/dist/lazy/{useSelect-BVuW-6jY.js → useSelect-BjRc338n.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Checkbox-BSJ6OJ7n.js +0 -88
- package/dist/lazy/Component-ChK0_8V9.js +0 -35
- package/dist/lazy/Table-Bt5sLA1a.js +0 -652
|
@@ -0,0 +1,660 @@
|
|
|
1
|
+
import { defineComponent as rt, computed as J, inject as U, ref as C, useTemplateRef as it, onMounted as st, onActivated as ut, onBeforeUnmount as ct, readonly as pt, toRefs as gt, onUnmounted as dt, resolveComponent as _, resolveDirective as vt, openBlock as r, createElementBlock as g, normalizeClass as M, createVNode as y, withCtx as d, createElementVNode as k, toDisplayString as b, unref as v, createCommentVNode as m, createTextVNode as Q, withDirectives as X, createBlock as w, Fragment as $, renderList as we, normalizeStyle as Y, withModifiers as Se, vShow as be, mergeProps as ht, nextTick as mt } from "vue";
|
|
2
|
+
import { $ as yt, h as F, j as ft, i as Ct, a as kt, I as x, b as W, C as wt, _ as St } from "./index-Diyo05ZT.js";
|
|
3
|
+
import { ElTable as bt, ElLoading as ze, ElMessage as zt } from "element-plus";
|
|
4
|
+
const Pt = ["id"], Bt = { class: "custom-slot" }, Nt = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "poll-wrapper"
|
|
7
|
+
}, Rt = { style: { color: "#666666" } }, Tt = { style: { color: "var(--el-color-primary)" } }, _t = { style: { color: "var(--el-color-primary)" } }, $t = { class: "empty-content" }, Dt = ["title"], Mt = ["title", "onClick"], xt = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "icon-text-wrapper"
|
|
10
|
+
}, Lt = ["title", "onClick"], It = { key: 2 }, Vt = ["title"], At = { class: "row-btn-wrapper" }, Et = /* @__PURE__ */ rt({
|
|
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
|
+
paginationTopColor: {},
|
|
48
|
+
totalText: { default: "{{ `Showing ${$total} matching tickets`}}" },
|
|
49
|
+
onPollChange: {},
|
|
50
|
+
showPollCheckbox: { type: Boolean },
|
|
51
|
+
cardStyle: { type: [Boolean, null, String, Object, Array] },
|
|
52
|
+
name: {},
|
|
53
|
+
gridColumns: {},
|
|
54
|
+
heightDifference: {}
|
|
55
|
+
},
|
|
56
|
+
setup(Pe, { expose: Be }) {
|
|
57
|
+
const o = Pe, Z = (e) => e == null ? void 0 : e.replace(/ /g, " "), ee = (e) => e, L = J(() => o.displayType ? o.displayType : o.typeSwitch ? "card" : "table"), Ne = U("ruleModule", void 0), te = U("ruleMap", void 0), c = J(() => o.rulePath && te[o.rulePath] ? te[o.rulePath] : Ne), h = U("pageMethodMap", {}), I = U("getGlobalParams", () => {
|
|
58
|
+
}), ne = U(yt), oe = ne ? ne.translateFn : null, N = C(), ae = C(), Re = (e, t, a) => {
|
|
59
|
+
p.value[e] && (p.value[e][t] = a);
|
|
60
|
+
}, Te = (e, t) => {
|
|
61
|
+
const a = o.columns.find((s) => s.key === e);
|
|
62
|
+
a && (a.hidden = !t);
|
|
63
|
+
}, H = (e, t, a, s) => {
|
|
64
|
+
try {
|
|
65
|
+
c.value[e.onClick](h, t, a, s), s == null || s.stopPropagation();
|
|
66
|
+
} catch (S) {
|
|
67
|
+
console.error(S + `
|
|
68
|
+
onClick: ${e.onClick}`);
|
|
69
|
+
}
|
|
70
|
+
}, _e = (e) => {
|
|
71
|
+
if (o.rowClick)
|
|
72
|
+
try {
|
|
73
|
+
c.value[o.rowClick](h, e);
|
|
74
|
+
} catch (t) {
|
|
75
|
+
console.error(
|
|
76
|
+
t + `
|
|
77
|
+
|
|
78
|
+
rulePath: ${c.value.rulePath}
|
|
79
|
+
|
|
80
|
+
handleRowClick: ${o.rowClick}
|
|
81
|
+
`
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
}, $e = (e) => {
|
|
85
|
+
if (o.rowDbClick)
|
|
86
|
+
try {
|
|
87
|
+
c.value[o.rowDbClick](h, e);
|
|
88
|
+
} catch (t) {
|
|
89
|
+
console.error(t);
|
|
90
|
+
}
|
|
91
|
+
}, De = C([]), Me = (e) => {
|
|
92
|
+
De.value = e;
|
|
93
|
+
}, xe = (e, t) => {
|
|
94
|
+
if (!o.selectable)
|
|
95
|
+
return !0;
|
|
96
|
+
try {
|
|
97
|
+
return c.value[o.selectable](h, e, t);
|
|
98
|
+
} catch (a) {
|
|
99
|
+
console.error(a);
|
|
100
|
+
}
|
|
101
|
+
return !0;
|
|
102
|
+
}, Le = () => {
|
|
103
|
+
var e;
|
|
104
|
+
(e = N.value) == null || e.clearSelection();
|
|
105
|
+
}, Ie = (e, t) => {
|
|
106
|
+
var a, s;
|
|
107
|
+
if (o.rowKey) {
|
|
108
|
+
const S = p.value.find((V) => V[o.rowKey] === e);
|
|
109
|
+
if (!S)
|
|
110
|
+
return;
|
|
111
|
+
t === void 0 ? (a = N.value) == null || a.toggleRowSelection(S) : (s = N.value) == null || s.toggleRowSelection(S, t);
|
|
112
|
+
} else
|
|
113
|
+
return console.error("rowKey is required");
|
|
114
|
+
}, Ve = () => p.value, le = C(), re = (e) => {
|
|
115
|
+
if (le.value = e, !!o.handleCurrentChange)
|
|
116
|
+
try {
|
|
117
|
+
c.value[o.handleCurrentChange](h, e);
|
|
118
|
+
} catch (t) {
|
|
119
|
+
console.error(t);
|
|
120
|
+
}
|
|
121
|
+
}, Ae = () => le.value, Ee = () => {
|
|
122
|
+
var e;
|
|
123
|
+
return (e = N.value) == null ? void 0 : e.getSelectionRows();
|
|
124
|
+
}, Ue = async () => !0, Fe = (e, t) => {
|
|
125
|
+
var s;
|
|
126
|
+
const a = (s = o.topBtns) == null ? void 0 : s.find((S) => S.key === e);
|
|
127
|
+
a && (a.hidden = t);
|
|
128
|
+
}, He = (e, t) => {
|
|
129
|
+
var s;
|
|
130
|
+
const a = (s = o.rowBtns) == null ? void 0 : s.find((S) => S.key === e);
|
|
131
|
+
a && (a.condition = !t);
|
|
132
|
+
}, R = C(0), Ke = (e) => {
|
|
133
|
+
R.value = e;
|
|
134
|
+
}, je = () => R.value, i = C({ pageNum: 1, pageSize: o.defaultPageSize || 10 }), P = C({ pageNum: 1, pageSize: o.defaultPageSize || 10 }), We = () => i.value, Ge = (e) => {
|
|
135
|
+
let t = !1;
|
|
136
|
+
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 };
|
|
137
|
+
}, ie = async () => {
|
|
138
|
+
if (i.value.pageNum = 1, !o.sizeChange)
|
|
139
|
+
return;
|
|
140
|
+
const e = ze.service({
|
|
141
|
+
target: `#${o.name}`,
|
|
142
|
+
text: "Loading..."
|
|
143
|
+
});
|
|
144
|
+
try {
|
|
145
|
+
await c.value[o.sizeChange](h, i.value), P.value.pageNum = i.value.pageNum, P.value.pageSize = i.value.pageSize;
|
|
146
|
+
} catch (t) {
|
|
147
|
+
console.error(t), i.value.pageNum = P.value.pageNum, i.value.pageSize = P.value.pageSize;
|
|
148
|
+
} finally {
|
|
149
|
+
e.close();
|
|
150
|
+
}
|
|
151
|
+
}, se = async () => {
|
|
152
|
+
if (!o.pageChange)
|
|
153
|
+
return;
|
|
154
|
+
const e = ze.service({
|
|
155
|
+
target: `#${o.name}`,
|
|
156
|
+
text: "Loading..."
|
|
157
|
+
});
|
|
158
|
+
try {
|
|
159
|
+
await c.value[o.pageChange](h, i.value), P.value.pageNum = i.value.pageNum, P.value.pageSize = i.value.pageSize;
|
|
160
|
+
} catch (t) {
|
|
161
|
+
console.error(t), i.value.pageNum = P.value.pageNum, i.value.pageSize = P.value.pageSize;
|
|
162
|
+
} finally {
|
|
163
|
+
e.close();
|
|
164
|
+
}
|
|
165
|
+
}, qe = (e) => {
|
|
166
|
+
var t, a;
|
|
167
|
+
console.log("zytest---selectRow-row", e), L.value === "card" ? (t = ae.value) == null || t.selectRow(e) : (a = N.value) == null || a.setCurrentRow(e);
|
|
168
|
+
}, Oe = (e) => {
|
|
169
|
+
var t;
|
|
170
|
+
(t = N.value) == null || t.setCurrentRow(p.value[e]);
|
|
171
|
+
}, Je = (e, t, a) => {
|
|
172
|
+
o.columns.forEach((s) => {
|
|
173
|
+
s.key === e && s[t] && (s[t] = a);
|
|
174
|
+
});
|
|
175
|
+
}, p = C([]), Qe = (e) => {
|
|
176
|
+
p.value = e || [];
|
|
177
|
+
}, Xe = (e = {}) => {
|
|
178
|
+
p.value.push(e);
|
|
179
|
+
}, Ye = (e) => {
|
|
180
|
+
e >= 0 && e < p.value.length && p.value.splice(e, 1);
|
|
181
|
+
}, Ze = async () => {
|
|
182
|
+
p.value = [...p.value];
|
|
183
|
+
}, ue = it("rootRef"), T = (e, t) => {
|
|
184
|
+
const a = oe ? oe(e, t) : t[e.key];
|
|
185
|
+
if (!e.encrypted || !a)
|
|
186
|
+
return a;
|
|
187
|
+
const s = `${a}`;
|
|
188
|
+
return s.length <= 4 ? "*".repeat(s.length) : s.slice(0, -4) + "****";
|
|
189
|
+
}, et = (e, t) => {
|
|
190
|
+
if (!e.getTextStyle || !c.value)
|
|
191
|
+
return {};
|
|
192
|
+
try {
|
|
193
|
+
return c.value[e.getTextStyle](h, t, e);
|
|
194
|
+
} catch (a) {
|
|
195
|
+
console.error(a);
|
|
196
|
+
}
|
|
197
|
+
}, B = (e, t) => {
|
|
198
|
+
if (!(!e.getIconInfo || !c.value))
|
|
199
|
+
try {
|
|
200
|
+
return c.value[e.getIconInfo](h, t, e);
|
|
201
|
+
} catch (a) {
|
|
202
|
+
console.error(a);
|
|
203
|
+
}
|
|
204
|
+
}, K = (e, t) => {
|
|
205
|
+
if (!(!e.getIconPopoverContent || !c.value))
|
|
206
|
+
try {
|
|
207
|
+
return c.value[e.getIconPopoverContent](h, t, e);
|
|
208
|
+
} catch (a) {
|
|
209
|
+
console.error(a);
|
|
210
|
+
}
|
|
211
|
+
}, tt = (e, t) => {
|
|
212
|
+
if (!(!e.getCustomContent || !c.value))
|
|
213
|
+
try {
|
|
214
|
+
return c.value[e.getCustomContent](h, t, e);
|
|
215
|
+
} catch (a) {
|
|
216
|
+
console.error(a);
|
|
217
|
+
}
|
|
218
|
+
}, nt = J(() => !o.rowBtns || o.rowBtns.length === 0 || !p.value || p.value.length === 0 ? !1 : p.value.some(
|
|
219
|
+
(e) => {
|
|
220
|
+
var t;
|
|
221
|
+
return (t = o.rowBtns) == null ? void 0 : t.some((a) => a.condition === void 0 || a.condition === null ? !0 : F(a.condition, {
|
|
222
|
+
$row: e,
|
|
223
|
+
$globalParams: I()
|
|
224
|
+
}));
|
|
225
|
+
}
|
|
226
|
+
)), ce = ft(), G = C(o.showPollCheckbox || !1), pe = C(10), f = C(10), ot = (e) => {
|
|
227
|
+
try {
|
|
228
|
+
o.onPollChange && c.value[o.onPollChange](h, e ? f.value : 0);
|
|
229
|
+
} catch (t) {
|
|
230
|
+
console.error(t);
|
|
231
|
+
}
|
|
232
|
+
}, at = (e) => {
|
|
233
|
+
if (f.value = Number(e), Number.isInteger(f.value) || (f.value = Math.floor(f.value)), f.value <= 0 || f.value > 99) {
|
|
234
|
+
f.value = pe.value, zt.warning("Incorrect input. Please input number in 1-99 seconds");
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
try {
|
|
238
|
+
o.onPollChange && (c.value[o.onPollChange](h, f.value), pe.value = f.value);
|
|
239
|
+
} catch (t) {
|
|
240
|
+
console.error(t);
|
|
241
|
+
}
|
|
242
|
+
}, j = C(void 0);
|
|
243
|
+
function ge(e) {
|
|
244
|
+
if (e) {
|
|
245
|
+
j.value = e;
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
o.heightDifference && Number(o.heightDifference) > 0 ? j.value = window.innerHeight - Number(o.heightDifference) : j.value = void 0;
|
|
249
|
+
}
|
|
250
|
+
const q = C(!1), lt = (e) => {
|
|
251
|
+
q.value = e;
|
|
252
|
+
}, de = async () => {
|
|
253
|
+
if (!o.onMounted || !c.value)
|
|
254
|
+
return;
|
|
255
|
+
await mt();
|
|
256
|
+
const e = o.onMounted;
|
|
257
|
+
try {
|
|
258
|
+
c.value[e](h);
|
|
259
|
+
} catch (t) {
|
|
260
|
+
console.error(t);
|
|
261
|
+
}
|
|
262
|
+
}, ve = async () => {
|
|
263
|
+
if (!o.onActivated || !c.value)
|
|
264
|
+
return;
|
|
265
|
+
const e = o.onActivated;
|
|
266
|
+
try {
|
|
267
|
+
c.value[e](h);
|
|
268
|
+
} catch (t) {
|
|
269
|
+
console.error(t);
|
|
270
|
+
}
|
|
271
|
+
};
|
|
272
|
+
st(async () => {
|
|
273
|
+
await de(), ge();
|
|
274
|
+
}), ut(() => {
|
|
275
|
+
ve();
|
|
276
|
+
}), ct(() => {
|
|
277
|
+
});
|
|
278
|
+
const he = pt({
|
|
279
|
+
...gt(o),
|
|
280
|
+
setCellData: Re,
|
|
281
|
+
clearSelection: Le,
|
|
282
|
+
getData: Ve,
|
|
283
|
+
getCurrentRow: Ae,
|
|
284
|
+
getSelectedRows: Ee,
|
|
285
|
+
addRow: Xe,
|
|
286
|
+
deleteRow: Ye,
|
|
287
|
+
refresh: Ze,
|
|
288
|
+
validate: Ue,
|
|
289
|
+
setData: Qe,
|
|
290
|
+
selectRow: qe,
|
|
291
|
+
selectRowNum: Oe,
|
|
292
|
+
setTotal: Ke,
|
|
293
|
+
getTotal: je,
|
|
294
|
+
getPagination: We,
|
|
295
|
+
setPagination: Ge,
|
|
296
|
+
setTopBtnHidden: Fe,
|
|
297
|
+
setColVisible: Te,
|
|
298
|
+
setColumn: Je,
|
|
299
|
+
setRowsBtnHidden: He,
|
|
300
|
+
pollEnabled: G,
|
|
301
|
+
pollInterval: f,
|
|
302
|
+
rootRef: ue,
|
|
303
|
+
mounted: de,
|
|
304
|
+
activated: ve,
|
|
305
|
+
toggleSelection: Ie,
|
|
306
|
+
setLoading: lt,
|
|
307
|
+
setMaxTableHeight: ge,
|
|
308
|
+
type: "table"
|
|
309
|
+
});
|
|
310
|
+
if (o.name) {
|
|
311
|
+
const e = Ct(o.name, he);
|
|
312
|
+
dt(() => {
|
|
313
|
+
e();
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
return Be(he), (e, t) => {
|
|
317
|
+
const a = _("el-checkbox"), s = _("el-input"), S = _("el-pagination"), V = _("el-table-column"), O = _("el-popover"), me = _("el-tooltip"), ye = _("el-button"), fe = vt("loading");
|
|
318
|
+
return e.hidden ? m("", !0) : (r(), g("div", {
|
|
319
|
+
key: 0,
|
|
320
|
+
class: M(["table-render", {
|
|
321
|
+
[e.name]: !0,
|
|
322
|
+
"top-pagination": e.paginationPosition === "top"
|
|
323
|
+
}]),
|
|
324
|
+
ref_key: "rootRef",
|
|
325
|
+
ref: ue,
|
|
326
|
+
id: e.name
|
|
327
|
+
}, [
|
|
328
|
+
e.paginationPosition === "top" ? (r(), g("div", {
|
|
329
|
+
key: 0,
|
|
330
|
+
class: M(["pagination-wrapper", {
|
|
331
|
+
cardlistPadding: L.value === "card"
|
|
332
|
+
}])
|
|
333
|
+
}, [
|
|
334
|
+
y(S, {
|
|
335
|
+
layout: e.paginationLayout || "slot ,sizes, prev, pager, next",
|
|
336
|
+
total: R.value,
|
|
337
|
+
"page-sizes": e.pageSizes || [5, 6, 10, 20, 30, 40],
|
|
338
|
+
"default-page-size": e.defaultPageSize,
|
|
339
|
+
"current-page": i.value.pageNum,
|
|
340
|
+
"onUpdate:currentPage": t[2] || (t[2] = (n) => i.value.pageNum = n),
|
|
341
|
+
"page-size": i.value.pageSize,
|
|
342
|
+
"onUpdate:pageSize": t[3] || (t[3] = (n) => i.value.pageSize = n),
|
|
343
|
+
"pager-count": Number(e.pagerCount) || 5,
|
|
344
|
+
onSizeChange: ie,
|
|
345
|
+
onCurrentChange: se
|
|
346
|
+
}, {
|
|
347
|
+
default: d(() => [
|
|
348
|
+
k("div", Bt, [
|
|
349
|
+
e.showPollCheckbox ? (r(), g("div", Nt, [
|
|
350
|
+
y(a, {
|
|
351
|
+
modelValue: G.value,
|
|
352
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => G.value = n),
|
|
353
|
+
onChange: ot
|
|
354
|
+
}, null, 8, ["modelValue"]),
|
|
355
|
+
k("span", null, b(v(ce).table.pollText), 1),
|
|
356
|
+
y(s, {
|
|
357
|
+
type: "number",
|
|
358
|
+
style: { width: "45px", height: "28px" },
|
|
359
|
+
modelValue: f.value,
|
|
360
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => f.value = n),
|
|
361
|
+
onChange: at
|
|
362
|
+
}, null, 8, ["modelValue"]),
|
|
363
|
+
k("span", null, b(v(ce).table.pollUnit), 1)
|
|
364
|
+
])) : m("", !0),
|
|
365
|
+
k("span", Rt, [
|
|
366
|
+
t[6] || (t[6] = Q("Showing ")),
|
|
367
|
+
k("span", Tt, b(ee(i.value.pageSize < R.value ? i.value.pageSize : R.value)), 1),
|
|
368
|
+
t[7] || (t[7] = Q(" of ")),
|
|
369
|
+
k("span", _t, b(ee(R.value)), 1),
|
|
370
|
+
t[8] || (t[8] = Q(" records"))
|
|
371
|
+
])
|
|
372
|
+
])
|
|
373
|
+
]),
|
|
374
|
+
_: 1
|
|
375
|
+
}, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
|
|
376
|
+
], 2)) : m("", !0),
|
|
377
|
+
X(k("div", null, [
|
|
378
|
+
X((r(), w(v(bt), {
|
|
379
|
+
ref_key: "tableRef",
|
|
380
|
+
ref: N,
|
|
381
|
+
data: p.value,
|
|
382
|
+
"highlight-current-row": "",
|
|
383
|
+
"row-key": e.rowKey,
|
|
384
|
+
stripe: e.stripe,
|
|
385
|
+
onRowClick: _e,
|
|
386
|
+
onRowDblclick: $e,
|
|
387
|
+
onSelectionChange: Me,
|
|
388
|
+
onCurrentChange: re,
|
|
389
|
+
height: e.height || void 0,
|
|
390
|
+
"max-height": j.value,
|
|
391
|
+
"scrollbar-always-on": ""
|
|
392
|
+
}, {
|
|
393
|
+
empty: d(() => [
|
|
394
|
+
k("div", $t, [
|
|
395
|
+
y(v(kt), {
|
|
396
|
+
name: "tableEmpty",
|
|
397
|
+
style: { width: 56, height: 56 }
|
|
398
|
+
}),
|
|
399
|
+
t[9] || (t[9] = k("div", null, "No data available,please check", -1))
|
|
400
|
+
])
|
|
401
|
+
]),
|
|
402
|
+
default: d(() => [
|
|
403
|
+
e.multipleSelection ? (r(), w(V, {
|
|
404
|
+
key: 0,
|
|
405
|
+
type: "selection",
|
|
406
|
+
width: "55",
|
|
407
|
+
selectable: xe
|
|
408
|
+
})) : m("", !0),
|
|
409
|
+
(r(!0), g($, null, we(e.columns, (n) => (r(), g($, {
|
|
410
|
+
key: n.key
|
|
411
|
+
}, [
|
|
412
|
+
n.hidden ? m("", !0) : (r(), w(V, {
|
|
413
|
+
key: 0,
|
|
414
|
+
prop: n.key,
|
|
415
|
+
"min-width": n.minWidth,
|
|
416
|
+
fixed: n.fixed || !1,
|
|
417
|
+
sortable: n.sortable ?? e.sortable ?? !0
|
|
418
|
+
}, {
|
|
419
|
+
header: d(() => [
|
|
420
|
+
k("div", {
|
|
421
|
+
class: "text-ellipsis",
|
|
422
|
+
title: Z(n.label)
|
|
423
|
+
}, b(Z(n.label)), 9, Dt)
|
|
424
|
+
]),
|
|
425
|
+
default: d(({ row: u, $index: l }) => {
|
|
426
|
+
var A, D, Ce, ke;
|
|
427
|
+
return [
|
|
428
|
+
n.type === "link" ? (r(), g("div", {
|
|
429
|
+
key: 0,
|
|
430
|
+
class: M(["text-ellipsis link-style", { "click-style": n.onClick }]),
|
|
431
|
+
title: T(n, u),
|
|
432
|
+
onClick: (z) => H(n, u, l, z)
|
|
433
|
+
}, b(T(n, u)), 11, Mt)) : n.type === "iconText" ? (r(), g("div", xt, [
|
|
434
|
+
n.iconPosition === "left" ? (r(), g($, { key: 0 }, [
|
|
435
|
+
n.iconPopover && Array.isArray(K(n, u)) ? (r(), w(O, { key: 0 }, {
|
|
436
|
+
reference: d(() => {
|
|
437
|
+
var z, E;
|
|
438
|
+
return [
|
|
439
|
+
y(x, {
|
|
440
|
+
name: (z = B(n, u)) == null ? void 0 : z.name,
|
|
441
|
+
color: (E = B(n, u)) == null ? void 0 : E.color
|
|
442
|
+
}, null, 8, ["name", "color"])
|
|
443
|
+
];
|
|
444
|
+
}),
|
|
445
|
+
default: d(() => [
|
|
446
|
+
y(v(W), {
|
|
447
|
+
list: K(n, u) || []
|
|
448
|
+
}, null, 8, ["list"])
|
|
449
|
+
]),
|
|
450
|
+
_: 2
|
|
451
|
+
}, 1024)) : (r(), w(x, {
|
|
452
|
+
key: 1,
|
|
453
|
+
name: (A = B(n, u)) == null ? void 0 : A.name,
|
|
454
|
+
color: (D = B(n, u)) == null ? void 0 : D.color
|
|
455
|
+
}, null, 8, ["name", "color"]))
|
|
456
|
+
], 64)) : m("", !0),
|
|
457
|
+
k("span", {
|
|
458
|
+
class: M(["text-ellipsis", { "click-style": n.onClick }]),
|
|
459
|
+
title: T(n, u),
|
|
460
|
+
onClick: (z) => H(n, u, l, z)
|
|
461
|
+
}, b(T(n, u)), 11, Lt),
|
|
462
|
+
n.iconPosition === "right" ? (r(), g($, { key: 1 }, [
|
|
463
|
+
n.iconPopover && Array.isArray(K(n, u)) ? (r(), w(O, { key: 0 }, {
|
|
464
|
+
reference: d(() => {
|
|
465
|
+
var z, E;
|
|
466
|
+
return [
|
|
467
|
+
y(x, {
|
|
468
|
+
name: (z = B(n, u)) == null ? void 0 : z.name,
|
|
469
|
+
color: (E = B(n, u)) == null ? void 0 : E.color
|
|
470
|
+
}, null, 8, ["name", "color"])
|
|
471
|
+
];
|
|
472
|
+
}),
|
|
473
|
+
default: d(() => [
|
|
474
|
+
y(v(W), {
|
|
475
|
+
list: K(n, u) || []
|
|
476
|
+
}, null, 8, ["list"])
|
|
477
|
+
]),
|
|
478
|
+
_: 2
|
|
479
|
+
}, 1024)) : (r(), w(x, {
|
|
480
|
+
key: 1,
|
|
481
|
+
name: (Ce = B(n, u)) == null ? void 0 : Ce.name,
|
|
482
|
+
color: (ke = B(n, u)) == null ? void 0 : ke.color
|
|
483
|
+
}, null, 8, ["name", "color"]))
|
|
484
|
+
], 64)) : m("", !0)
|
|
485
|
+
])) : n.type === "customContent" ? (r(), g("div", It, [
|
|
486
|
+
y(v(W), {
|
|
487
|
+
list: tt(n, u) || []
|
|
488
|
+
}, null, 8, ["list"])
|
|
489
|
+
])) : (r(), g("div", {
|
|
490
|
+
key: 3,
|
|
491
|
+
class: M({ "text-ellipsis": !n.noEllipsis }),
|
|
492
|
+
title: T(n, u),
|
|
493
|
+
style: Y(et(n, u))
|
|
494
|
+
}, b(T(n, u)), 15, Vt))
|
|
495
|
+
];
|
|
496
|
+
}),
|
|
497
|
+
_: 2
|
|
498
|
+
}, 1032, ["prop", "min-width", "fixed", "sortable"]))
|
|
499
|
+
], 64))), 128)),
|
|
500
|
+
nt.value && e.rowBtns && e.rowBtns.length > 0 ? (r(), w(V, {
|
|
501
|
+
key: 1,
|
|
502
|
+
label: e.rowBtnsLabel || "Action",
|
|
503
|
+
fixed: "right",
|
|
504
|
+
align: "left",
|
|
505
|
+
width: e.rowBtnsWidth || (e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100)
|
|
506
|
+
}, {
|
|
507
|
+
default: d(({ row: n, $index: u }) => [
|
|
508
|
+
k("div", At, [
|
|
509
|
+
(r(!0), g($, null, we(e.rowBtns, (l) => {
|
|
510
|
+
var A;
|
|
511
|
+
return r(), g($, {
|
|
512
|
+
key: l.key
|
|
513
|
+
}, [
|
|
514
|
+
l.component === "Popover" ? (r(), w(O, {
|
|
515
|
+
key: 0,
|
|
516
|
+
title: l.label,
|
|
517
|
+
trigger: "click",
|
|
518
|
+
"popper-class": "btn-popover",
|
|
519
|
+
width: (A = l.children) != null && A.length && l.children[0].width || 400
|
|
520
|
+
}, {
|
|
521
|
+
reference: d(() => [
|
|
522
|
+
l.condition === void 0 || l.condition === null || v(F)(l.condition, {
|
|
523
|
+
$row: n,
|
|
524
|
+
$globalParams: v(I)()
|
|
525
|
+
}) ? (r(), w(ye, {
|
|
526
|
+
key: 0,
|
|
527
|
+
disabled: l.disabled,
|
|
528
|
+
link: "",
|
|
529
|
+
size: "small",
|
|
530
|
+
type: l.type,
|
|
531
|
+
onClick: Se((D) => H(l, n, u, D), ["stop"])
|
|
532
|
+
}, {
|
|
533
|
+
default: d(() => [
|
|
534
|
+
y(me, {
|
|
535
|
+
class: "box-item",
|
|
536
|
+
effect: "dark",
|
|
537
|
+
content: l.label,
|
|
538
|
+
placement: "top"
|
|
539
|
+
}, {
|
|
540
|
+
default: d(() => [
|
|
541
|
+
l.icon ? (r(), w(x, {
|
|
542
|
+
key: 0,
|
|
543
|
+
name: l.icon.name,
|
|
544
|
+
color: l.icon.color
|
|
545
|
+
}, null, 8, ["name", "color"])) : m("", !0)
|
|
546
|
+
]),
|
|
547
|
+
_: 2
|
|
548
|
+
}, 1032, ["content"]),
|
|
549
|
+
l.buttonText ? (r(), g("span", {
|
|
550
|
+
key: 0,
|
|
551
|
+
style: Y({ color: l.buttonText.color, fontSize: "14px" })
|
|
552
|
+
}, b(v(F)(l.buttonText.text, {
|
|
553
|
+
$row: n,
|
|
554
|
+
$globalParams: v(I)()
|
|
555
|
+
})), 5)) : m("", !0)
|
|
556
|
+
]),
|
|
557
|
+
_: 2
|
|
558
|
+
}, 1032, ["disabled", "type", "onClick"])) : m("", !0)
|
|
559
|
+
]),
|
|
560
|
+
default: d(() => [
|
|
561
|
+
k("div", null, [
|
|
562
|
+
y(v(W), {
|
|
563
|
+
list: l.children
|
|
564
|
+
}, null, 8, ["list"])
|
|
565
|
+
])
|
|
566
|
+
]),
|
|
567
|
+
_: 2
|
|
568
|
+
}, 1032, ["title", "width"])) : (r(), g($, { key: 1 }, [
|
|
569
|
+
l.condition === void 0 || l.condition === null || v(F)(l.condition, {
|
|
570
|
+
$row: n,
|
|
571
|
+
$globalParams: v(I)()
|
|
572
|
+
}) ? (r(), w(ye, {
|
|
573
|
+
key: 0,
|
|
574
|
+
disabled: l.disabled,
|
|
575
|
+
link: "",
|
|
576
|
+
size: "small",
|
|
577
|
+
type: l.type,
|
|
578
|
+
onClick: Se((D) => H(l, n, u, D), ["stop"])
|
|
579
|
+
}, {
|
|
580
|
+
default: d(() => [
|
|
581
|
+
y(me, {
|
|
582
|
+
class: "box-item",
|
|
583
|
+
effect: "dark",
|
|
584
|
+
content: l.label,
|
|
585
|
+
placement: "top"
|
|
586
|
+
}, {
|
|
587
|
+
default: d(() => [
|
|
588
|
+
l.icon ? (r(), w(x, {
|
|
589
|
+
key: 0,
|
|
590
|
+
name: l.icon.name,
|
|
591
|
+
color: l.icon.color
|
|
592
|
+
}, null, 8, ["name", "color"])) : m("", !0)
|
|
593
|
+
]),
|
|
594
|
+
_: 2
|
|
595
|
+
}, 1032, ["content"]),
|
|
596
|
+
l.buttonText ? (r(), g("span", {
|
|
597
|
+
key: 0,
|
|
598
|
+
style: Y({ color: l.buttonText.color, fontSize: "14px" })
|
|
599
|
+
}, b(v(F)(l.buttonText.text, {
|
|
600
|
+
$row: n,
|
|
601
|
+
$globalParams: v(I)()
|
|
602
|
+
})), 5)) : m("", !0)
|
|
603
|
+
]),
|
|
604
|
+
_: 2
|
|
605
|
+
}, 1032, ["disabled", "type", "onClick"])) : m("", !0)
|
|
606
|
+
], 64))
|
|
607
|
+
], 64);
|
|
608
|
+
}), 128))
|
|
609
|
+
])
|
|
610
|
+
]),
|
|
611
|
+
_: 1
|
|
612
|
+
}, 8, ["label", "width"])) : m("", !0)
|
|
613
|
+
]),
|
|
614
|
+
_: 1
|
|
615
|
+
}, 8, ["data", "row-key", "stripe", "height", "max-height"])), [
|
|
616
|
+
[fe, q.value]
|
|
617
|
+
])
|
|
618
|
+
], 512), [
|
|
619
|
+
[be, L.value === "table"]
|
|
620
|
+
]),
|
|
621
|
+
X(y(wt, ht({
|
|
622
|
+
ref_key: "cardListRef",
|
|
623
|
+
ref: ae,
|
|
624
|
+
data: p.value
|
|
625
|
+
}, o, {
|
|
626
|
+
getColText: T,
|
|
627
|
+
onCurrentChange: re
|
|
628
|
+
}), null, 16, ["data"]), [
|
|
629
|
+
[be, L.value === "card"],
|
|
630
|
+
[fe, q.value]
|
|
631
|
+
]),
|
|
632
|
+
e.paginationPosition !== "top" ? (r(), g("div", {
|
|
633
|
+
key: 1,
|
|
634
|
+
class: M(["pagination-wrapper", {
|
|
635
|
+
hidePagination: (e.hiddenPagination || p.value.length === 0) && !e.height,
|
|
636
|
+
transparentPagination: (e.hiddenPagination || p.value.length === 0) && e.height,
|
|
637
|
+
cardlistPadding: L.value === "card"
|
|
638
|
+
}])
|
|
639
|
+
}, [
|
|
640
|
+
y(S, {
|
|
641
|
+
layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
|
|
642
|
+
total: R.value,
|
|
643
|
+
"page-sizes": e.pageSizes || [5, 6, 10, 20, 30, 40],
|
|
644
|
+
"default-page-size": e.defaultPageSize,
|
|
645
|
+
"current-page": i.value.pageNum,
|
|
646
|
+
"onUpdate:currentPage": t[4] || (t[4] = (n) => i.value.pageNum = n),
|
|
647
|
+
"page-size": i.value.pageSize,
|
|
648
|
+
"onUpdate:pageSize": t[5] || (t[5] = (n) => i.value.pageSize = n),
|
|
649
|
+
"pager-count": Number(e.pagerCount) || 5,
|
|
650
|
+
onSizeChange: ie,
|
|
651
|
+
onCurrentChange: se
|
|
652
|
+
}, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
|
|
653
|
+
], 2)) : m("", !0)
|
|
654
|
+
], 10, Pt));
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
}), Kt = /* @__PURE__ */ St(Et, [["__scopeId", "data-v-0bbf28f6"]]);
|
|
658
|
+
export {
|
|
659
|
+
Kt as default
|
|
660
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as N, ref as z, computed as M, watch as _, onMounted as R, onUnmounted as W, resolveComponent as g, openBlock as c, createBlock as f, mergeProps as B, withCtx as u, createElementVNode as i, createVNode as m, createElementBlock as C, Fragment as A, renderList as S, createCommentVNode as T, toDisplayString as $, normalizeClass as x, unref as D } from "vue";
|
|
2
|
-
import { c as F, i as U, B as K, I as P, b as X, _ as Y } from "./index-
|
|
2
|
+
import { c as F, i as U, B as K, I as P, b as X, _ as Y } from "./index-Diyo05ZT.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const j = { class: "right-icon-wrapper" }, q = { class: "dynamic-icon-wrapper" }, G = { class: "static-icon-wrapper" }, H = { class: "tab-label-text" }, J = /* @__PURE__ */ N({
|
|
5
5
|
__name: "Tabs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, mergeModels as i, useModel as _, computed as v, resolveComponent as f, openBlock as a, createElementBlock as n, createElementVNode as y, toDisplayString as r, createBlock as V, mergeProps as k } from "vue";
|
|
2
|
-
import { u as x, _ as B } from "./index-
|
|
2
|
+
import { u as x, _ as B } from "./index-Diyo05ZT.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const M = {
|
|
5
5
|
key: 0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, ref as C, onUnmounted as g, resolveComponent as x, openBlock as r, createElementBlock as t, normalizeStyle as i, createVNode as a, withCtx as S, withDirectives as _, createElementVNode as b, normalizeClass as c, unref as B, createCommentVNode as d, vShow as D } from "vue";
|
|
2
|
-
import { c as k, i as E, b as I, I as u, _ as j } from "./index-
|
|
2
|
+
import { c as k, i as E, b as I, I as u, _ as j } from "./index-Diyo05ZT.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const M = {
|
|
5
5
|
key: 0,
|