asiaint-lowcode 3.1.8 → 3.1.10
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 +3 -3
- package/dist/asiaint-lowcode.umd.cjs +112 -112
- package/dist/index.d.ts +9 -4
- package/dist/lazy/{Card-6PZmYtNq.js → Card-Ddz6YQpV.js} +2 -2
- package/dist/lazy/{Cascader-N-sfkAb7.js → Cascader-BVV-Ki-j.js} +1 -1
- package/dist/lazy/Checkbox-DCgSzwZg.js +84 -0
- package/dist/lazy/{Collapse-BwDUA9I8.js → Collapse-DcpPd4tx.js} +1 -1
- package/dist/lazy/{Component-CQFTAcKS.js → Component-Bk5rQPzQ.js} +1 -1
- package/dist/lazy/{Component-C6kjM2Nq.js → Component-BoKUgADh.js} +16 -16
- package/dist/lazy/{Component-TW6VSMXG.js → Component-CeDrKrk2.js} +2 -2
- package/dist/lazy/{Component-DQcxhU9o.js → Component-D3MsGYjM.js} +1 -1
- package/dist/lazy/{Component-rx0uCN0v.js → Component-Ly_yC1NL.js} +1 -1
- package/dist/lazy/{Component-BZYH1Qg5.js → Component-ucGzFjPR.js} +2 -2
- package/dist/lazy/{CurdCard-pUfsfVL3.js → CurdCard-Il1fjGlu.js} +2 -2
- package/dist/lazy/{Custom-BvLfuMzj.js → Custom-BgEkqcbp.js} +7 -7
- package/dist/lazy/{DatePicker-Dbp6CJ8Z.js → DatePicker-BF56wejJ.js} +1 -1
- package/dist/lazy/{DragList-BJZtHPww.js → DragList-Bn3L94zk.js} +2 -2
- package/dist/lazy/{FormList-Dwvhoedo.js → FormList-BVMuuLuW.js} +1 -1
- package/dist/lazy/{Grid-BFSvkMBW.js → Grid-DYtMCmN9.js} +1 -1
- package/dist/lazy/{Inline-EBtbFYWn.js → Inline-CKEEiFBv.js} +3 -3
- package/dist/lazy/{JsonEdit-4SgUwVju.js → JsonEdit-DolVbi2b.js} +3 -3
- package/dist/lazy/{LogList-4H55fiHU.js → LogList-BOjs6me1.js} +7 -7
- package/dist/lazy/{ObjGroup-DWtjlZTi.js → ObjGroup-5eYnkH48.js} +3 -3
- package/dist/lazy/{OfferDetails-B0qSqVXF.js → OfferDetails-DXEcHunx.js} +2 -2
- package/dist/lazy/{Pagination-CdH4EStJ.js → Pagination-BE4iI0x3.js} +7 -7
- package/dist/lazy/{Progress-C-Gxh682.js → Progress-CklsbZkm.js} +5 -5
- package/dist/lazy/{Radio-OlWL4SQk.js → Radio-Bcqo0swh.js} +3 -3
- package/dist/lazy/{SearchSelect-C9rumlyn.js → SearchSelect-Dzzrodrk.js} +11 -11
- package/dist/lazy/{Select-CwU7uxeN.js → Select-DEpA7m0g.js} +2 -2
- package/dist/lazy/Table-DbCIbaI-.js +514 -0
- package/dist/lazy/{Tabs-Dfqvt1sF.js → Tabs-CFb5c1El.js} +1 -1
- package/dist/lazy/{Wrapper-B0vhgFVI.js → Wrapper-BxcMDeXI.js} +8 -8
- package/dist/lazy/{index-i51Ps93p.js → index-B18Z3bjt.js} +3651 -3638
- package/dist/lazy/{useSelect-BNh54VEo.js → useSelect-Jpa7ap-I.js} +15 -15
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Checkbox-CcKRx3xE.js +0 -77
- package/dist/lazy/Table-DV138e4a.js +0 -471
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as T, mergeModels as F, useModel as S, inject as g, resolveComponent as u, resolveDirective as w, openBlock as o, createElementBlock as c, toDisplayString as z, unref as i, withDirectives as I, createBlock as f, mergeProps as K, withCtx as h, createVNode as N, Fragment as k, renderList as C } from "vue";
|
|
2
|
-
import { u as O, b as P } from "./index-
|
|
3
|
-
import { u as R } from "./useSelect-
|
|
2
|
+
import { u as O, b as P } from "./index-B18Z3bjt.js";
|
|
3
|
+
import { u as R } from "./useSelect-Jpa7ap-I.js";
|
|
4
4
|
const $ = { key: 0 }, j = /* @__PURE__ */ T({
|
|
5
5
|
__name: "Radio",
|
|
6
6
|
props: /* @__PURE__ */ F({
|
|
@@ -80,7 +80,7 @@ const $ = { key: 0 }, j = /* @__PURE__ */ T({
|
|
|
80
80
|
]);
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
}), q = /* @__PURE__ */ P(j, [["__scopeId", "data-v-
|
|
83
|
+
}), q = /* @__PURE__ */ P(j, [["__scopeId", "data-v-1315a0b2"]]);
|
|
84
84
|
export {
|
|
85
85
|
q as default
|
|
86
86
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as F, mergeModels as w, useModel as A, inject as S, resolveComponent as f, resolveDirective as I, openBlock as o, createElementBlock as i, toDisplayString as y, unref as u, withDirectives as N, createBlock as C, mergeProps as j, withCtx as b, Fragment as O, renderList as P, createTextVNode as T, createVNode as k } from "vue";
|
|
2
|
-
import { u as $, _ as E, b as L } from "./index-
|
|
3
|
-
import { u as U } from "./useSelect-
|
|
2
|
+
import { u as $, _ as E, b as L } from "./index-B18Z3bjt.js";
|
|
3
|
+
import { u as U } from "./useSelect-Jpa7ap-I.js";
|
|
4
4
|
const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "search-select-wrapper"
|
|
@@ -33,9 +33,9 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
33
33
|
emits: ["update:modelValue"],
|
|
34
34
|
setup(v) {
|
|
35
35
|
const t = v, r = A(v, "modelValue"), h = $(), c = S("ruleModule", void 0), g = S("pageMethodMap", {}), B = (e) => {
|
|
36
|
-
const { valueKey:
|
|
36
|
+
const { valueKey: d = "value", multiple: m, name: p } = t;
|
|
37
37
|
let n = {};
|
|
38
|
-
if (m && Array.isArray(e) ? n =
|
|
38
|
+
if (m && Array.isArray(e) ? n = s.value.filter((a) => e.includes(a[d])) : n = s.value.find((a) => a[d] === e) || {}, h.selectData && p && h.updateSelectData(p, n), t.onChange && c)
|
|
39
39
|
try {
|
|
40
40
|
c[t.onChange](g, e, n);
|
|
41
41
|
} catch (a) {
|
|
@@ -48,19 +48,19 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
48
48
|
} catch (e) {
|
|
49
49
|
console.error(e);
|
|
50
50
|
}
|
|
51
|
-
}, { currentOptions:
|
|
52
|
-
return (e,
|
|
51
|
+
}, { currentOptions: s, loading: V } = U(t);
|
|
52
|
+
return (e, d) => {
|
|
53
53
|
var _;
|
|
54
54
|
const m = f("el-option"), p = f("el-select"), n = f("el-button"), a = I("loading");
|
|
55
55
|
return e.read ? (o(), i("div", q, [
|
|
56
56
|
e.multiple ? (o(), i("div", z, y(r.value && r.value.map((l) => {
|
|
57
57
|
var K;
|
|
58
|
-
return (K = u(
|
|
59
|
-
}).join("、")), 1)) : (o(), i("div", G, y(((_ = u(
|
|
58
|
+
return (K = u(s).find((D) => D[e.valueKey] === l)) == null ? void 0 : K[e.labelKey];
|
|
59
|
+
}).join("、")), 1)) : (o(), i("div", G, y(((_ = u(s).find((l) => l[e.valueKey] === r.value)) == null ? void 0 : _[e.labelKey]) || "--"), 1))
|
|
60
60
|
])) : (o(), i("div", H, [
|
|
61
61
|
N((o(), C(p, j({
|
|
62
62
|
modelValue: r.value,
|
|
63
|
-
"onUpdate:modelValue":
|
|
63
|
+
"onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l)
|
|
64
64
|
}, e.$attrs, {
|
|
65
65
|
onChange: B,
|
|
66
66
|
multiple: e.multiple,
|
|
@@ -69,7 +69,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
69
69
|
disabled: e.disabled
|
|
70
70
|
}), {
|
|
71
71
|
default: b(() => [
|
|
72
|
-
(o(!0), i(O, null, P(u(
|
|
72
|
+
(o(!0), i(O, null, P(u(s), (l) => (o(), C(m, {
|
|
73
73
|
key: l[e.valueKey],
|
|
74
74
|
label: l[e.labelKey],
|
|
75
75
|
value: l[e.valueKey],
|
|
@@ -98,7 +98,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
98
98
|
]));
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
}), X = /* @__PURE__ */ L(J, [["__scopeId", "data-v-
|
|
101
|
+
}), X = /* @__PURE__ */ L(J, [["__scopeId", "data-v-ce5f6b46"]]);
|
|
102
102
|
export {
|
|
103
103
|
X as default
|
|
104
104
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as F, mergeModels as w, computed as p, useModel as x, inject as v, resolveComponent as b, openBlock as i, createElementBlock as g, normalizeStyle as A, toDisplayString as h, createBlock as K, mergeProps as N, unref as V, withCtx as m, createElementVNode as r, Fragment as T, renderList as j, createTextVNode as E } from "vue";
|
|
2
|
-
import { u as I } from "./index-
|
|
3
|
-
import { u as O } from "./useSelect-
|
|
2
|
+
import { u as I } from "./index-B18Z3bjt.js";
|
|
3
|
+
import { u as O } from "./useSelect-Jpa7ap-I.js";
|
|
4
4
|
const P = { style: { "min-height": "32px" } }, R = /* @__PURE__ */ F({
|
|
5
5
|
__name: "Select",
|
|
6
6
|
props: /* @__PURE__ */ w({
|
|
@@ -0,0 +1,514 @@
|
|
|
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-B18Z3bjt.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-f15796b1"]]);
|
|
512
|
+
export {
|
|
513
|
+
ct as default
|
|
514
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, ref as m, watch as _, onMounted as h, resolveComponent as a, openBlock as l, createBlock as c, mergeProps as u, withCtx as d, createElementBlock as b, Fragment as v, renderList as y, createVNode as k, unref as K } from "vue";
|
|
2
|
-
import { a as V } from "./index-
|
|
2
|
+
import { a as V } from "./index-B18Z3bjt.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const w = /* @__PURE__ */ i({
|
|
5
5
|
__name: "Tabs",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as f, ref as i, resolveComponent as C, openBlock as r, createElementBlock as t, normalizeStyle as c, createVNode as l, withCtx as _, withDirectives as g, createElementVNode as S, normalizeClass as d, unref as x, createCommentVNode as u, vShow as B } from "vue";
|
|
2
|
+
import { c as b, a as k, I as y, b as E } from "./index-B18Z3bjt.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const D = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "dropdown-icon-wrapper"
|
|
7
|
-
},
|
|
7
|
+
}, A = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "expansion-icon-wrapper"
|
|
10
|
-
},
|
|
10
|
+
}, j = /* @__PURE__ */ f({
|
|
11
11
|
__name: "Wrapper",
|
|
12
12
|
props: {
|
|
13
13
|
children: {},
|
|
@@ -41,11 +41,11 @@ const D = {
|
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
return (e, I) => {
|
|
44
|
-
const
|
|
44
|
+
const w = C("el-collapse-transition");
|
|
45
45
|
return r(), t("div", {
|
|
46
46
|
style: c(e.style)
|
|
47
47
|
}, [
|
|
48
|
-
l(
|
|
48
|
+
l(w, null, {
|
|
49
49
|
default: _(() => [
|
|
50
50
|
g(S("div", {
|
|
51
51
|
class: d({
|
|
@@ -65,7 +65,7 @@ const D = {
|
|
|
65
65
|
class: d({ reversed: n.value })
|
|
66
66
|
}, null, 8, ["class"])
|
|
67
67
|
])) : u("", !0),
|
|
68
|
-
e.expansion ? (r(), t("div",
|
|
68
|
+
e.expansion ? (r(), t("div", A, [
|
|
69
69
|
l(y, {
|
|
70
70
|
name: "icon-shuangxiangjiantou",
|
|
71
71
|
color: a.value ? "#18AAF8" : "#666666",
|
|
@@ -81,7 +81,7 @@ const D = {
|
|
|
81
81
|
], 4);
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
}), W = /* @__PURE__ */ E(
|
|
84
|
+
}), W = /* @__PURE__ */ E(j, [["__scopeId", "data-v-e8750325"]]);
|
|
85
85
|
export {
|
|
86
86
|
W as default
|
|
87
87
|
};
|