asiaint-lowcode 3.0.75 → 3.1.0
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 +3 -3
- package/dist/asiaint-lowcode.umd.cjs +141 -141
- package/dist/index.d.ts +139 -22
- package/dist/lazy/{Card-BL132uF0.js → Card-6y3b8xK9.js} +1 -1
- package/dist/lazy/{Cascader-BNajnGXt.js → Cascader-1XEBAirk.js} +2 -1
- package/dist/lazy/{Checkbox-CB78q85K.js → Checkbox-DY7Ufmrz.js} +8 -7
- package/dist/lazy/{Collapse-BT3Z_TeL.js → Collapse-BT7RNNg6.js} +1 -1
- package/dist/lazy/{Component-CVbGsSj6.js → Component-AYxGCLAH.js} +10 -10
- package/dist/lazy/{Component-OAYlB5bp.js → Component-BYlYtzWb.js} +1 -1
- package/dist/lazy/{Component-Cwe8AZcy.js → Component-CF4m_685.js} +1 -1
- package/dist/lazy/{Component-Dl3PXGm5.js → Component-CkSnYtMh.js} +1 -1
- package/dist/lazy/{Component-DdZRdqp7.js → Component-DITfSg2v.js} +1 -1
- package/dist/lazy/{Component-BNOSHXwG.js → Component-DZMCcrpa.js} +1 -1
- package/dist/lazy/{CurdCard-BrBulKvO.js → CurdCard-BXOxRtCA.js} +50 -44
- package/dist/lazy/{Custom-BliwSKbp.js → Custom-Df5H1QJV.js} +1 -1
- package/dist/lazy/{DragList-Buw-1bQc.js → DragList-BH1VY62B.js} +35 -34
- package/dist/lazy/{FormList-DTdAAtrD.js → FormList-BMk_lCx8.js} +1 -1
- package/dist/lazy/{Grid-DUAIHsOo.js → Grid-SVpxXRzO.js} +1 -1
- package/dist/lazy/{Inline-BkAIXUU0.js → Inline-CE2A9Of4.js} +1 -1
- package/dist/lazy/{JsonEdit-Bx4jK-K8.js → JsonEdit-C_CUvw5t.js} +1 -1
- package/dist/lazy/{LogList-DHk7eKeC.js → LogList-COeBYixP.js} +1 -1
- package/dist/lazy/{ObjGroup-DXJerzS2.js → ObjGroup-BB2eQigf.js} +1 -1
- package/dist/lazy/{OfferDetails-Fs5y40J0.js → OfferDetails-BEyNKQsf.js} +29 -28
- package/dist/lazy/{Progress-pRaKkFkw.js → Progress-CYBbCXFh.js} +1 -1
- package/dist/lazy/{Radio-C9Z-5npS.js → Radio-qI1r_rWj.js} +8 -7
- package/dist/lazy/{SearchSelect-BU-_DOLr.js → SearchSelect-ZmOPM_QH.js} +15 -14
- package/dist/lazy/{Select-DJ6Ky5mO.js → Select-CxtVmfLu.js} +10 -9
- package/dist/lazy/Table-YeT82lnr.js +438 -0
- package/dist/lazy/{Tabs-meM_0XCE.js → Tabs-DFvfP_nb.js} +1 -1
- package/dist/lazy/Wrapper-DAFSrkAr.js +87 -0
- package/dist/lazy/{index-2Lph8ou3.js → index-DQ889qV3.js} +9667 -9397
- package/dist/lazy/useSelect-EfaZqc6a.js +77 -0
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Table-BlBWSnrv.js +0 -351
- package/dist/lazy/Wrapper-DlG2aZRe.js +0 -36
- package/dist/lazy/useSelect-CmUZu1rN.js +0 -76
|
@@ -1,6 +1,6 @@
|
|
|
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 k, mergeProps as j, withCtx as b, Fragment as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as U } from "./useSelect-
|
|
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 k, mergeProps as j, withCtx as b, Fragment as O, renderList as P, createTextVNode as $, createVNode as B } from "vue";
|
|
2
|
+
import { u as E, _ as L, b as T } from "./index-DQ889qV3.js";
|
|
3
|
+
import { u as U } from "./useSelect-EfaZqc6a.js";
|
|
4
4
|
const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "search-select-wrapper"
|
|
@@ -11,6 +11,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
11
11
|
disabled: { type: Boolean },
|
|
12
12
|
read: { type: Boolean },
|
|
13
13
|
options: { default: () => [] },
|
|
14
|
+
defaultOptions: {},
|
|
14
15
|
multiple: { type: Boolean, default: !1 },
|
|
15
16
|
mode: { default: "static" },
|
|
16
17
|
labelKey: { default: "label" },
|
|
@@ -30,10 +31,10 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
30
31
|
}),
|
|
31
32
|
emits: ["update:modelValue"],
|
|
32
33
|
setup(v) {
|
|
33
|
-
const t = v,
|
|
34
|
+
const t = v, d = A(v, "modelValue"), h = E(), c = S("ruleModule", void 0), g = S("pageMethodMap", {}), C = (e) => {
|
|
34
35
|
const { valueKey: s = "value", multiple: m, name: p } = t;
|
|
35
36
|
let n = {};
|
|
36
|
-
if (m && Array.isArray(e) ? n =
|
|
37
|
+
if (m && Array.isArray(e) ? n = r.value.filter((a) => e.includes(a[s])) : n = r.value.find((a) => a[s] === e) || {}, h.selectData && p && h.updateSelectData(p, n), t.onChange && c)
|
|
37
38
|
try {
|
|
38
39
|
c[t.onChange](g, e, n);
|
|
39
40
|
} catch (a) {
|
|
@@ -46,19 +47,19 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
46
47
|
} catch (e) {
|
|
47
48
|
console.error(e);
|
|
48
49
|
}
|
|
49
|
-
}, { currentOptions:
|
|
50
|
+
}, { currentOptions: r, loading: V } = U(t);
|
|
50
51
|
return (e, s) => {
|
|
51
52
|
var _;
|
|
52
53
|
const m = f("el-option"), p = f("el-select"), n = f("el-button"), a = I("loading");
|
|
53
54
|
return e.read ? (o(), i("div", q, [
|
|
54
|
-
e.multiple ? (o(), i("div", z, y(
|
|
55
|
+
e.multiple ? (o(), i("div", z, y(d.value && d.value.map((l) => {
|
|
55
56
|
var K;
|
|
56
|
-
return (K = u(
|
|
57
|
-
}).join("、")), 1)) : (o(), i("div", G, y(((_ = u(
|
|
57
|
+
return (K = u(r).find((D) => D[e.valueKey] === l)) == null ? void 0 : K[e.labelKey];
|
|
58
|
+
}).join("、")), 1)) : (o(), i("div", G, y(((_ = u(r).find((l) => l[e.valueKey] === d.value)) == null ? void 0 : _[e.labelKey]) || "--"), 1))
|
|
58
59
|
])) : (o(), i("div", H, [
|
|
59
60
|
N((o(), k(p, j({
|
|
60
|
-
modelValue:
|
|
61
|
-
"onUpdate:modelValue": s[0] || (s[0] = (l) =>
|
|
61
|
+
modelValue: d.value,
|
|
62
|
+
"onUpdate:modelValue": s[0] || (s[0] = (l) => d.value = l)
|
|
62
63
|
}, e.$attrs, {
|
|
63
64
|
onChange: C,
|
|
64
65
|
multiple: e.multiple,
|
|
@@ -67,14 +68,14 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
67
68
|
disabled: e.disabled
|
|
68
69
|
}), {
|
|
69
70
|
default: b(() => [
|
|
70
|
-
(o(!0), i(
|
|
71
|
+
(o(!0), i(O, null, P(u(r), (l) => (o(), k(m, {
|
|
71
72
|
key: l[e.valueKey],
|
|
72
73
|
label: l[e.labelKey],
|
|
73
74
|
value: l[e.valueKey],
|
|
74
75
|
disabled: l[e.disabledKey]
|
|
75
76
|
}, {
|
|
76
77
|
default: b(() => [
|
|
77
|
-
|
|
78
|
+
$(y(l[e.labelKey]), 1)
|
|
78
79
|
]),
|
|
79
80
|
_: 2
|
|
80
81
|
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
@@ -89,7 +90,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
89
90
|
class: "search-btn"
|
|
90
91
|
}, {
|
|
91
92
|
default: b(() => [
|
|
92
|
-
B(u(
|
|
93
|
+
B(u(L), { name: "search" })
|
|
93
94
|
]),
|
|
94
95
|
_: 1
|
|
95
96
|
}, 8, ["disabled"])
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as D, mergeModels as F, computed as
|
|
2
|
-
import { u as x } from "./index-
|
|
3
|
-
import { u as E } from "./useSelect-
|
|
4
|
-
const I = { key: 0 },
|
|
1
|
+
import { defineComponent as D, mergeModels as F, computed as y, useModel as _, inject as v, resolveComponent as b, openBlock as i, createElementBlock as g, toDisplayString as h, createBlock as K, mergeProps as w, unref as V, withCtx as c, createElementVNode as r, Fragment as A, renderList as N, createTextVNode as j } from "vue";
|
|
2
|
+
import { u as x } from "./index-DQ889qV3.js";
|
|
3
|
+
import { u as E } from "./useSelect-EfaZqc6a.js";
|
|
4
|
+
const I = { key: 0 }, O = { style: { "min-height": "32px" } }, T = /* @__PURE__ */ D({
|
|
5
5
|
__name: "Select",
|
|
6
6
|
props: /* @__PURE__ */ F({
|
|
7
7
|
options: { default: () => [] },
|
|
8
|
+
defaultOptions: {},
|
|
8
9
|
multiple: { type: Boolean, default: !1 },
|
|
9
10
|
mode: { default: "static" },
|
|
10
11
|
labelKey: { default: "label" },
|
|
@@ -25,16 +26,16 @@ const I = { key: 0 }, P = { style: { "min-height": "32px" } }, T = /* @__PURE__
|
|
|
25
26
|
}),
|
|
26
27
|
emits: ["update:modelValue"],
|
|
27
28
|
setup(p) {
|
|
28
|
-
const l = p, k =
|
|
29
|
+
const l = p, k = y(() => l.clearable === null || l.clearable === void 0 ? !0 : !!l.clearable), d = _(p, "modelValue"), m = x(), f = v("ruleModule", void 0), B = v("pageMethodMap", {}), C = (e) => {
|
|
29
30
|
const { valueKey: t = "value", multiple: n, name: o } = l;
|
|
30
31
|
let a = {};
|
|
31
|
-
if (n && Array.isArray(e) ? a = s.value.filter((u) => e.includes(u[t])) : a = s.value.find((u) => u[t] === e) || {}, m.selectData && o && m.updateSelectData(o, a), l.onChange &&
|
|
32
|
+
if (n && Array.isArray(e) ? a = s.value.filter((u) => e.includes(u[t])) : a = s.value.find((u) => u[t] === e) || {}, m.selectData && o && m.updateSelectData(o, a), l.onChange && f)
|
|
32
33
|
try {
|
|
33
|
-
|
|
34
|
+
f[l.onChange](B, e, a);
|
|
34
35
|
} catch (u) {
|
|
35
36
|
console.error(u);
|
|
36
37
|
}
|
|
37
|
-
}, { currentOptions: s, loading: M } = E(l), S =
|
|
38
|
+
}, { currentOptions: s, loading: M } = E(l), S = y(() => {
|
|
38
39
|
var t;
|
|
39
40
|
if (l.multiple)
|
|
40
41
|
return s.value.filter(
|
|
@@ -95,7 +96,7 @@ const I = { key: 0 }, P = { style: { "min-height": "32px" } }, T = /* @__PURE__
|
|
|
95
96
|
], -1)
|
|
96
97
|
])),
|
|
97
98
|
default: c(() => [
|
|
98
|
-
r("div",
|
|
99
|
+
r("div", O, [
|
|
99
100
|
(i(!0), g(A, null, N(V(s), (a) => (i(), K(n, {
|
|
100
101
|
key: a[e.valueKey],
|
|
101
102
|
label: a[e.labelKey],
|
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
import { defineComponent as Ne, computed as T, inject as _, ref as b, useTemplateRef as $e, readonly as Me, toRefs as Te, onMounted as De, nextTick as Fe, onActivated as Ee, onUnmounted as Ie, resolveComponent as z, openBlock as s, createElementBlock as h, normalizeClass as D, withDirectives as x, createElementVNode as m, createVNode as v, unref as C, withCtx as d, createBlock as f, createCommentVNode as y, Fragment as B, renderList as W, toDisplayString as N, withModifiers as q, vShow as J, mergeProps as Ae } from "vue";
|
|
2
|
+
import { $ as Le, f as F, i as Ve, _ as Ue, I as E, a as je, C as Ge, b as He } from "./index-DQ889qV3.js";
|
|
3
|
+
import { ElTable as Ke, ElLoading as O } from "element-plus";
|
|
4
|
+
const xe = ["id"], We = { class: "empty-content" }, qe = ["title"], Je = ["title", "onClick"], Oe = {
|
|
5
|
+
key: 1,
|
|
6
|
+
class: "icon-text-wrapper"
|
|
7
|
+
}, Qe = ["title"], Xe = ["title"], Ye = { class: "row-btn-wrapper" }, Ze = /* @__PURE__ */ Ne({
|
|
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
|
+
columns: {},
|
|
26
|
+
hidden: { type: Boolean },
|
|
27
|
+
hiddenPagination: { type: Boolean },
|
|
28
|
+
handleCurrentChange: {},
|
|
29
|
+
selectable: {},
|
|
30
|
+
pageSizes: {},
|
|
31
|
+
pagerCount: {},
|
|
32
|
+
defaultPageSize: {},
|
|
33
|
+
typeSwitch: { type: Boolean },
|
|
34
|
+
displayType: { default: "table" },
|
|
35
|
+
onMounted: {},
|
|
36
|
+
onActivated: {},
|
|
37
|
+
height: {},
|
|
38
|
+
collapsible: { type: Boolean },
|
|
39
|
+
name: {},
|
|
40
|
+
gridColumns: {}
|
|
41
|
+
},
|
|
42
|
+
setup(Q, { expose: X }) {
|
|
43
|
+
const n = Q, R = T(() => n.displayType ? n.displayType : n.typeSwitch ? "card" : "table"), Y = _("ruleModule", void 0), I = _("ruleMap", void 0), u = T(() => n.rulePath && I[n.rulePath] ? I[n.rulePath] : Y), g = _("pageMethodMap", {}), $ = _("getGlobalParams", () => {
|
|
44
|
+
}), A = _(Le), L = A ? A.translateFn : null, S = b(), Z = (e, t, o) => {
|
|
45
|
+
i.value[e] && (i.value[e][t] = o);
|
|
46
|
+
}, ee = (e, t) => {
|
|
47
|
+
const o = n.columns.find((r) => r.key === e);
|
|
48
|
+
o && (o.hidden = !t);
|
|
49
|
+
}, M = (e, t, o) => {
|
|
50
|
+
try {
|
|
51
|
+
u.value[e.onClick](g, t, o);
|
|
52
|
+
} catch (r) {
|
|
53
|
+
console.error(r);
|
|
54
|
+
}
|
|
55
|
+
}, te = (e) => {
|
|
56
|
+
if (n.rowClick)
|
|
57
|
+
try {
|
|
58
|
+
u.value[n.rowClick](g, e);
|
|
59
|
+
} catch (t) {
|
|
60
|
+
console.error(t);
|
|
61
|
+
}
|
|
62
|
+
}, ne = (e) => {
|
|
63
|
+
if (n.rowDbClick)
|
|
64
|
+
try {
|
|
65
|
+
u.value[n.rowDbClick](g, e);
|
|
66
|
+
} catch (t) {
|
|
67
|
+
console.error(t);
|
|
68
|
+
}
|
|
69
|
+
}, oe = b([]), ae = (e) => {
|
|
70
|
+
oe.value = e;
|
|
71
|
+
}, le = (e, t) => {
|
|
72
|
+
if (!n.selectable)
|
|
73
|
+
return !0;
|
|
74
|
+
try {
|
|
75
|
+
return u.value[n.selectable](g, e, t);
|
|
76
|
+
} catch (o) {
|
|
77
|
+
console.error(o);
|
|
78
|
+
}
|
|
79
|
+
return !0;
|
|
80
|
+
}, re = () => {
|
|
81
|
+
var e;
|
|
82
|
+
(e = S.value) == null || e.clearSelection();
|
|
83
|
+
}, ie = () => i.value, V = b(), se = (e) => {
|
|
84
|
+
if (V.value = e, !!n.handleCurrentChange)
|
|
85
|
+
try {
|
|
86
|
+
u.value[n.handleCurrentChange](g, e);
|
|
87
|
+
} catch (t) {
|
|
88
|
+
console.error(t);
|
|
89
|
+
}
|
|
90
|
+
}, ce = () => V.value, ue = () => {
|
|
91
|
+
var e;
|
|
92
|
+
return (e = S.value) == null ? void 0 : e.getSelectionRows();
|
|
93
|
+
}, pe = async () => !0, de = (e, t) => {
|
|
94
|
+
var r;
|
|
95
|
+
const o = (r = n.topBtns) == null ? void 0 : r.find((w) => w.key === e);
|
|
96
|
+
o && (o.hidden = t);
|
|
97
|
+
}, ge = (e, t) => {
|
|
98
|
+
var r;
|
|
99
|
+
const o = (r = n.rowBtns) == null ? void 0 : r.find((w) => w.key === e);
|
|
100
|
+
o && (o.condition = !t);
|
|
101
|
+
}, U = b(0), he = (e) => {
|
|
102
|
+
U.value = e;
|
|
103
|
+
}, c = b({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), me = () => c.value, ve = (e) => {
|
|
104
|
+
let t = !1;
|
|
105
|
+
return e.pageNum !== void 0 && e.pageNum > -1 && (c.value.pageNum !== e.pageNum && (t = !0), c.value.pageNum = e.pageNum), e.pageSize !== void 0 && e.pageSize > -1 && (c.value.pageSize !== e.pageSize && (t = !0), c.value.pageSize = e.pageSize), { pagination: c.value, isChange: t };
|
|
106
|
+
}, fe = async (e) => {
|
|
107
|
+
if (c.value.pageNum = 1, c.value.pageSize = e, !n.sizeChange)
|
|
108
|
+
return;
|
|
109
|
+
const t = O.service({
|
|
110
|
+
target: `#${n.name}`,
|
|
111
|
+
text: "Loading..."
|
|
112
|
+
});
|
|
113
|
+
try {
|
|
114
|
+
await u.value[n.sizeChange](g, c.value);
|
|
115
|
+
} catch (o) {
|
|
116
|
+
console.error(o);
|
|
117
|
+
} finally {
|
|
118
|
+
t.close();
|
|
119
|
+
}
|
|
120
|
+
}, ye = async (e) => {
|
|
121
|
+
if (c.value.pageNum = e, !n.pageChange)
|
|
122
|
+
return;
|
|
123
|
+
const t = O.service({
|
|
124
|
+
target: `#${n.name}`,
|
|
125
|
+
text: "Loading..."
|
|
126
|
+
});
|
|
127
|
+
try {
|
|
128
|
+
await u.value[n.pageChange](g, c.value);
|
|
129
|
+
} catch (o) {
|
|
130
|
+
console.error(o);
|
|
131
|
+
} finally {
|
|
132
|
+
t.close();
|
|
133
|
+
}
|
|
134
|
+
}, ke = (e) => {
|
|
135
|
+
var t;
|
|
136
|
+
(t = S.value) == null || t.setCurrentRow(e);
|
|
137
|
+
}, Ce = (e) => {
|
|
138
|
+
var t;
|
|
139
|
+
(t = S.value) == null || t.setCurrentRow(i.value[e]);
|
|
140
|
+
}, we = (e, t, o) => {
|
|
141
|
+
n.columns.forEach((r) => {
|
|
142
|
+
r.key === e && r[t] && (r[t] = o);
|
|
143
|
+
});
|
|
144
|
+
}, i = b([]), be = (e) => {
|
|
145
|
+
i.value = e;
|
|
146
|
+
}, Se = (e = {}) => {
|
|
147
|
+
i.value.push(e);
|
|
148
|
+
}, _e = (e) => {
|
|
149
|
+
e >= 0 && e < i.value.length && i.value.splice(e, 1);
|
|
150
|
+
}, ze = async () => {
|
|
151
|
+
i.value = [...i.value];
|
|
152
|
+
}, j = $e("rootRef"), G = Me({
|
|
153
|
+
...Te(n),
|
|
154
|
+
setCellData: Z,
|
|
155
|
+
clearSelection: re,
|
|
156
|
+
getData: ie,
|
|
157
|
+
getCurrentRow: ce,
|
|
158
|
+
getSelectedRows: ue,
|
|
159
|
+
addRow: Se,
|
|
160
|
+
deleteRow: _e,
|
|
161
|
+
refresh: ze,
|
|
162
|
+
validate: pe,
|
|
163
|
+
setData: be,
|
|
164
|
+
selectRow: ke,
|
|
165
|
+
selectRowNum: Ce,
|
|
166
|
+
setTotal: he,
|
|
167
|
+
getPagination: me,
|
|
168
|
+
setPagination: ve,
|
|
169
|
+
setTopBtnHidden: de,
|
|
170
|
+
setColVisible: ee,
|
|
171
|
+
setColumn: we,
|
|
172
|
+
setRowsBtnHidden: ge,
|
|
173
|
+
rootRef: j,
|
|
174
|
+
type: "table"
|
|
175
|
+
}), k = (e, t) => {
|
|
176
|
+
const o = L ? L(e.key, t) : t[e.key];
|
|
177
|
+
if (!e.encrypted || !o)
|
|
178
|
+
return o;
|
|
179
|
+
const r = `${o}`;
|
|
180
|
+
return r.length <= 4 ? "*".repeat(r.length) : r.slice(0, -4) + "****";
|
|
181
|
+
}, H = (e, t) => {
|
|
182
|
+
if (!(!e.getIconInfo || !u.value))
|
|
183
|
+
try {
|
|
184
|
+
return u.value[e.getIconInfo](g, t, e);
|
|
185
|
+
} catch (o) {
|
|
186
|
+
console.error(o);
|
|
187
|
+
}
|
|
188
|
+
}, Be = T(() => !n.rowBtns || n.rowBtns.length === 0 || !i.value || i.value.length === 0 ? !1 : i.value.some(
|
|
189
|
+
(e) => {
|
|
190
|
+
var t;
|
|
191
|
+
return (t = n.rowBtns) == null ? void 0 : t.some((o) => o.condition === void 0 || o.condition === null ? !0 : F(o.condition, {
|
|
192
|
+
$row: e,
|
|
193
|
+
$globalParams: $()
|
|
194
|
+
}));
|
|
195
|
+
}
|
|
196
|
+
));
|
|
197
|
+
if (De(async () => {
|
|
198
|
+
if (!n.onMounted || !u.value)
|
|
199
|
+
return;
|
|
200
|
+
await Fe();
|
|
201
|
+
const e = n.onMounted;
|
|
202
|
+
try {
|
|
203
|
+
u.value[e](g);
|
|
204
|
+
} catch (t) {
|
|
205
|
+
console.error(t);
|
|
206
|
+
}
|
|
207
|
+
}), Ee(() => {
|
|
208
|
+
if (!n.onActivated || !u.value)
|
|
209
|
+
return;
|
|
210
|
+
const e = n.onActivated;
|
|
211
|
+
try {
|
|
212
|
+
u.value[e](g);
|
|
213
|
+
} catch (t) {
|
|
214
|
+
console.error(t);
|
|
215
|
+
}
|
|
216
|
+
}), n.name) {
|
|
217
|
+
const e = Ve(n.name, G);
|
|
218
|
+
Ie(() => {
|
|
219
|
+
e();
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
return X(G), (e, t) => {
|
|
223
|
+
const o = z("el-table-column"), r = z("el-tooltip"), w = z("el-button"), Re = z("el-popover"), Pe = z("el-pagination");
|
|
224
|
+
return e.hidden ? y("", !0) : (s(), h("div", {
|
|
225
|
+
key: 0,
|
|
226
|
+
class: D(["table-render", { tableBorder: R.value === "table" }]),
|
|
227
|
+
ref_key: "rootRef",
|
|
228
|
+
ref: j,
|
|
229
|
+
id: e.name
|
|
230
|
+
}, [
|
|
231
|
+
x(m("div", null, [
|
|
232
|
+
v(C(Ke), {
|
|
233
|
+
ref_key: "tableRef",
|
|
234
|
+
ref: S,
|
|
235
|
+
data: i.value,
|
|
236
|
+
"highlight-current-row": "",
|
|
237
|
+
"row-key": e.rowKey,
|
|
238
|
+
stripe: e.stripe,
|
|
239
|
+
"show-overflow-tooltip": "",
|
|
240
|
+
onRowClick: te,
|
|
241
|
+
onRowDblclick: ne,
|
|
242
|
+
onSelectionChange: ae,
|
|
243
|
+
onCurrentChange: se,
|
|
244
|
+
height: e.height
|
|
245
|
+
}, {
|
|
246
|
+
empty: d(() => [
|
|
247
|
+
m("div", We, [
|
|
248
|
+
v(C(Ue), {
|
|
249
|
+
name: "tableEmpty",
|
|
250
|
+
style: { width: 56, height: 56 }
|
|
251
|
+
}),
|
|
252
|
+
t[2] || (t[2] = m("div", null, "No data available,please check", -1))
|
|
253
|
+
])
|
|
254
|
+
]),
|
|
255
|
+
default: d(() => [
|
|
256
|
+
e.multipleSelection ? (s(), f(o, {
|
|
257
|
+
key: 0,
|
|
258
|
+
type: "selection",
|
|
259
|
+
width: "55",
|
|
260
|
+
selectable: le
|
|
261
|
+
})) : y("", !0),
|
|
262
|
+
(s(!0), h(B, null, W(e.columns, (a) => (s(), h(B, {
|
|
263
|
+
key: a.key
|
|
264
|
+
}, [
|
|
265
|
+
a.hidden ? y("", !0) : (s(), f(o, {
|
|
266
|
+
key: 0,
|
|
267
|
+
prop: a.key,
|
|
268
|
+
"min-width": a.minWidth,
|
|
269
|
+
fixed: a.fixed || !1
|
|
270
|
+
}, {
|
|
271
|
+
header: d(() => [
|
|
272
|
+
m("div", {
|
|
273
|
+
class: "text-ellipsis",
|
|
274
|
+
title: a.label
|
|
275
|
+
}, N(a.label), 9, qe)
|
|
276
|
+
]),
|
|
277
|
+
default: d(({ row: p, $index: l }) => {
|
|
278
|
+
var P, K;
|
|
279
|
+
return [
|
|
280
|
+
a.type === "link" ? (s(), h("div", {
|
|
281
|
+
key: 0,
|
|
282
|
+
class: D(["text-ellipsis link-style", { "click-style": a.onClick }]),
|
|
283
|
+
title: k(a, p),
|
|
284
|
+
onClick: (et) => M(a, p, l)
|
|
285
|
+
}, N(k(a, p)), 11, Je)) : a.type === "iconText" ? (s(), h("div", Oe, [
|
|
286
|
+
v(E, {
|
|
287
|
+
name: (P = H(a, p)) == null ? void 0 : P.name,
|
|
288
|
+
color: (K = H(a, p)) == null ? void 0 : K.color
|
|
289
|
+
}, null, 8, ["name", "color"]),
|
|
290
|
+
m("span", {
|
|
291
|
+
class: "text-ellipsis",
|
|
292
|
+
title: k(a, p)
|
|
293
|
+
}, N(k(a, p)), 9, Qe)
|
|
294
|
+
])) : (s(), h("div", {
|
|
295
|
+
key: 2,
|
|
296
|
+
class: "text-ellipsis",
|
|
297
|
+
title: k(a, p)
|
|
298
|
+
}, N(k(a, p)), 9, Xe))
|
|
299
|
+
];
|
|
300
|
+
}),
|
|
301
|
+
_: 2
|
|
302
|
+
}, 1032, ["prop", "min-width", "fixed"]))
|
|
303
|
+
], 64))), 128)),
|
|
304
|
+
Be.value && e.rowBtns && e.rowBtns.length > 0 ? (s(), f(o, {
|
|
305
|
+
key: 1,
|
|
306
|
+
label: "Action",
|
|
307
|
+
fixed: "right",
|
|
308
|
+
align: "left",
|
|
309
|
+
width: e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100
|
|
310
|
+
}, {
|
|
311
|
+
default: d(({ row: a, $index: p }) => [
|
|
312
|
+
m("div", Ye, [
|
|
313
|
+
(s(!0), h(B, null, W(e.rowBtns, (l) => (s(), h(B, {
|
|
314
|
+
key: l.key
|
|
315
|
+
}, [
|
|
316
|
+
l.component === "Popover" ? (s(), f(Re, {
|
|
317
|
+
key: 0,
|
|
318
|
+
title: l.label,
|
|
319
|
+
trigger: "click",
|
|
320
|
+
"popper-class": "btn-popover",
|
|
321
|
+
width: "400"
|
|
322
|
+
}, {
|
|
323
|
+
reference: d(() => [
|
|
324
|
+
l.condition === void 0 || l.condition === null || C(F)(l.condition, {
|
|
325
|
+
$row: a,
|
|
326
|
+
$globalParams: C($)()
|
|
327
|
+
}) ? (s(), f(w, {
|
|
328
|
+
key: 0,
|
|
329
|
+
disabled: l.disabled,
|
|
330
|
+
link: "",
|
|
331
|
+
size: "small",
|
|
332
|
+
type: l.type,
|
|
333
|
+
onClick: q((P) => M(l, a, p), ["stop"])
|
|
334
|
+
}, {
|
|
335
|
+
default: d(() => [
|
|
336
|
+
v(r, {
|
|
337
|
+
class: "box-item",
|
|
338
|
+
effect: "dark",
|
|
339
|
+
content: l.label,
|
|
340
|
+
placement: "top",
|
|
341
|
+
"popper-class": "low-tsp"
|
|
342
|
+
}, {
|
|
343
|
+
default: d(() => [
|
|
344
|
+
l.icon ? (s(), f(E, {
|
|
345
|
+
key: 0,
|
|
346
|
+
name: l.icon.name,
|
|
347
|
+
color: l.icon.color
|
|
348
|
+
}, null, 8, ["name", "color"])) : y("", !0)
|
|
349
|
+
]),
|
|
350
|
+
_: 2
|
|
351
|
+
}, 1032, ["content"])
|
|
352
|
+
]),
|
|
353
|
+
_: 2
|
|
354
|
+
}, 1032, ["disabled", "type", "onClick"])) : y("", !0)
|
|
355
|
+
]),
|
|
356
|
+
default: d(() => [
|
|
357
|
+
m("div", null, [
|
|
358
|
+
v(C(je), {
|
|
359
|
+
list: l.children
|
|
360
|
+
}, null, 8, ["list"])
|
|
361
|
+
])
|
|
362
|
+
]),
|
|
363
|
+
_: 2
|
|
364
|
+
}, 1032, ["title"])) : (s(), h(B, { key: 1 }, [
|
|
365
|
+
l.condition === void 0 || l.condition === null || C(F)(l.condition, {
|
|
366
|
+
$row: a,
|
|
367
|
+
$globalParams: C($)()
|
|
368
|
+
}) ? (s(), f(w, {
|
|
369
|
+
key: 0,
|
|
370
|
+
disabled: l.disabled,
|
|
371
|
+
link: "",
|
|
372
|
+
size: "small",
|
|
373
|
+
type: l.type,
|
|
374
|
+
onClick: q((P) => M(l, a, p), ["stop"])
|
|
375
|
+
}, {
|
|
376
|
+
default: d(() => [
|
|
377
|
+
v(r, {
|
|
378
|
+
class: "box-item",
|
|
379
|
+
effect: "dark",
|
|
380
|
+
content: l.label,
|
|
381
|
+
placement: "top",
|
|
382
|
+
"popper-class": "low-tsp"
|
|
383
|
+
}, {
|
|
384
|
+
default: d(() => [
|
|
385
|
+
l.icon ? (s(), f(E, {
|
|
386
|
+
key: 0,
|
|
387
|
+
name: l.icon.name,
|
|
388
|
+
color: l.icon.color
|
|
389
|
+
}, null, 8, ["name", "color"])) : y("", !0)
|
|
390
|
+
]),
|
|
391
|
+
_: 2
|
|
392
|
+
}, 1032, ["content"])
|
|
393
|
+
]),
|
|
394
|
+
_: 2
|
|
395
|
+
}, 1032, ["disabled", "type", "onClick"])) : y("", !0)
|
|
396
|
+
], 64))
|
|
397
|
+
], 64))), 128))
|
|
398
|
+
])
|
|
399
|
+
]),
|
|
400
|
+
_: 1
|
|
401
|
+
}, 8, ["width"])) : y("", !0)
|
|
402
|
+
]),
|
|
403
|
+
_: 1
|
|
404
|
+
}, 8, ["data", "row-key", "stripe", "height"])
|
|
405
|
+
], 512), [
|
|
406
|
+
[J, R.value === "table"]
|
|
407
|
+
]),
|
|
408
|
+
x(v(Ge, Ae({ data: i.value }, n, { getColText: k }), null, 16, ["data"]), [
|
|
409
|
+
[J, R.value === "card"]
|
|
410
|
+
]),
|
|
411
|
+
m("div", {
|
|
412
|
+
class: D(["pagination-wrapper", {
|
|
413
|
+
hidePagination: (e.hiddenPagination || i.value.length === 0) && !e.height,
|
|
414
|
+
transparentPagination: (e.hiddenPagination || i.value.length === 0) && e.height,
|
|
415
|
+
cardlistPadding: R.value === "card"
|
|
416
|
+
}])
|
|
417
|
+
}, [
|
|
418
|
+
v(Pe, {
|
|
419
|
+
layout: "total,sizes, prev, pager, next,jumper",
|
|
420
|
+
total: U.value,
|
|
421
|
+
"page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
|
|
422
|
+
"default-page-size": e.defaultPageSize,
|
|
423
|
+
"current-page": c.value.pageNum,
|
|
424
|
+
"onUpdate:currentPage": t[0] || (t[0] = (a) => c.value.pageNum = a),
|
|
425
|
+
"page-size": c.value.pageSize,
|
|
426
|
+
"onUpdate:pageSize": t[1] || (t[1] = (a) => c.value.pageSize = a),
|
|
427
|
+
"pager-count": e.pagerCount,
|
|
428
|
+
onSizeChange: fe,
|
|
429
|
+
onCurrentChange: ye
|
|
430
|
+
}, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
|
|
431
|
+
], 2)
|
|
432
|
+
], 10, xe));
|
|
433
|
+
};
|
|
434
|
+
}
|
|
435
|
+
}), at = /* @__PURE__ */ He(Ze, [["__scopeId", "data-v-550c8708"]]);
|
|
436
|
+
export {
|
|
437
|
+
at as default
|
|
438
|
+
};
|
|
@@ -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-DQ889qV3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const w = /* @__PURE__ */ i({
|
|
5
5
|
__name: "Tabs",
|
|
@@ -0,0 +1,87 @@
|
|
|
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 b, createElementVNode as g, normalizeClass as d, unref as S, createCommentVNode as u, vShow as x } from "vue";
|
|
2
|
+
import { j as B, a as k, I as y, b as E } from "./index-DQ889qV3.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const D = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "dropdown-icon-wrapper"
|
|
7
|
+
}, j = {
|
|
8
|
+
key: 1,
|
|
9
|
+
class: "expansion-icon-wrapper"
|
|
10
|
+
}, A = /* @__PURE__ */ f({
|
|
11
|
+
__name: "Wrapper",
|
|
12
|
+
props: {
|
|
13
|
+
children: {},
|
|
14
|
+
style: { type: [Boolean, null, String, Object, Array] },
|
|
15
|
+
innerStyle: { type: [Boolean, null, String, Object, Array] },
|
|
16
|
+
type: {},
|
|
17
|
+
collapse: { type: Boolean },
|
|
18
|
+
dropdown: { type: Boolean },
|
|
19
|
+
expansion: { type: Boolean },
|
|
20
|
+
onDropdownChange: {},
|
|
21
|
+
onExpand: {}
|
|
22
|
+
},
|
|
23
|
+
setup(m) {
|
|
24
|
+
const o = m, { ruleModule: s, pageMethodMap: p } = B(), n = i(!1), h = () => {
|
|
25
|
+
if (o.onDropdownChange) {
|
|
26
|
+
n.value = !n.value;
|
|
27
|
+
try {
|
|
28
|
+
s[o.onDropdownChange](p, n.value);
|
|
29
|
+
} catch (e) {
|
|
30
|
+
console.error(e);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}, a = i(!1), v = () => {
|
|
34
|
+
if (o.onExpand) {
|
|
35
|
+
a.value = !a.value;
|
|
36
|
+
try {
|
|
37
|
+
s[o.onExpand](p, a.value);
|
|
38
|
+
} catch (e) {
|
|
39
|
+
console.error(e);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
return (e, I) => {
|
|
44
|
+
const w = C("el-collapse-transition");
|
|
45
|
+
return r(), t("div", {
|
|
46
|
+
style: c(e.style)
|
|
47
|
+
}, [
|
|
48
|
+
l(w, null, {
|
|
49
|
+
default: _(() => [
|
|
50
|
+
b(g("div", {
|
|
51
|
+
class: d({
|
|
52
|
+
normal: e.type === "normal",
|
|
53
|
+
onlytable: e.type === "onlytable",
|
|
54
|
+
dropdownChildren: e.type === "dropdown-children",
|
|
55
|
+
expansionWrapper: e.expansion
|
|
56
|
+
}),
|
|
57
|
+
style: c(e.innerStyle)
|
|
58
|
+
}, [
|
|
59
|
+
l(S(k), { list: e.children }, null, 8, ["list"]),
|
|
60
|
+
e.dropdown ? (r(), t("div", D, [
|
|
61
|
+
l(y, {
|
|
62
|
+
name: "icon-xialaliebiao",
|
|
63
|
+
color: "#666666",
|
|
64
|
+
onClick: h,
|
|
65
|
+
class: d({ reversed: n.value })
|
|
66
|
+
}, null, 8, ["class"])
|
|
67
|
+
])) : u("", !0),
|
|
68
|
+
e.expansion ? (r(), t("div", j, [
|
|
69
|
+
l(y, {
|
|
70
|
+
name: "icon-shuangxiangjiantou",
|
|
71
|
+
color: a.value ? "#18AAF8" : "#666666",
|
|
72
|
+
onClick: v
|
|
73
|
+
}, null, 8, ["color"])
|
|
74
|
+
])) : u("", !0)
|
|
75
|
+
], 6), [
|
|
76
|
+
[x, !e.collapse]
|
|
77
|
+
])
|
|
78
|
+
]),
|
|
79
|
+
_: 1
|
|
80
|
+
})
|
|
81
|
+
], 4);
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
}), W = /* @__PURE__ */ E(A, [["__scopeId", "data-v-bdb9b825"]]);
|
|
85
|
+
export {
|
|
86
|
+
W as default
|
|
87
|
+
};
|