asiaint-lowcode 3.1.13 → 3.1.15
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.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +146 -146
- package/dist/lazy/Card-vmD3I9-j.js +114 -0
- package/dist/lazy/{Cascader-DqjS19FS.js → Cascader-hFRL1FW3.js} +1 -1
- package/dist/lazy/{Checkbox-Bjwn_9Sk.js → Checkbox-D2TDj_TR.js} +2 -2
- package/dist/lazy/{Collapse-CggqtpyZ.js → Collapse-DG7__RLN.js} +1 -1
- package/dist/lazy/{Component-DRo28JGo.js → Component-B1h0Pd2f.js} +1 -1
- package/dist/lazy/{Component-gjivf6-3.js → Component-Bd4HTi5E.js} +1 -1
- package/dist/lazy/{Component-DRCOaqRw.js → Component-BhShPxLr.js} +1 -1
- package/dist/lazy/{Component-DhckZre2.js → Component-C9vgVXl1.js} +1 -1
- package/dist/lazy/{Component-sJXzY0GZ.js → Component-s1QCgYVc.js} +1 -1
- package/dist/lazy/{Component-D04uUKKP.js → Component-uGBpf8xa.js} +1 -1
- package/dist/lazy/{CurdCard-OauJU94C.js → CurdCard-DOvIo76P.js} +1 -1
- package/dist/lazy/{Custom-Ckhj-l7m.js → Custom-Cnt4jYHK.js} +1 -1
- package/dist/lazy/{DatePicker-Bb8L5SLT.js → DatePicker-ZjBTIbyE.js} +1 -1
- package/dist/lazy/{DragList-bGBTK4P8.js → DragList-D2uAhL8y.js} +1 -1
- package/dist/lazy/FilterSearch-fZMKLSaX.js +108 -0
- package/dist/lazy/{FormList-Cyl7VsIi.js → FormList-DWjzeNJW.js} +1 -1
- package/dist/lazy/{Grid-BwS6pSTs.js → Grid-BS-XRljD.js} +1 -1
- package/dist/lazy/{Inline-DXGzDS4z.js → Inline-CW0KfFbM.js} +1 -1
- package/dist/lazy/{JsonEdit-Dp2tnIQo.js → JsonEdit-BDef953Z.js} +1 -1
- package/dist/lazy/{LogList-DxsTUwbL.js → LogList-COTdAxNy.js} +1 -1
- package/dist/lazy/{ObjGroup-B-9pX1xQ.js → ObjGroup-B6LsHiHA.js} +1 -1
- package/dist/lazy/{OfferDetails-IUMRtdhg.js → OfferDetails-NaIOuP9k.js} +1 -1
- package/dist/lazy/{Pagination-BiZil-5r.js → Pagination-BW9vH1f3.js} +1 -1
- package/dist/lazy/{Progress-50n0oo7L.js → Progress-KE-DI0NW.js} +1 -1
- package/dist/lazy/{Radio-S-MFhpUk.js → Radio-BgCNDKRx.js} +2 -2
- package/dist/lazy/{SearchSelect-0WK-bM_-.js → SearchSelect-CWbTKAII.js} +2 -2
- package/dist/lazy/{Select-CZLGF2j5.js → Select-Dt4VSGIj.js} +2 -2
- package/dist/lazy/Table-3Au067wZ.js +514 -0
- package/dist/lazy/{Tabs-CakSe4ME.js → Tabs-CsB78dFG.js} +1 -1
- package/dist/lazy/{Wrapper-BuGoV8OT.js → Wrapper-pbe-a8HN.js} +1 -1
- package/dist/lazy/{index-PbMyf01b.js → index-DVCkxMS8.js} +5713 -5690
- package/dist/lazy/useSelect-7MjBwpDB.js +78 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Card-PgW4DysW.js +0 -104
- package/dist/lazy/Table-CIAv5GJ3.js +0 -514
- package/dist/lazy/useSelect-Ev8bzJPh.js +0 -77
package/package.json
CHANGED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { defineComponent as B, ref as g, inject as h, resolveComponent as d, openBlock as s, createBlock as i, mergeProps as M, withCtx as c, createElementVNode as o, createElementBlock as n, createVNode as t, unref as p, normalizeClass as $, createCommentVNode as I, toDisplayString as v, Fragment as u, renderList as C, withDirectives as E, vShow as V } from "vue";
|
|
2
|
-
import { _ as D, I as k, B as F, a as N, b as S } from "./index-PbMyf01b.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const j = { class: "card-header" }, H = { class: "card-btns" }, L = { class: "card-sub-header" }, P = /* @__PURE__ */ B({
|
|
5
|
-
__name: "Card",
|
|
6
|
-
props: {
|
|
7
|
-
children: {},
|
|
8
|
-
collapsible: { type: Boolean },
|
|
9
|
-
header: {},
|
|
10
|
-
btns: {},
|
|
11
|
-
extraIcons: {},
|
|
12
|
-
shadowless: { type: Boolean },
|
|
13
|
-
subHeaders: {}
|
|
14
|
-
},
|
|
15
|
-
setup(R) {
|
|
16
|
-
const a = g(!1), m = h("ruleModule", void 0), f = h("pageMethodMap", {}), _ = (l) => {
|
|
17
|
-
if (l && m)
|
|
18
|
-
try {
|
|
19
|
-
m[l](f);
|
|
20
|
-
} catch (r) {
|
|
21
|
-
console.error(r);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
return (l, r) => {
|
|
25
|
-
const b = d("el-tooltip"), w = d("el-collapse-transition"), y = d("ElCard");
|
|
26
|
-
return s(), i(y, M(l.$attrs, {
|
|
27
|
-
class: ["crm-card", { collapsed: a.value, shadowless: l.shadowless }],
|
|
28
|
-
shadow: "never"
|
|
29
|
-
}), {
|
|
30
|
-
header: c(() => [
|
|
31
|
-
o("div", j, [
|
|
32
|
-
l.collapsible ? (s(), n("div", {
|
|
33
|
-
key: 0,
|
|
34
|
-
class: "icon-wrapper",
|
|
35
|
-
onClick: r[0] || (r[0] = (e) => a.value = !a.value)
|
|
36
|
-
}, [
|
|
37
|
-
t(p(D), {
|
|
38
|
-
name: "dropdown",
|
|
39
|
-
class: $(["dropdown-icon", { "is-collapsed": a.value }])
|
|
40
|
-
}, null, 8, ["class"])
|
|
41
|
-
])) : I("", !0),
|
|
42
|
-
o("span", null, v(l.header), 1),
|
|
43
|
-
(s(!0), n(u, null, C(l.extraIcons, (e) => (s(), n(u, {
|
|
44
|
-
key: e.name
|
|
45
|
-
}, [
|
|
46
|
-
e.tips ? (s(), i(b, {
|
|
47
|
-
key: 0,
|
|
48
|
-
content: e.tips,
|
|
49
|
-
placement: "right"
|
|
50
|
-
}, {
|
|
51
|
-
default: c(() => [
|
|
52
|
-
t(k, {
|
|
53
|
-
class: "extra-icon",
|
|
54
|
-
name: e.name,
|
|
55
|
-
color: e.color,
|
|
56
|
-
size: e.size || "small",
|
|
57
|
-
onClick: (z) => _(e.onClick)
|
|
58
|
-
}, null, 8, ["name", "color", "size", "onClick"])
|
|
59
|
-
]),
|
|
60
|
-
_: 2
|
|
61
|
-
}, 1032, ["content"])) : (s(), i(k, {
|
|
62
|
-
key: 1,
|
|
63
|
-
class: "extra-icon",
|
|
64
|
-
name: e.name,
|
|
65
|
-
color: e.color,
|
|
66
|
-
size: e.size || "small",
|
|
67
|
-
onClick: (z) => _(e.onClick)
|
|
68
|
-
}, null, 8, ["name", "color", "size", "onClick"]))
|
|
69
|
-
], 64))), 128)),
|
|
70
|
-
o("div", H, [
|
|
71
|
-
t(p(F), {
|
|
72
|
-
btns: l.btns || []
|
|
73
|
-
}, null, 8, ["btns"])
|
|
74
|
-
]),
|
|
75
|
-
o("div", L, [
|
|
76
|
-
(s(!0), n(u, null, C(l.subHeaders, (e) => (s(), n("div", {
|
|
77
|
-
key: e,
|
|
78
|
-
class: "card-sub-header-item"
|
|
79
|
-
}, [
|
|
80
|
-
o("span", null, v(e), 1)
|
|
81
|
-
]))), 128))
|
|
82
|
-
])
|
|
83
|
-
])
|
|
84
|
-
]),
|
|
85
|
-
default: c(() => [
|
|
86
|
-
t(w, null, {
|
|
87
|
-
default: c(() => [
|
|
88
|
-
E(o("div", null, [
|
|
89
|
-
t(p(N), { list: l.children }, null, 8, ["list"])
|
|
90
|
-
], 512), [
|
|
91
|
-
[V, !a.value]
|
|
92
|
-
])
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
})
|
|
96
|
-
]),
|
|
97
|
-
_: 1
|
|
98
|
-
}, 16, ["class"]);
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}), G = /* @__PURE__ */ S(P, [["__scopeId", "data-v-37d0cc4b"]]);
|
|
102
|
-
export {
|
|
103
|
-
G as default
|
|
104
|
-
};
|
|
@@ -1,514 +0,0 @@
|
|
|
1
|
-
import { defineComponent as Le, computed as F, inject as M, ref as B, useTemplateRef as Fe, readonly as Ee, toRefs as Ve, onMounted as je, nextTick as Ue, onActivated as We, onUnmounted as Ge, resolveComponent as D, openBlock as r, createElementBlock as g, normalizeClass as E, withDirectives as Z, createElementVNode as w, createVNode as v, unref as h, withCtx as d, createBlock as m, createCommentVNode as f, Fragment as P, renderList as ee, toDisplayString as _, normalizeStyle as V, withModifiers as te, vShow as ne, mergeProps as He } from "vue";
|
|
2
|
-
import { $ as Ke, h as x, j as qe, _ as Je, I as R, a as j, C as Oe, b as Qe } from "./index-PbMyf01b.js";
|
|
3
|
-
import { ElTable as Xe, ElLoading as oe } from "element-plus";
|
|
4
|
-
const Ye = ["id"], Ze = { class: "empty-content" }, et = ["title"], tt = ["title", "onClick"], nt = {
|
|
5
|
-
key: 1,
|
|
6
|
-
class: "icon-text-wrapper"
|
|
7
|
-
}, ot = ["title"], at = ["title"], lt = { class: "row-btn-wrapper" }, rt = /* @__PURE__ */ Le({
|
|
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
|
-
name: {},
|
|
43
|
-
gridColumns: {}
|
|
44
|
-
},
|
|
45
|
-
setup(ae, { expose: le }) {
|
|
46
|
-
const a = ae, A = F(() => a.displayType ? a.displayType : a.typeSwitch ? "card" : "table"), re = M("ruleModule", void 0), U = M("ruleMap", void 0), u = F(() => a.rulePath && U[a.rulePath] ? U[a.rulePath] : re), y = M("pageMethodMap", {}), T = M("getGlobalParams", () => {
|
|
47
|
-
}), W = M(Ke), G = W ? W.translateFn : null, N = B(), ie = (e, t, o) => {
|
|
48
|
-
c.value[e] && (c.value[e][t] = o);
|
|
49
|
-
}, se = (e, t) => {
|
|
50
|
-
const o = a.columns.find((i) => i.key === e);
|
|
51
|
-
o && (o.hidden = !t);
|
|
52
|
-
}, L = (e, t, o, i) => {
|
|
53
|
-
try {
|
|
54
|
-
u.value[e.onClick](y, t, o, i), i == null || i.stopPropagation();
|
|
55
|
-
} catch (C) {
|
|
56
|
-
console.error(C);
|
|
57
|
-
}
|
|
58
|
-
}, ue = (e) => {
|
|
59
|
-
if (a.rowClick)
|
|
60
|
-
try {
|
|
61
|
-
u.value[a.rowClick](y, e);
|
|
62
|
-
} catch (t) {
|
|
63
|
-
console.error(t);
|
|
64
|
-
}
|
|
65
|
-
}, ce = (e) => {
|
|
66
|
-
if (a.rowDbClick)
|
|
67
|
-
try {
|
|
68
|
-
u.value[a.rowDbClick](y, e);
|
|
69
|
-
} catch (t) {
|
|
70
|
-
console.error(t);
|
|
71
|
-
}
|
|
72
|
-
}, pe = B([]), de = (e) => {
|
|
73
|
-
pe.value = e;
|
|
74
|
-
}, ge = (e, t) => {
|
|
75
|
-
if (!a.selectable)
|
|
76
|
-
return !0;
|
|
77
|
-
try {
|
|
78
|
-
return u.value[a.selectable](y, e, t);
|
|
79
|
-
} catch (o) {
|
|
80
|
-
console.error(o);
|
|
81
|
-
}
|
|
82
|
-
return !0;
|
|
83
|
-
}, he = () => {
|
|
84
|
-
var e;
|
|
85
|
-
(e = N.value) == null || e.clearSelection();
|
|
86
|
-
}, ye = () => c.value, H = B(), me = (e) => {
|
|
87
|
-
if (H.value = e, !!a.handleCurrentChange)
|
|
88
|
-
try {
|
|
89
|
-
u.value[a.handleCurrentChange](y, e);
|
|
90
|
-
} catch (t) {
|
|
91
|
-
console.error(t);
|
|
92
|
-
}
|
|
93
|
-
}, fe = () => H.value, ve = () => {
|
|
94
|
-
var e;
|
|
95
|
-
return (e = N.value) == null ? void 0 : e.getSelectionRows();
|
|
96
|
-
}, ke = async () => !0, Ce = (e, t) => {
|
|
97
|
-
var i;
|
|
98
|
-
const o = (i = a.topBtns) == null ? void 0 : i.find((C) => C.key === e);
|
|
99
|
-
o && (o.hidden = t);
|
|
100
|
-
}, we = (e, t) => {
|
|
101
|
-
var i;
|
|
102
|
-
const o = (i = a.rowBtns) == null ? void 0 : i.find((C) => C.key === e);
|
|
103
|
-
o && (o.condition = !t);
|
|
104
|
-
}, K = B(0), be = (e) => {
|
|
105
|
-
K.value = e;
|
|
106
|
-
}, p = B({ pageNum: 1, pageSize: a.defaultPageSize || 5 }), Se = () => p.value, Pe = (e) => {
|
|
107
|
-
let t = !1;
|
|
108
|
-
return e.pageNum !== void 0 && e.pageNum > -1 && (p.value.pageNum !== e.pageNum && (t = !0), p.value.pageNum = e.pageNum), e.pageSize !== void 0 && e.pageSize > -1 && (p.value.pageSize !== e.pageSize && (t = !0), p.value.pageSize = e.pageSize), { pagination: p.value, isChange: t };
|
|
109
|
-
}, ze = async (e) => {
|
|
110
|
-
if (p.value.pageNum = 1, p.value.pageSize = e, !a.sizeChange)
|
|
111
|
-
return;
|
|
112
|
-
const t = oe.service({
|
|
113
|
-
target: `#${a.name}`,
|
|
114
|
-
text: "Loading...",
|
|
115
|
-
body: !0
|
|
116
|
-
});
|
|
117
|
-
try {
|
|
118
|
-
await u.value[a.sizeChange](y, p.value);
|
|
119
|
-
} catch (o) {
|
|
120
|
-
console.error(o);
|
|
121
|
-
} finally {
|
|
122
|
-
t.close();
|
|
123
|
-
}
|
|
124
|
-
}, Be = async (e) => {
|
|
125
|
-
if (p.value.pageNum = e, !a.pageChange)
|
|
126
|
-
return;
|
|
127
|
-
const t = oe.service({
|
|
128
|
-
target: `#${a.name}`,
|
|
129
|
-
text: "Loading...",
|
|
130
|
-
body: !0
|
|
131
|
-
});
|
|
132
|
-
try {
|
|
133
|
-
await u.value[a.pageChange](y, p.value);
|
|
134
|
-
} catch (o) {
|
|
135
|
-
console.error(o);
|
|
136
|
-
} finally {
|
|
137
|
-
t.close();
|
|
138
|
-
}
|
|
139
|
-
}, _e = (e) => {
|
|
140
|
-
var t;
|
|
141
|
-
(t = N.value) == null || t.setCurrentRow(e);
|
|
142
|
-
}, Re = (e) => {
|
|
143
|
-
var t;
|
|
144
|
-
(t = N.value) == null || t.setCurrentRow(c.value[e]);
|
|
145
|
-
}, Te = (e, t, o) => {
|
|
146
|
-
a.columns.forEach((i) => {
|
|
147
|
-
i.key === e && i[t] && (i[t] = o);
|
|
148
|
-
});
|
|
149
|
-
}, c = B([]), Ne = (e) => {
|
|
150
|
-
c.value = e;
|
|
151
|
-
}, $e = (e = {}) => {
|
|
152
|
-
c.value.push(e);
|
|
153
|
-
}, Me = (e) => {
|
|
154
|
-
e >= 0 && e < c.value.length && c.value.splice(e, 1);
|
|
155
|
-
}, De = async () => {
|
|
156
|
-
c.value = [...c.value];
|
|
157
|
-
}, q = Fe("rootRef"), J = Ee({
|
|
158
|
-
...Ve(a),
|
|
159
|
-
setCellData: ie,
|
|
160
|
-
clearSelection: he,
|
|
161
|
-
getData: ye,
|
|
162
|
-
getCurrentRow: fe,
|
|
163
|
-
getSelectedRows: ve,
|
|
164
|
-
addRow: $e,
|
|
165
|
-
deleteRow: Me,
|
|
166
|
-
refresh: De,
|
|
167
|
-
validate: ke,
|
|
168
|
-
setData: Ne,
|
|
169
|
-
selectRow: _e,
|
|
170
|
-
selectRowNum: Re,
|
|
171
|
-
setTotal: be,
|
|
172
|
-
getPagination: Se,
|
|
173
|
-
setPagination: Pe,
|
|
174
|
-
setTopBtnHidden: Ce,
|
|
175
|
-
setColVisible: se,
|
|
176
|
-
setColumn: Te,
|
|
177
|
-
setRowsBtnHidden: we,
|
|
178
|
-
rootRef: q,
|
|
179
|
-
type: "table"
|
|
180
|
-
}), b = (e, t) => {
|
|
181
|
-
const o = G ? G(e.key, t) : t[e.key];
|
|
182
|
-
if (!e.encrypted || !o)
|
|
183
|
-
return o;
|
|
184
|
-
const i = `${o}`;
|
|
185
|
-
return i.length <= 4 ? "*".repeat(i.length) : i.slice(0, -4) + "****";
|
|
186
|
-
}, xe = (e, t) => {
|
|
187
|
-
if (!e.getTextStyle || !u.value)
|
|
188
|
-
return {};
|
|
189
|
-
try {
|
|
190
|
-
return u.value[e.getTextStyle](y, t, e);
|
|
191
|
-
} catch (o) {
|
|
192
|
-
console.error(o);
|
|
193
|
-
}
|
|
194
|
-
}, k = (e, t) => {
|
|
195
|
-
if (!(!e.getIconInfo || !u.value))
|
|
196
|
-
try {
|
|
197
|
-
return u.value[e.getIconInfo](y, t, e);
|
|
198
|
-
} catch (o) {
|
|
199
|
-
console.error(o);
|
|
200
|
-
}
|
|
201
|
-
}, I = (e, t) => {
|
|
202
|
-
if (!(!e.getIconPopoverContent || !u.value))
|
|
203
|
-
try {
|
|
204
|
-
return u.value[e.getIconPopoverContent](y, t, e);
|
|
205
|
-
} catch (o) {
|
|
206
|
-
console.error(o);
|
|
207
|
-
}
|
|
208
|
-
}, Ae = F(() => !a.rowBtns || a.rowBtns.length === 0 || !c.value || c.value.length === 0 ? !1 : c.value.some(
|
|
209
|
-
(e) => {
|
|
210
|
-
var t;
|
|
211
|
-
return (t = a.rowBtns) == null ? void 0 : t.some((o) => o.condition === void 0 || o.condition === null ? !0 : x(o.condition, {
|
|
212
|
-
$row: e,
|
|
213
|
-
$globalParams: T()
|
|
214
|
-
}));
|
|
215
|
-
}
|
|
216
|
-
));
|
|
217
|
-
if (je(async () => {
|
|
218
|
-
if (!a.onMounted || !u.value)
|
|
219
|
-
return;
|
|
220
|
-
await Ue();
|
|
221
|
-
const e = a.onMounted;
|
|
222
|
-
try {
|
|
223
|
-
u.value[e](y);
|
|
224
|
-
} catch (t) {
|
|
225
|
-
console.error(t);
|
|
226
|
-
}
|
|
227
|
-
}), We(() => {
|
|
228
|
-
if (!a.onActivated || !u.value)
|
|
229
|
-
return;
|
|
230
|
-
const e = a.onActivated;
|
|
231
|
-
try {
|
|
232
|
-
u.value[e](y);
|
|
233
|
-
} catch (t) {
|
|
234
|
-
console.error(t);
|
|
235
|
-
}
|
|
236
|
-
}), a.name) {
|
|
237
|
-
const e = qe(a.name, J);
|
|
238
|
-
Ge(() => {
|
|
239
|
-
e();
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
return le(J), (e, t) => {
|
|
243
|
-
const o = D("el-table-column"), i = D("el-popover"), C = D("el-tooltip"), O = D("el-button"), Ie = D("el-pagination");
|
|
244
|
-
return e.hidden ? f("", !0) : (r(), g("div", {
|
|
245
|
-
key: 0,
|
|
246
|
-
class: E(["table-render", { tableBorder: A.value === "table" }]),
|
|
247
|
-
ref_key: "rootRef",
|
|
248
|
-
ref: q,
|
|
249
|
-
id: e.name
|
|
250
|
-
}, [
|
|
251
|
-
Z(w("div", null, [
|
|
252
|
-
v(h(Xe), {
|
|
253
|
-
ref_key: "tableRef",
|
|
254
|
-
ref: N,
|
|
255
|
-
data: c.value,
|
|
256
|
-
"highlight-current-row": "",
|
|
257
|
-
"row-key": e.rowKey,
|
|
258
|
-
stripe: e.stripe,
|
|
259
|
-
onRowClick: ue,
|
|
260
|
-
onRowDblclick: ce,
|
|
261
|
-
onSelectionChange: de,
|
|
262
|
-
onCurrentChange: me,
|
|
263
|
-
height: e.height
|
|
264
|
-
}, {
|
|
265
|
-
empty: d(() => [
|
|
266
|
-
w("div", Ze, [
|
|
267
|
-
v(h(Je), {
|
|
268
|
-
name: "tableEmpty",
|
|
269
|
-
style: { width: 56, height: 56 }
|
|
270
|
-
}),
|
|
271
|
-
t[2] || (t[2] = w("div", null, "No data available,please check", -1))
|
|
272
|
-
])
|
|
273
|
-
]),
|
|
274
|
-
default: d(() => [
|
|
275
|
-
e.multipleSelection ? (r(), m(o, {
|
|
276
|
-
key: 0,
|
|
277
|
-
type: "selection",
|
|
278
|
-
width: "55",
|
|
279
|
-
selectable: ge
|
|
280
|
-
})) : f("", !0),
|
|
281
|
-
(r(!0), g(P, null, ee(e.columns, (n) => (r(), g(P, {
|
|
282
|
-
key: n.key
|
|
283
|
-
}, [
|
|
284
|
-
n.hidden ? f("", !0) : (r(), m(o, {
|
|
285
|
-
key: 0,
|
|
286
|
-
prop: n.key,
|
|
287
|
-
"min-width": n.minWidth,
|
|
288
|
-
fixed: n.fixed || !1
|
|
289
|
-
}, {
|
|
290
|
-
header: d(() => [
|
|
291
|
-
w("div", {
|
|
292
|
-
class: "text-ellipsis",
|
|
293
|
-
title: n.label
|
|
294
|
-
}, _(n.label), 9, et)
|
|
295
|
-
]),
|
|
296
|
-
default: d(({ row: s, $index: l }) => {
|
|
297
|
-
var z, Q, X, Y;
|
|
298
|
-
return [
|
|
299
|
-
n.type === "link" ? (r(), g("div", {
|
|
300
|
-
key: 0,
|
|
301
|
-
class: E(["text-ellipsis link-style", { "click-style": n.onClick }]),
|
|
302
|
-
title: b(n, s),
|
|
303
|
-
onClick: (S) => L(n, s, l, S)
|
|
304
|
-
}, _(b(n, s)), 11, tt)) : n.type === "iconText" ? (r(), g("div", nt, [
|
|
305
|
-
n.iconPosition === "left" ? (r(), g(P, { key: 0 }, [
|
|
306
|
-
n.iconPopover && Array.isArray(I(n, s)) ? (r(), m(i, { key: 0 }, {
|
|
307
|
-
reference: d(() => {
|
|
308
|
-
var S, $;
|
|
309
|
-
return [
|
|
310
|
-
v(R, {
|
|
311
|
-
name: (S = k(n, s)) == null ? void 0 : S.name,
|
|
312
|
-
color: ($ = k(n, s)) == null ? void 0 : $.color
|
|
313
|
-
}, null, 8, ["name", "color"])
|
|
314
|
-
];
|
|
315
|
-
}),
|
|
316
|
-
default: d(() => [
|
|
317
|
-
v(h(j), {
|
|
318
|
-
list: I(n, s) || []
|
|
319
|
-
}, null, 8, ["list"])
|
|
320
|
-
]),
|
|
321
|
-
_: 2
|
|
322
|
-
}, 1024)) : (r(), m(R, {
|
|
323
|
-
key: 1,
|
|
324
|
-
name: (z = k(n, s)) == null ? void 0 : z.name,
|
|
325
|
-
color: (Q = k(n, s)) == null ? void 0 : Q.color
|
|
326
|
-
}, null, 8, ["name", "color"]))
|
|
327
|
-
], 64)) : f("", !0),
|
|
328
|
-
w("span", {
|
|
329
|
-
class: "text-ellipsis",
|
|
330
|
-
title: b(n, s)
|
|
331
|
-
}, _(b(n, s)), 9, ot),
|
|
332
|
-
n.iconPosition === "right" ? (r(), g(P, { key: 1 }, [
|
|
333
|
-
n.iconPopover && Array.isArray(I(n, s)) ? (r(), m(i, { key: 0 }, {
|
|
334
|
-
reference: d(() => {
|
|
335
|
-
var S, $;
|
|
336
|
-
return [
|
|
337
|
-
v(R, {
|
|
338
|
-
name: (S = k(n, s)) == null ? void 0 : S.name,
|
|
339
|
-
color: ($ = k(n, s)) == null ? void 0 : $.color
|
|
340
|
-
}, null, 8, ["name", "color"])
|
|
341
|
-
];
|
|
342
|
-
}),
|
|
343
|
-
default: d(() => [
|
|
344
|
-
v(h(j), {
|
|
345
|
-
list: I(n, s) || []
|
|
346
|
-
}, null, 8, ["list"])
|
|
347
|
-
]),
|
|
348
|
-
_: 2
|
|
349
|
-
}, 1024)) : (r(), m(R, {
|
|
350
|
-
key: 1,
|
|
351
|
-
name: (X = k(n, s)) == null ? void 0 : X.name,
|
|
352
|
-
color: (Y = k(n, s)) == null ? void 0 : Y.color
|
|
353
|
-
}, null, 8, ["name", "color"]))
|
|
354
|
-
], 64)) : f("", !0)
|
|
355
|
-
])) : (r(), g("div", {
|
|
356
|
-
key: 2,
|
|
357
|
-
class: "text-ellipsis",
|
|
358
|
-
title: b(n, s),
|
|
359
|
-
style: V(xe(n, s))
|
|
360
|
-
}, _(b(n, s)), 13, at))
|
|
361
|
-
];
|
|
362
|
-
}),
|
|
363
|
-
_: 2
|
|
364
|
-
}, 1032, ["prop", "min-width", "fixed"]))
|
|
365
|
-
], 64))), 128)),
|
|
366
|
-
Ae.value && e.rowBtns && e.rowBtns.length > 0 ? (r(), m(o, {
|
|
367
|
-
key: 1,
|
|
368
|
-
label: e.rowBtnsLabel || "Action",
|
|
369
|
-
fixed: "right",
|
|
370
|
-
align: "left",
|
|
371
|
-
width: e.rowBtnsWidth || (e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100)
|
|
372
|
-
}, {
|
|
373
|
-
default: d(({ row: n, $index: s }) => [
|
|
374
|
-
w("div", lt, [
|
|
375
|
-
(r(!0), g(P, null, ee(e.rowBtns, (l) => (r(), g(P, {
|
|
376
|
-
key: l.key
|
|
377
|
-
}, [
|
|
378
|
-
l.component === "Popover" ? (r(), m(i, {
|
|
379
|
-
key: 0,
|
|
380
|
-
title: l.label,
|
|
381
|
-
trigger: "click",
|
|
382
|
-
"popper-class": "btn-popover",
|
|
383
|
-
width: "400"
|
|
384
|
-
}, {
|
|
385
|
-
reference: d(() => [
|
|
386
|
-
l.condition === void 0 || l.condition === null || h(x)(l.condition, {
|
|
387
|
-
$row: n,
|
|
388
|
-
$globalParams: h(T)()
|
|
389
|
-
}) ? (r(), m(O, {
|
|
390
|
-
key: 0,
|
|
391
|
-
disabled: l.disabled,
|
|
392
|
-
link: "",
|
|
393
|
-
size: "small",
|
|
394
|
-
type: l.type,
|
|
395
|
-
onClick: te((z) => L(l, n, s, z), ["stop"])
|
|
396
|
-
}, {
|
|
397
|
-
default: d(() => [
|
|
398
|
-
v(C, {
|
|
399
|
-
class: "box-item",
|
|
400
|
-
effect: "dark",
|
|
401
|
-
content: l.label,
|
|
402
|
-
placement: "top",
|
|
403
|
-
"popper-class": "low-tsp"
|
|
404
|
-
}, {
|
|
405
|
-
default: d(() => [
|
|
406
|
-
l.icon ? (r(), m(R, {
|
|
407
|
-
key: 0,
|
|
408
|
-
name: l.icon.name,
|
|
409
|
-
color: l.icon.color
|
|
410
|
-
}, null, 8, ["name", "color"])) : f("", !0)
|
|
411
|
-
]),
|
|
412
|
-
_: 2
|
|
413
|
-
}, 1032, ["content"]),
|
|
414
|
-
l.buttonText ? (r(), g("span", {
|
|
415
|
-
key: 0,
|
|
416
|
-
style: V({ color: l.buttonText.color, fontSize: "14px" })
|
|
417
|
-
}, _(h(x)(l.buttonText.text, {
|
|
418
|
-
$row: n,
|
|
419
|
-
$globalParams: h(T)()
|
|
420
|
-
})), 5)) : f("", !0)
|
|
421
|
-
]),
|
|
422
|
-
_: 2
|
|
423
|
-
}, 1032, ["disabled", "type", "onClick"])) : f("", !0)
|
|
424
|
-
]),
|
|
425
|
-
default: d(() => [
|
|
426
|
-
w("div", null, [
|
|
427
|
-
v(h(j), {
|
|
428
|
-
list: l.children
|
|
429
|
-
}, null, 8, ["list"])
|
|
430
|
-
])
|
|
431
|
-
]),
|
|
432
|
-
_: 2
|
|
433
|
-
}, 1032, ["title"])) : (r(), g(P, { key: 1 }, [
|
|
434
|
-
l.condition === void 0 || l.condition === null || h(x)(l.condition, {
|
|
435
|
-
$row: n,
|
|
436
|
-
$globalParams: h(T)()
|
|
437
|
-
}) ? (r(), m(O, {
|
|
438
|
-
key: 0,
|
|
439
|
-
disabled: l.disabled,
|
|
440
|
-
link: "",
|
|
441
|
-
size: "small",
|
|
442
|
-
type: l.type,
|
|
443
|
-
onClick: te((z) => L(l, n, s, z), ["stop"])
|
|
444
|
-
}, {
|
|
445
|
-
default: d(() => [
|
|
446
|
-
v(C, {
|
|
447
|
-
class: "box-item",
|
|
448
|
-
effect: "dark",
|
|
449
|
-
content: l.label,
|
|
450
|
-
placement: "top",
|
|
451
|
-
"popper-class": "low-tsp"
|
|
452
|
-
}, {
|
|
453
|
-
default: d(() => [
|
|
454
|
-
l.icon ? (r(), m(R, {
|
|
455
|
-
key: 0,
|
|
456
|
-
name: l.icon.name,
|
|
457
|
-
color: l.icon.color
|
|
458
|
-
}, null, 8, ["name", "color"])) : f("", !0)
|
|
459
|
-
]),
|
|
460
|
-
_: 2
|
|
461
|
-
}, 1032, ["content"]),
|
|
462
|
-
l.buttonText ? (r(), g("span", {
|
|
463
|
-
key: 0,
|
|
464
|
-
style: V({ color: l.buttonText.color, fontSize: "14px" })
|
|
465
|
-
}, _(h(x)(l.buttonText.text, {
|
|
466
|
-
$row: n,
|
|
467
|
-
$globalParams: h(T)()
|
|
468
|
-
})), 5)) : f("", !0)
|
|
469
|
-
]),
|
|
470
|
-
_: 2
|
|
471
|
-
}, 1032, ["disabled", "type", "onClick"])) : f("", !0)
|
|
472
|
-
], 64))
|
|
473
|
-
], 64))), 128))
|
|
474
|
-
])
|
|
475
|
-
]),
|
|
476
|
-
_: 1
|
|
477
|
-
}, 8, ["label", "width"])) : f("", !0)
|
|
478
|
-
]),
|
|
479
|
-
_: 1
|
|
480
|
-
}, 8, ["data", "row-key", "stripe", "height"])
|
|
481
|
-
], 512), [
|
|
482
|
-
[ne, A.value === "table"]
|
|
483
|
-
]),
|
|
484
|
-
Z(v(Oe, He({ data: c.value }, a, { getColText: b }), null, 16, ["data"]), [
|
|
485
|
-
[ne, A.value === "card"]
|
|
486
|
-
]),
|
|
487
|
-
w("div", {
|
|
488
|
-
class: E(["pagination-wrapper", {
|
|
489
|
-
hidePagination: (e.hiddenPagination || c.value.length === 0) && !e.height,
|
|
490
|
-
transparentPagination: (e.hiddenPagination || c.value.length === 0) && e.height,
|
|
491
|
-
cardlistPadding: A.value === "card"
|
|
492
|
-
}])
|
|
493
|
-
}, [
|
|
494
|
-
v(Ie, {
|
|
495
|
-
layout: e.paginationLayout || "total,sizes, prev, pager, next,jumper",
|
|
496
|
-
total: K.value,
|
|
497
|
-
"page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
|
|
498
|
-
"default-page-size": e.defaultPageSize,
|
|
499
|
-
"current-page": p.value.pageNum,
|
|
500
|
-
"onUpdate:currentPage": t[0] || (t[0] = (n) => p.value.pageNum = n),
|
|
501
|
-
"page-size": p.value.pageSize,
|
|
502
|
-
"onUpdate:pageSize": t[1] || (t[1] = (n) => p.value.pageSize = n),
|
|
503
|
-
"pager-count": Number(e.pagerCount) || 5,
|
|
504
|
-
onSizeChange: ze,
|
|
505
|
-
onCurrentChange: Be
|
|
506
|
-
}, null, 8, ["layout", "total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
|
|
507
|
-
], 2)
|
|
508
|
-
], 10, Ye));
|
|
509
|
-
};
|
|
510
|
-
}
|
|
511
|
-
}), ct = /* @__PURE__ */ Qe(rt, [["__scopeId", "data-v-75401624"]]);
|
|
512
|
-
export {
|
|
513
|
-
ct as default
|
|
514
|
-
};
|