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