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