asiaint-lowcode 3.1.56 → 3.1.58
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 +190 -188
- package/dist/index.d.ts +383 -7
- package/dist/lazy/{Card-BlakHGF_.js → Card-D0bbXvkE.js} +2 -2
- package/dist/lazy/{Cascader-BOwEQkqr.js → Cascader-CVF7Mugg.js} +1 -1
- package/dist/lazy/{Checkbox-1qYzxvx3.js → Checkbox-_T8IhBqC.js} +2 -2
- package/dist/lazy/{Collapse-DFhQjGTg.js → Collapse-Ds1b3YDU.js} +1 -1
- package/dist/lazy/{Component-D6OIJgBS.js → Component-B8bF5XT4.js} +1 -1
- package/dist/lazy/Component-C9plUbiY.js +143 -0
- package/dist/lazy/Component-CFM9XDEd.js +162 -0
- package/dist/lazy/{Component-DqTP-dqG.js → Component-CdoBzMc7.js} +2 -2
- package/dist/lazy/Component-D3ko2zV_.js +30 -0
- package/dist/lazy/{Component-uvnooS14.js → Component-DP42ZKK_.js} +2 -2
- package/dist/lazy/{Component-BOC_tZaw.js → Component-DomwdjSx.js} +1 -1
- package/dist/lazy/{CurdCard-7elTeYSM.js → CurdCard-BQRlQVr1.js} +21 -20
- package/dist/lazy/Custom-g38jchRO.js +26 -0
- package/dist/lazy/{DatePicker-vabWbXWk.js → DatePicker-CH9-SrZS.js} +22 -20
- package/dist/lazy/{DragList-ptXtINib.js → DragList-DrNbhRhP.js} +13 -13
- package/dist/lazy/{FilterSearch-DX7lyU5K.js → FilterSearch-FpJsKJ3o.js} +8 -8
- package/dist/lazy/FloatCurd-5xXw_Uuf.js +161 -0
- package/dist/lazy/{FormList-CQafRlf1.js → FormList-uX7IBTqh.js} +1 -1
- package/dist/lazy/{Grid-BHXnN5tG.js → Grid-ysr0Sucp.js} +1 -1
- package/dist/lazy/{InfiniteScroll-B9A8fTzl.js → InfiniteScroll-DZQrpuci.js} +4 -4
- package/dist/lazy/{Inline-CLeU2_yh.js → Inline-CbhYGfPg.js} +3 -3
- package/dist/lazy/{JsonEdit-CR8pc1r0.js → JsonEdit-CyMnmq3r.js} +3 -3
- package/dist/lazy/{LogList-C0n583jZ.js → LogList-uph8HlCd.js} +7 -7
- package/dist/lazy/{ObjGroup-CWyMW8ok.js → ObjGroup-N7KsOVel.js} +1 -1
- package/dist/lazy/{OfferDetails-Bk2fm7if.js → OfferDetails-CIul9KOu.js} +10 -8
- package/dist/lazy/{Pagination-BTgJMuH1.js → Pagination-DjW7ZS5F.js} +4 -4
- package/dist/lazy/{Progress-DbQWJ6ZF.js → Progress-CdesxNAo.js} +15 -15
- package/dist/lazy/{Radio-BFsZCzNl.js → Radio-_4avXRsG.js} +3 -3
- package/dist/lazy/{SearchSelect-CTNUhnXg.js → SearchSelect-smSaLg9O.js} +6 -6
- package/dist/lazy/{Select-CImoPfB1.js → Select-CSAee2NV.js} +2 -2
- package/dist/lazy/Table-DwCCVOES.js +568 -0
- package/dist/lazy/Tabs-CwqrqWqQ.js +127 -0
- package/dist/lazy/TextArea-Cvka_TgI.js +34 -0
- package/dist/lazy/{Wrapper-B4mdrBTT.js → Wrapper-Bu6nqkrG.js} +2 -2
- package/dist/lazy/{index-BMlHLc-c.js → index-BOGnFXnC.js} +18345 -18107
- package/dist/lazy/{useSelect-DWF-2iPr.js → useSelect-koHM4kMI.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Component-BybPseK_.js +0 -153
- package/dist/lazy/Component-T0MaVDE3.js +0 -13
- package/dist/lazy/Component-TyczCMR3.js +0 -120
- package/dist/lazy/Custom-CFg-E0l1.js +0 -26
- package/dist/lazy/Table-CQKjjRQt.js +0 -527
- package/dist/lazy/Tabs-Qh5RoptW.js +0 -72
- package/dist/lazy/TextArea-CHd9bsw8.js +0 -34
|
@@ -1,527 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Ee, computed as U, inject as A, ref as P, useTemplateRef as Ve, readonly as je, toRefs as Ue, onMounted as We, nextTick as Ge, onActivated as He, onUnmounted as Ke, resolveComponent as I, openBlock as r, createElementBlock as g, normalizeClass as L, withDirectives as ee, createElementVNode as b, createVNode as y, unref as h, withCtx as d, createBlock as v, createCommentVNode as f, Fragment as B, renderList as te, toDisplayString as N, normalizeStyle as W, withModifiers as ne, vShow as ae, mergeProps as qe } from "vue";
|
|
2
|
-
import { $ as Je, h as x, j as Oe, a as Qe, I as R, b as j, C as Xe, _ as Ye } from "./index-BMlHLc-c.js";
|
|
3
|
-
import { ElTable as Ze, ElLoading as oe } from "element-plus";
|
|
4
|
-
const et = ["id"], tt = { class: "empty-content" }, nt = ["title"], at = ["title", "onClick"], ot = {
|
|
5
|
-
key: 1,
|
|
6
|
-
class: "icon-text-wrapper"
|
|
7
|
-
}, lt = ["title", "onClick"], rt = { key: 2 }, it = ["title"], st = { class: "row-btn-wrapper" }, ut = /* @__PURE__ */ Ee({
|
|
8
|
-
__name: "Table",
|
|
9
|
-
props: {
|
|
10
|
-
title: {},
|
|
11
|
-
key: {},
|
|
12
|
-
rulePath: {},
|
|
13
|
-
rowKey: {},
|
|
14
|
-
showDynamicSearch: { type: Boolean },
|
|
15
|
-
multipleSelection: { type: Boolean },
|
|
16
|
-
highlightCurrentRow: { type: Boolean },
|
|
17
|
-
"highlight-current-row": { type: Boolean },
|
|
18
|
-
stripe: { type: Boolean },
|
|
19
|
-
rowClick: {},
|
|
20
|
-
rowDbClick: {},
|
|
21
|
-
sizeChange: {},
|
|
22
|
-
pageChange: {},
|
|
23
|
-
topBtns: {},
|
|
24
|
-
rowBtns: {},
|
|
25
|
-
rowBtnsLabel: {},
|
|
26
|
-
rowBtnsWidth: {},
|
|
27
|
-
columns: {},
|
|
28
|
-
hidden: { type: Boolean },
|
|
29
|
-
hiddenPagination: { type: Boolean },
|
|
30
|
-
handleCurrentChange: {},
|
|
31
|
-
selectable: {},
|
|
32
|
-
pageSizes: {},
|
|
33
|
-
pagerCount: {},
|
|
34
|
-
paginationLayout: {},
|
|
35
|
-
defaultPageSize: {},
|
|
36
|
-
typeSwitch: { type: Boolean },
|
|
37
|
-
displayType: { default: "table" },
|
|
38
|
-
onMounted: {},
|
|
39
|
-
onActivated: {},
|
|
40
|
-
height: {},
|
|
41
|
-
collapsible: { type: Boolean },
|
|
42
|
-
sortable: { type: Boolean, default: !0 },
|
|
43
|
-
name: {},
|
|
44
|
-
gridColumns: {}
|
|
45
|
-
},
|
|
46
|
-
setup(le, { expose: re }) {
|
|
47
|
-
const a = le, F = U(() => a.displayType ? a.displayType : a.typeSwitch ? "card" : "table"), ie = A("ruleModule", void 0), G = A("ruleMap", void 0), c = U(() => a.rulePath && G[a.rulePath] ? G[a.rulePath] : ie), m = A("pageMethodMap", {}), T = A("getGlobalParams", () => {
|
|
48
|
-
}), H = A(Je), K = H ? H.translateFn : null, $ = P(), se = (e, t, o) => {
|
|
49
|
-
p.value[e] && (p.value[e][t] = o);
|
|
50
|
-
}, ue = (e, t) => {
|
|
51
|
-
const o = a.columns.find((s) => s.key === e);
|
|
52
|
-
o && (o.hidden = !t);
|
|
53
|
-
}, E = (e, t, o, s) => {
|
|
54
|
-
try {
|
|
55
|
-
c.value[e.onClick](m, t, o, s), s == null || s.stopPropagation();
|
|
56
|
-
} catch (z) {
|
|
57
|
-
console.error(z);
|
|
58
|
-
}
|
|
59
|
-
}, ce = (e) => {
|
|
60
|
-
if (a.rowClick)
|
|
61
|
-
try {
|
|
62
|
-
c.value[a.rowClick](m, e);
|
|
63
|
-
} catch (t) {
|
|
64
|
-
console.error(t);
|
|
65
|
-
}
|
|
66
|
-
}, pe = (e) => {
|
|
67
|
-
if (a.rowDbClick)
|
|
68
|
-
try {
|
|
69
|
-
c.value[a.rowDbClick](m, e);
|
|
70
|
-
} catch (t) {
|
|
71
|
-
console.error(t);
|
|
72
|
-
}
|
|
73
|
-
}, de = P([]), ge = (e) => {
|
|
74
|
-
de.value = e;
|
|
75
|
-
}, he = (e, t) => {
|
|
76
|
-
if (!a.selectable)
|
|
77
|
-
return !0;
|
|
78
|
-
try {
|
|
79
|
-
return c.value[a.selectable](m, e, t);
|
|
80
|
-
} catch (o) {
|
|
81
|
-
console.error(o);
|
|
82
|
-
}
|
|
83
|
-
return !0;
|
|
84
|
-
}, me = () => {
|
|
85
|
-
var e;
|
|
86
|
-
(e = $.value) == null || e.clearSelection();
|
|
87
|
-
}, ye = () => p.value, q = P(), ve = (e) => {
|
|
88
|
-
if (q.value = e, !!a.handleCurrentChange)
|
|
89
|
-
try {
|
|
90
|
-
c.value[a.handleCurrentChange](m, e);
|
|
91
|
-
} catch (t) {
|
|
92
|
-
console.error(t);
|
|
93
|
-
}
|
|
94
|
-
}, fe = () => q.value, Ce = () => {
|
|
95
|
-
var e;
|
|
96
|
-
return (e = $.value) == null ? void 0 : e.getSelectionRows();
|
|
97
|
-
}, ke = async () => !0, Se = (e, t) => {
|
|
98
|
-
var s;
|
|
99
|
-
const o = (s = a.topBtns) == null ? void 0 : s.find((z) => z.key === e);
|
|
100
|
-
o && (o.hidden = t);
|
|
101
|
-
}, ze = (e, t) => {
|
|
102
|
-
var s;
|
|
103
|
-
const o = (s = a.rowBtns) == null ? void 0 : s.find((z) => z.key === e);
|
|
104
|
-
o && (o.condition = !t);
|
|
105
|
-
}, J = P(0), be = (e) => {
|
|
106
|
-
J.value = e;
|
|
107
|
-
}, u = P({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), k = P({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), we = () => u.value, Pe = (e) => {
|
|
108
|
-
let t = !1;
|
|
109
|
-
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 };
|
|
110
|
-
}, Be = async () => {
|
|
111
|
-
if (u.value.pageNum = 1, !a.sizeChange)
|
|
112
|
-
return;
|
|
113
|
-
const e = oe.service({
|
|
114
|
-
target: `#${a.name}`,
|
|
115
|
-
text: "Loading..."
|
|
116
|
-
});
|
|
117
|
-
try {
|
|
118
|
-
await c.value[a.sizeChange](m, u.value), k.value.pageNum = u.value.pageNum, k.value.pageSize = u.value.pageSize;
|
|
119
|
-
} catch (t) {
|
|
120
|
-
console.error(t), u.value.pageNum = k.value.pageNum, u.value.pageSize = k.value.pageSize;
|
|
121
|
-
} finally {
|
|
122
|
-
e.close();
|
|
123
|
-
}
|
|
124
|
-
}, _e = async () => {
|
|
125
|
-
if (!a.pageChange)
|
|
126
|
-
return;
|
|
127
|
-
const e = oe.service({
|
|
128
|
-
target: `#${a.name}`,
|
|
129
|
-
text: "Loading..."
|
|
130
|
-
});
|
|
131
|
-
try {
|
|
132
|
-
await c.value[a.pageChange](m, u.value), k.value.pageNum = u.value.pageNum, k.value.pageSize = u.value.pageSize;
|
|
133
|
-
} catch (t) {
|
|
134
|
-
console.error(t), u.value.pageNum = k.value.pageNum, u.value.pageSize = k.value.pageSize;
|
|
135
|
-
} finally {
|
|
136
|
-
e.close();
|
|
137
|
-
}
|
|
138
|
-
}, Ne = (e) => {
|
|
139
|
-
var t;
|
|
140
|
-
(t = $.value) == null || t.setCurrentRow(e);
|
|
141
|
-
}, Re = (e) => {
|
|
142
|
-
var t;
|
|
143
|
-
(t = $.value) == null || t.setCurrentRow(p.value[e]);
|
|
144
|
-
}, Te = (e, t, o) => {
|
|
145
|
-
a.columns.forEach((s) => {
|
|
146
|
-
s.key === e && s[t] && (s[t] = o);
|
|
147
|
-
});
|
|
148
|
-
}, p = P([]), $e = (e) => {
|
|
149
|
-
p.value = e || [];
|
|
150
|
-
}, Me = (e = {}) => {
|
|
151
|
-
p.value.push(e);
|
|
152
|
-
}, De = (e) => {
|
|
153
|
-
e >= 0 && e < p.value.length && p.value.splice(e, 1);
|
|
154
|
-
}, Ae = async () => {
|
|
155
|
-
p.value = [...p.value];
|
|
156
|
-
}, O = Ve("rootRef"), Q = je({
|
|
157
|
-
...Ue(a),
|
|
158
|
-
setCellData: se,
|
|
159
|
-
clearSelection: me,
|
|
160
|
-
getData: ye,
|
|
161
|
-
getCurrentRow: fe,
|
|
162
|
-
getSelectedRows: Ce,
|
|
163
|
-
addRow: Me,
|
|
164
|
-
deleteRow: De,
|
|
165
|
-
refresh: Ae,
|
|
166
|
-
validate: ke,
|
|
167
|
-
setData: $e,
|
|
168
|
-
selectRow: Ne,
|
|
169
|
-
selectRowNum: Re,
|
|
170
|
-
setTotal: be,
|
|
171
|
-
getPagination: we,
|
|
172
|
-
setPagination: Pe,
|
|
173
|
-
setTopBtnHidden: Se,
|
|
174
|
-
setColVisible: ue,
|
|
175
|
-
setColumn: Te,
|
|
176
|
-
setRowsBtnHidden: ze,
|
|
177
|
-
rootRef: O,
|
|
178
|
-
type: "table"
|
|
179
|
-
}), w = (e, t) => {
|
|
180
|
-
const o = K ? K(e, t) : t[e.key];
|
|
181
|
-
if (!e.encrypted || !o)
|
|
182
|
-
return o;
|
|
183
|
-
const s = `${o}`;
|
|
184
|
-
return s.length <= 4 ? "*".repeat(s.length) : s.slice(0, -4) + "****";
|
|
185
|
-
}, Ie = (e, t) => {
|
|
186
|
-
if (!e.getTextStyle || !c.value)
|
|
187
|
-
return {};
|
|
188
|
-
try {
|
|
189
|
-
return c.value[e.getTextStyle](m, t, e);
|
|
190
|
-
} catch (o) {
|
|
191
|
-
console.error(o);
|
|
192
|
-
}
|
|
193
|
-
}, S = (e, t) => {
|
|
194
|
-
if (!(!e.getIconInfo || !c.value))
|
|
195
|
-
try {
|
|
196
|
-
return c.value[e.getIconInfo](m, t, e);
|
|
197
|
-
} catch (o) {
|
|
198
|
-
console.error(o);
|
|
199
|
-
}
|
|
200
|
-
}, V = (e, t) => {
|
|
201
|
-
if (!(!e.getIconPopoverContent || !c.value))
|
|
202
|
-
try {
|
|
203
|
-
return c.value[e.getIconPopoverContent](m, t, e);
|
|
204
|
-
} catch (o) {
|
|
205
|
-
console.error(o);
|
|
206
|
-
}
|
|
207
|
-
}, Le = (e, t) => {
|
|
208
|
-
if (!(!e.getCustomContent || !c.value))
|
|
209
|
-
try {
|
|
210
|
-
return c.value[e.getCustomContent](m, t, e);
|
|
211
|
-
} catch (o) {
|
|
212
|
-
console.error(o);
|
|
213
|
-
}
|
|
214
|
-
}, xe = U(() => !a.rowBtns || a.rowBtns.length === 0 || !p.value || p.value.length === 0 ? !1 : p.value.some(
|
|
215
|
-
(e) => {
|
|
216
|
-
var t;
|
|
217
|
-
return (t = a.rowBtns) == null ? void 0 : t.some((o) => o.condition === void 0 || o.condition === null ? !0 : x(o.condition, {
|
|
218
|
-
$row: e,
|
|
219
|
-
$globalParams: T()
|
|
220
|
-
}));
|
|
221
|
-
}
|
|
222
|
-
));
|
|
223
|
-
if (We(async () => {
|
|
224
|
-
if (!a.onMounted || !c.value)
|
|
225
|
-
return;
|
|
226
|
-
await Ge();
|
|
227
|
-
const e = a.onMounted;
|
|
228
|
-
try {
|
|
229
|
-
c.value[e](m);
|
|
230
|
-
} catch (t) {
|
|
231
|
-
console.error(t);
|
|
232
|
-
}
|
|
233
|
-
}), He(() => {
|
|
234
|
-
if (!a.onActivated || !c.value)
|
|
235
|
-
return;
|
|
236
|
-
const e = a.onActivated;
|
|
237
|
-
try {
|
|
238
|
-
c.value[e](m);
|
|
239
|
-
} catch (t) {
|
|
240
|
-
console.error(t);
|
|
241
|
-
}
|
|
242
|
-
}), a.name) {
|
|
243
|
-
const e = Oe(a.name, Q);
|
|
244
|
-
Ke(() => {
|
|
245
|
-
e();
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
return re(Q), (e, t) => {
|
|
249
|
-
const o = I("el-table-column"), s = I("el-popover"), z = I("el-tooltip"), X = I("el-button"), Fe = I("el-pagination");
|
|
250
|
-
return e.hidden ? f("", !0) : (r(), g("div", {
|
|
251
|
-
key: 0,
|
|
252
|
-
class: L(["table-render", { tableBorder: F.value === "table", [e.name]: !0 }]),
|
|
253
|
-
ref_key: "rootRef",
|
|
254
|
-
ref: O,
|
|
255
|
-
id: e.name
|
|
256
|
-
}, [
|
|
257
|
-
ee(b("div", null, [
|
|
258
|
-
y(h(Ze), {
|
|
259
|
-
ref_key: "tableRef",
|
|
260
|
-
ref: $,
|
|
261
|
-
data: p.value,
|
|
262
|
-
"highlight-current-row": "",
|
|
263
|
-
"row-key": e.rowKey,
|
|
264
|
-
stripe: e.stripe,
|
|
265
|
-
onRowClick: ce,
|
|
266
|
-
onRowDblclick: pe,
|
|
267
|
-
onSelectionChange: ge,
|
|
268
|
-
onCurrentChange: ve,
|
|
269
|
-
height: e.height
|
|
270
|
-
}, {
|
|
271
|
-
empty: d(() => [
|
|
272
|
-
b("div", tt, [
|
|
273
|
-
y(h(Qe), {
|
|
274
|
-
name: "tableEmpty",
|
|
275
|
-
style: { width: 56, height: 56 }
|
|
276
|
-
}),
|
|
277
|
-
t[2] || (t[2] = b("div", null, "No data available,please check", -1))
|
|
278
|
-
])
|
|
279
|
-
]),
|
|
280
|
-
default: d(() => [
|
|
281
|
-
e.multipleSelection ? (r(), v(o, {
|
|
282
|
-
key: 0,
|
|
283
|
-
type: "selection",
|
|
284
|
-
width: "55",
|
|
285
|
-
selectable: he
|
|
286
|
-
})) : f("", !0),
|
|
287
|
-
(r(!0), g(B, null, te(e.columns, (n) => (r(), g(B, {
|
|
288
|
-
key: n.key
|
|
289
|
-
}, [
|
|
290
|
-
n.hidden ? f("", !0) : (r(), v(o, {
|
|
291
|
-
key: 0,
|
|
292
|
-
prop: n.key,
|
|
293
|
-
"min-width": n.minWidth,
|
|
294
|
-
fixed: n.fixed || !1,
|
|
295
|
-
sortable: n.sortable ?? e.sortable ?? !0
|
|
296
|
-
}, {
|
|
297
|
-
header: d(() => [
|
|
298
|
-
b("div", {
|
|
299
|
-
class: "text-ellipsis",
|
|
300
|
-
title: n.label
|
|
301
|
-
}, N(n.label), 9, nt)
|
|
302
|
-
]),
|
|
303
|
-
default: d(({ row: i, $index: l }) => {
|
|
304
|
-
var M, _, Y, Z;
|
|
305
|
-
return [
|
|
306
|
-
n.type === "link" ? (r(), g("div", {
|
|
307
|
-
key: 0,
|
|
308
|
-
class: L(["text-ellipsis link-style", { "click-style": n.onClick }]),
|
|
309
|
-
title: w(n, i),
|
|
310
|
-
onClick: (C) => E(n, i, l, C)
|
|
311
|
-
}, N(w(n, i)), 11, at)) : n.type === "iconText" ? (r(), g("div", ot, [
|
|
312
|
-
n.iconPosition === "left" ? (r(), g(B, { key: 0 }, [
|
|
313
|
-
n.iconPopover && Array.isArray(V(n, i)) ? (r(), v(s, { key: 0 }, {
|
|
314
|
-
reference: d(() => {
|
|
315
|
-
var C, D;
|
|
316
|
-
return [
|
|
317
|
-
y(R, {
|
|
318
|
-
name: (C = S(n, i)) == null ? void 0 : C.name,
|
|
319
|
-
color: (D = S(n, i)) == null ? void 0 : D.color
|
|
320
|
-
}, null, 8, ["name", "color"])
|
|
321
|
-
];
|
|
322
|
-
}),
|
|
323
|
-
default: d(() => [
|
|
324
|
-
y(h(j), {
|
|
325
|
-
list: V(n, i) || []
|
|
326
|
-
}, null, 8, ["list"])
|
|
327
|
-
]),
|
|
328
|
-
_: 2
|
|
329
|
-
}, 1024)) : (r(), v(R, {
|
|
330
|
-
key: 1,
|
|
331
|
-
name: (M = S(n, i)) == null ? void 0 : M.name,
|
|
332
|
-
color: (_ = S(n, i)) == null ? void 0 : _.color
|
|
333
|
-
}, null, 8, ["name", "color"]))
|
|
334
|
-
], 64)) : f("", !0),
|
|
335
|
-
b("span", {
|
|
336
|
-
class: L(["text-ellipsis", { "click-style": n.onClick }]),
|
|
337
|
-
title: w(n, i),
|
|
338
|
-
onClick: (C) => E(n, i, l, C)
|
|
339
|
-
}, N(w(n, i)), 11, lt),
|
|
340
|
-
n.iconPosition === "right" ? (r(), g(B, { key: 1 }, [
|
|
341
|
-
n.iconPopover && Array.isArray(V(n, i)) ? (r(), v(s, { key: 0 }, {
|
|
342
|
-
reference: d(() => {
|
|
343
|
-
var C, D;
|
|
344
|
-
return [
|
|
345
|
-
y(R, {
|
|
346
|
-
name: (C = S(n, i)) == null ? void 0 : C.name,
|
|
347
|
-
color: (D = S(n, i)) == null ? void 0 : D.color
|
|
348
|
-
}, null, 8, ["name", "color"])
|
|
349
|
-
];
|
|
350
|
-
}),
|
|
351
|
-
default: d(() => [
|
|
352
|
-
y(h(j), {
|
|
353
|
-
list: V(n, i) || []
|
|
354
|
-
}, null, 8, ["list"])
|
|
355
|
-
]),
|
|
356
|
-
_: 2
|
|
357
|
-
}, 1024)) : (r(), v(R, {
|
|
358
|
-
key: 1,
|
|
359
|
-
name: (Y = S(n, i)) == null ? void 0 : Y.name,
|
|
360
|
-
color: (Z = S(n, i)) == null ? void 0 : Z.color
|
|
361
|
-
}, null, 8, ["name", "color"]))
|
|
362
|
-
], 64)) : f("", !0)
|
|
363
|
-
])) : n.type === "customContent" ? (r(), g("div", rt, [
|
|
364
|
-
y(h(j), {
|
|
365
|
-
list: Le(n, i) || []
|
|
366
|
-
}, null, 8, ["list"])
|
|
367
|
-
])) : (r(), g("div", {
|
|
368
|
-
key: 3,
|
|
369
|
-
class: L({ "text-ellipsis": !n.noEllipsis }),
|
|
370
|
-
title: w(n, i),
|
|
371
|
-
style: W(Ie(n, i))
|
|
372
|
-
}, N(w(n, i)), 15, it))
|
|
373
|
-
];
|
|
374
|
-
}),
|
|
375
|
-
_: 2
|
|
376
|
-
}, 1032, ["prop", "min-width", "fixed", "sortable"]))
|
|
377
|
-
], 64))), 128)),
|
|
378
|
-
xe.value && e.rowBtns && e.rowBtns.length > 0 ? (r(), v(o, {
|
|
379
|
-
key: 1,
|
|
380
|
-
label: e.rowBtnsLabel || "Action",
|
|
381
|
-
fixed: "right",
|
|
382
|
-
align: "left",
|
|
383
|
-
width: e.rowBtnsWidth || (e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100)
|
|
384
|
-
}, {
|
|
385
|
-
default: d(({ row: n, $index: i }) => [
|
|
386
|
-
b("div", st, [
|
|
387
|
-
(r(!0), g(B, null, te(e.rowBtns, (l) => {
|
|
388
|
-
var M;
|
|
389
|
-
return r(), g(B, {
|
|
390
|
-
key: l.key
|
|
391
|
-
}, [
|
|
392
|
-
l.component === "Popover" ? (r(), v(s, {
|
|
393
|
-
key: 0,
|
|
394
|
-
title: l.label,
|
|
395
|
-
trigger: "click",
|
|
396
|
-
"popper-class": "btn-popover",
|
|
397
|
-
width: (M = l.children) != null && M.length && l.children[0].width || 400
|
|
398
|
-
}, {
|
|
399
|
-
reference: d(() => [
|
|
400
|
-
l.condition === void 0 || l.condition === null || h(x)(l.condition, {
|
|
401
|
-
$row: n,
|
|
402
|
-
$globalParams: h(T)()
|
|
403
|
-
}) ? (r(), v(X, {
|
|
404
|
-
key: 0,
|
|
405
|
-
disabled: l.disabled,
|
|
406
|
-
link: "",
|
|
407
|
-
size: "small",
|
|
408
|
-
type: l.type,
|
|
409
|
-
onClick: ne((_) => E(l, n, i, _), ["stop"])
|
|
410
|
-
}, {
|
|
411
|
-
default: d(() => [
|
|
412
|
-
y(z, {
|
|
413
|
-
class: "box-item",
|
|
414
|
-
effect: "dark",
|
|
415
|
-
content: l.label,
|
|
416
|
-
placement: "top"
|
|
417
|
-
}, {
|
|
418
|
-
default: d(() => [
|
|
419
|
-
l.icon ? (r(), v(R, {
|
|
420
|
-
key: 0,
|
|
421
|
-
name: l.icon.name,
|
|
422
|
-
color: l.icon.color
|
|
423
|
-
}, null, 8, ["name", "color"])) : f("", !0)
|
|
424
|
-
]),
|
|
425
|
-
_: 2
|
|
426
|
-
}, 1032, ["content"]),
|
|
427
|
-
l.buttonText ? (r(), g("span", {
|
|
428
|
-
key: 0,
|
|
429
|
-
style: W({ color: l.buttonText.color, fontSize: "14px" })
|
|
430
|
-
}, N(h(x)(l.buttonText.text, {
|
|
431
|
-
$row: n,
|
|
432
|
-
$globalParams: h(T)()
|
|
433
|
-
})), 5)) : f("", !0)
|
|
434
|
-
]),
|
|
435
|
-
_: 2
|
|
436
|
-
}, 1032, ["disabled", "type", "onClick"])) : f("", !0)
|
|
437
|
-
]),
|
|
438
|
-
default: d(() => [
|
|
439
|
-
b("div", null, [
|
|
440
|
-
y(h(j), {
|
|
441
|
-
list: l.children
|
|
442
|
-
}, null, 8, ["list"])
|
|
443
|
-
])
|
|
444
|
-
]),
|
|
445
|
-
_: 2
|
|
446
|
-
}, 1032, ["title", "width"])) : (r(), g(B, { key: 1 }, [
|
|
447
|
-
l.condition === void 0 || l.condition === null || h(x)(l.condition, {
|
|
448
|
-
$row: n,
|
|
449
|
-
$globalParams: h(T)()
|
|
450
|
-
}) ? (r(), v(X, {
|
|
451
|
-
key: 0,
|
|
452
|
-
disabled: l.disabled,
|
|
453
|
-
link: "",
|
|
454
|
-
size: "small",
|
|
455
|
-
type: l.type,
|
|
456
|
-
onClick: ne((_) => E(l, n, i, _), ["stop"])
|
|
457
|
-
}, {
|
|
458
|
-
default: d(() => [
|
|
459
|
-
y(z, {
|
|
460
|
-
class: "box-item",
|
|
461
|
-
effect: "dark",
|
|
462
|
-
content: l.label,
|
|
463
|
-
placement: "top"
|
|
464
|
-
}, {
|
|
465
|
-
default: d(() => [
|
|
466
|
-
l.icon ? (r(), v(R, {
|
|
467
|
-
key: 0,
|
|
468
|
-
name: l.icon.name,
|
|
469
|
-
color: l.icon.color
|
|
470
|
-
}, null, 8, ["name", "color"])) : f("", !0)
|
|
471
|
-
]),
|
|
472
|
-
_: 2
|
|
473
|
-
}, 1032, ["content"]),
|
|
474
|
-
l.buttonText ? (r(), g("span", {
|
|
475
|
-
key: 0,
|
|
476
|
-
style: W({ color: l.buttonText.color, fontSize: "14px" })
|
|
477
|
-
}, N(h(x)(l.buttonText.text, {
|
|
478
|
-
$row: n,
|
|
479
|
-
$globalParams: h(T)()
|
|
480
|
-
})), 5)) : f("", !0)
|
|
481
|
-
]),
|
|
482
|
-
_: 2
|
|
483
|
-
}, 1032, ["disabled", "type", "onClick"])) : f("", !0)
|
|
484
|
-
], 64))
|
|
485
|
-
], 64);
|
|
486
|
-
}), 128))
|
|
487
|
-
])
|
|
488
|
-
]),
|
|
489
|
-
_: 1
|
|
490
|
-
}, 8, ["label", "width"])) : f("", !0)
|
|
491
|
-
]),
|
|
492
|
-
_: 1
|
|
493
|
-
}, 8, ["data", "row-key", "stripe", "height"])
|
|
494
|
-
], 512), [
|
|
495
|
-
[ae, F.value === "table"]
|
|
496
|
-
]),
|
|
497
|
-
ee(y(Xe, qe({ data: p.value }, a, { getColText: w }), null, 16, ["data"]), [
|
|
498
|
-
[ae, F.value === "card"]
|
|
499
|
-
]),
|
|
500
|
-
b("div", {
|
|
501
|
-
class: L(["pagination-wrapper", {
|
|
502
|
-
hidePagination: (e.hiddenPagination || p.value.length === 0) && !e.height,
|
|
503
|
-
transparentPagination: (e.hiddenPagination || p.value.length === 0) && e.height,
|
|
504
|
-
cardlistPadding: F.value === "card"
|
|
505
|
-
}])
|
|
506
|
-
}, [
|
|
507
|
-
y(Fe, {
|
|
508
|
-
layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
|
|
509
|
-
total: J.value,
|
|
510
|
-
"page-sizes": e.pageSizes || [5, 6, 10, 20, 30, 40],
|
|
511
|
-
"default-page-size": e.defaultPageSize,
|
|
512
|
-
"current-page": u.value.pageNum,
|
|
513
|
-
"onUpdate:currentPage": t[0] || (t[0] = (n) => u.value.pageNum = n),
|
|
514
|
-
"page-size": u.value.pageSize,
|
|
515
|
-
"onUpdate:pageSize": t[1] || (t[1] = (n) => u.value.pageSize = n),
|
|
516
|
-
"pager-count": Number(e.pagerCount) || 5,
|
|
517
|
-
onSizeChange: Be,
|
|
518
|
-
onCurrentChange: _e
|
|
519
|
-
}, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
|
|
520
|
-
], 2)
|
|
521
|
-
], 10, et));
|
|
522
|
-
};
|
|
523
|
-
}
|
|
524
|
-
}), gt = /* @__PURE__ */ Ye(ut, [["__scopeId", "data-v-7d65840c"]]);
|
|
525
|
-
export {
|
|
526
|
-
gt as default
|
|
527
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { defineComponent as g, ref as y, computed as V, watch as k, onMounted as x, resolveComponent as c, openBlock as o, createBlock as d, mergeProps as u, withCtx as r, createElementBlock as i, Fragment as B, renderList as K, createElementVNode as p, toDisplayString as M, normalizeClass as T, createCommentVNode as E, createVNode as I, unref as N } from "vue";
|
|
2
|
-
import { c as w, b as $, _ as z } from "./index-BMlHLc-c.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const A = { class: "tab-label" }, D = { class: "tab-label-text" }, F = /* @__PURE__ */ g({
|
|
5
|
-
__name: "Tabs",
|
|
6
|
-
props: {
|
|
7
|
-
children: {},
|
|
8
|
-
defaultKey: {},
|
|
9
|
-
tabChange: {}
|
|
10
|
-
},
|
|
11
|
-
setup(f) {
|
|
12
|
-
const a = f, l = y(""), h = V(() => {
|
|
13
|
-
const e = a.children.findIndex((t) => t.name === l.value);
|
|
14
|
-
return e - 1 >= 0 ? e - 1 : null;
|
|
15
|
-
}), { ruleModule: m, pageMethodMap: _ } = w();
|
|
16
|
-
function b(e) {
|
|
17
|
-
if (a.tabChange)
|
|
18
|
-
try {
|
|
19
|
-
m[a.tabChange](_, e);
|
|
20
|
-
} catch (t) {
|
|
21
|
-
console.error(t);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return k(
|
|
25
|
-
() => a.children,
|
|
26
|
-
() => {
|
|
27
|
-
a.children.forEach((e) => {
|
|
28
|
-
e.children || (e.children = []);
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
), x(() => {
|
|
32
|
-
a.defaultKey && (l.value = a.defaultKey);
|
|
33
|
-
}), (e, t) => {
|
|
34
|
-
const v = c("el-tab-pane"), C = c("el-tabs");
|
|
35
|
-
return o(), d(C, u(e.$attrs, {
|
|
36
|
-
modelValue: l.value,
|
|
37
|
-
"onUpdate:modelValue": t[0] || (t[0] = (n) => l.value = n),
|
|
38
|
-
class: "form-item-tabs",
|
|
39
|
-
onTabChange: b
|
|
40
|
-
}), {
|
|
41
|
-
default: r(() => [
|
|
42
|
-
(o(!0), i(B, null, K(e.children, (n, s) => (o(), d(v, u({
|
|
43
|
-
key: n.name,
|
|
44
|
-
ref_for: !0
|
|
45
|
-
}, n), {
|
|
46
|
-
label: r(() => [
|
|
47
|
-
p("div", A, [
|
|
48
|
-
p("span", D, M(n.label), 1),
|
|
49
|
-
s !== e.children.length - 1 ? (o(), i("span", {
|
|
50
|
-
key: 0,
|
|
51
|
-
class: T(["divider", {
|
|
52
|
-
"divider-hidden": l.value === n.name || h.value === s
|
|
53
|
-
}])
|
|
54
|
-
}, null, 2)) : E("", !0)
|
|
55
|
-
])
|
|
56
|
-
]),
|
|
57
|
-
default: r(() => [
|
|
58
|
-
I(N($), {
|
|
59
|
-
list: n.children
|
|
60
|
-
}, null, 8, ["list"])
|
|
61
|
-
]),
|
|
62
|
-
_: 2
|
|
63
|
-
}, 1040))), 128))
|
|
64
|
-
]),
|
|
65
|
-
_: 1
|
|
66
|
-
}, 16, ["modelValue"]);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}), S = /* @__PURE__ */ z(F, [["__scopeId", "data-v-26ce9c7b"]]);
|
|
70
|
-
export {
|
|
71
|
-
S as default
|
|
72
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, mergeModels as i, useModel as _, computed as f, resolveComponent as v, openBlock as a, createElementBlock as d, createElementVNode as y, toDisplayString as m, createBlock as V, mergeProps as k } from "vue";
|
|
2
|
-
import { u as B, _ as h } from "./index-BMlHLc-c.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const x = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "special-read"
|
|
7
|
-
}, I = { class: "special-read-value" }, M = { key: 1 }, g = /* @__PURE__ */ u({
|
|
8
|
-
__name: "TextArea",
|
|
9
|
-
props: /* @__PURE__ */ i({
|
|
10
|
-
name: {},
|
|
11
|
-
read: { type: Boolean },
|
|
12
|
-
specialRead: { type: Boolean }
|
|
13
|
-
}, {
|
|
14
|
-
modelValue: {},
|
|
15
|
-
modelModifiers: {}
|
|
16
|
-
}),
|
|
17
|
-
emits: ["update:modelValue"],
|
|
18
|
-
setup(t) {
|
|
19
|
-
const e = _(t, "modelValue"), s = t, o = B(), r = f(() => s.read || o.schema.read);
|
|
20
|
-
return o.findItemByName(o.schema.items, s.name), (l, n) => {
|
|
21
|
-
const c = v("el-input");
|
|
22
|
-
return l.specialRead ? (a(), d("div", x, [
|
|
23
|
-
y("div", I, m(e.value || "--"), 1)
|
|
24
|
-
])) : r.value ? (a(), d("div", M, m(e.value || "--"), 1)) : (a(), V(c, k({ key: 2 }, l.$attrs, {
|
|
25
|
-
modelValue: e.value,
|
|
26
|
-
"onUpdate:modelValue": n[0] || (n[0] = (p) => e.value = p),
|
|
27
|
-
type: "textarea"
|
|
28
|
-
}), null, 16, ["modelValue"]));
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}), E = /* @__PURE__ */ h(g, [["__scopeId", "data-v-f3e7ef56"]]);
|
|
32
|
-
export {
|
|
33
|
-
E as default
|
|
34
|
-
};
|