asiaint-lowcode 3.0.66 → 3.0.68
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 +110 -110
- package/dist/index.d.ts +3 -3
- package/dist/lazy/{Card-B-PW_xf6.js → Card-ysVN7qHR.js} +2 -2
- package/dist/lazy/{Cascader-DTPcbjS4.js → Cascader-DJABoAfH.js} +3 -3
- package/dist/lazy/{Checkbox-Cb7eQedp.js → Checkbox-D0v6QNJN.js} +3 -3
- package/dist/lazy/{Collapse-uKo4xUZR.js → Collapse-BFtG68zc.js} +1 -1
- package/dist/lazy/{Component-DPfeaS5u.js → Component-AqG4VQ4u.js} +2 -2
- package/dist/lazy/{Component-CzEIuniO.js → Component-BSX0EjTP.js} +1 -1
- package/dist/lazy/{Component-DX8iDxku.js → Component-BX_97yhN.js} +1 -1
- package/dist/lazy/{Component-BnILgymP.js → Component-DN3l-txo.js} +2 -2
- package/dist/lazy/{Component-D1dV4qbv.js → Component-DqAzJMmZ.js} +13 -13
- package/dist/lazy/{Component-BdbW3xbq.js → Component-Dw1pIsAD.js} +1 -1
- package/dist/lazy/{CurdCard-BE_lAuIU.js → CurdCard-CNvvA2No.js} +2 -2
- package/dist/lazy/{Custom-BnOejQu4.js → Custom-C7iW45pl.js} +7 -7
- package/dist/lazy/{FormList-8i6IjOEd.js → FormList-BDXeSZGB.js} +1 -1
- package/dist/lazy/{Grid-DM0t1623.js → Grid-BoNKOX_A.js} +1 -1
- package/dist/lazy/{Inline-CvVDnLAl.js → Inline-ZxrVUTLi.js} +7 -7
- package/dist/lazy/{JsonEdit-CblpfCk6.js → JsonEdit-vKF6uoj8.js} +3 -3
- package/dist/lazy/{LogList-D4E9Sd3U.js → LogList-Bs3Zm8ev.js} +7 -7
- package/dist/lazy/{ObjGroup-J8MBNfx9.js → ObjGroup-Cg55zBpI.js} +1 -1
- package/dist/lazy/{OfferDetails-DRm-adPQ.js → OfferDetails-BUs3dMQ0.js} +24 -24
- package/dist/lazy/{Progress-CU3cbDYw.js → Progress-BFq_B48w.js} +5 -5
- package/dist/lazy/{Radio-w2_WJsy1.js → Radio-DEutxBco.js} +3 -3
- package/dist/lazy/{SearchSelect-BpdYzYvx.js → SearchSelect-CCrvdkNF.js} +13 -13
- package/dist/lazy/{Select-B0WsuNDL.js → Select-cE7qj7UQ.js} +24 -24
- package/dist/lazy/{Table-Bl1g8c0p.js → Table-DuFxUS6E.js} +137 -123
- package/dist/lazy/{Tabs-RUkui_oF.js → Tabs-Dnr3-Mm8.js} +1 -1
- package/dist/lazy/{Wrapper-DmL_tRcc.js → Wrapper-CsJ4AM9s.js} +5 -5
- package/dist/lazy/{index-BHAyF-de.js → index-D4vAX6zS.js} +2407 -2393
- package/dist/lazy/{useSelect-DZdGLXAq.js → useSelect-DAHj1iNH.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
|
@@ -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 k, mergeProps as j, withCtx as b, Fragment as P, renderList as $, createTextVNode as E, createVNode as B } from "vue";
|
|
2
|
-
import { u as L, _ as O, b as T } from "./index-
|
|
3
|
-
import { u as U } from "./useSelect-
|
|
2
|
+
import { u as L, _ as O, b as T } from "./index-D4vAX6zS.js";
|
|
3
|
+
import { u as U } from "./useSelect-DAHj1iNH.js";
|
|
4
4
|
const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
5
5
|
key: 1,
|
|
6
6
|
class: "search-select-wrapper"
|
|
@@ -21,9 +21,9 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
21
21
|
dependentFields: {},
|
|
22
22
|
name: { default: "" },
|
|
23
23
|
onChange: {},
|
|
24
|
-
clearable: { type: Boolean },
|
|
25
24
|
filters: {},
|
|
26
|
-
refreshFlag: { type: Boolean }
|
|
25
|
+
refreshFlag: { type: Boolean },
|
|
26
|
+
clearable: { type: Boolean }
|
|
27
27
|
}, {
|
|
28
28
|
modelValue: { type: [String, Number, Boolean, Array] },
|
|
29
29
|
modelModifiers: {}
|
|
@@ -31,9 +31,9 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
31
31
|
emits: ["update:modelValue"],
|
|
32
32
|
setup(v) {
|
|
33
33
|
const t = v, r = A(v, "modelValue"), h = L(), c = S("ruleModule", void 0), g = S("pageMethodMap", {}), C = (e) => {
|
|
34
|
-
const { valueKey:
|
|
34
|
+
const { valueKey: d = "value", multiple: m, name: p } = t;
|
|
35
35
|
let n = {};
|
|
36
|
-
if (m && Array.isArray(e) ? n =
|
|
36
|
+
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)
|
|
37
37
|
try {
|
|
38
38
|
c[t.onChange](g, e, n);
|
|
39
39
|
} catch (a) {
|
|
@@ -46,19 +46,19 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
46
46
|
} catch (e) {
|
|
47
47
|
console.error(e);
|
|
48
48
|
}
|
|
49
|
-
}, { currentOptions:
|
|
50
|
-
return (e,
|
|
49
|
+
}, { currentOptions: s, loading: V } = U(t);
|
|
50
|
+
return (e, d) => {
|
|
51
51
|
var _;
|
|
52
52
|
const m = f("el-option"), p = f("el-select"), n = f("el-button"), a = I("loading");
|
|
53
53
|
return e.read ? (o(), i("div", q, [
|
|
54
54
|
e.multiple ? (o(), i("div", z, y(r.value && r.value.map((l) => {
|
|
55
55
|
var K;
|
|
56
|
-
return (K = u(
|
|
57
|
-
}).join("、")), 1)) : (o(), i("div", G, y(((_ = u(
|
|
56
|
+
return (K = u(s).find((D) => D[e.valueKey] === l)) == null ? void 0 : K[e.labelKey];
|
|
57
|
+
}).join("、")), 1)) : (o(), i("div", G, y(((_ = u(s).find((l) => l[e.valueKey] === r.value)) == null ? void 0 : _[e.labelKey]) || "--"), 1))
|
|
58
58
|
])) : (o(), i("div", H, [
|
|
59
59
|
N((o(), k(p, j({
|
|
60
60
|
modelValue: r.value,
|
|
61
|
-
"onUpdate:modelValue":
|
|
61
|
+
"onUpdate:modelValue": d[0] || (d[0] = (l) => r.value = l)
|
|
62
62
|
}, e.$attrs, {
|
|
63
63
|
onChange: C,
|
|
64
64
|
multiple: e.multiple,
|
|
@@ -67,7 +67,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
67
67
|
disabled: e.disabled
|
|
68
68
|
}), {
|
|
69
69
|
default: b(() => [
|
|
70
|
-
(o(!0), i(P, null, $(u(
|
|
70
|
+
(o(!0), i(P, null, $(u(s), (l) => (o(), k(m, {
|
|
71
71
|
key: l[e.valueKey],
|
|
72
72
|
label: l[e.labelKey],
|
|
73
73
|
value: l[e.valueKey],
|
|
@@ -96,7 +96,7 @@ const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
|
|
|
96
96
|
]));
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
|
-
}), X = /* @__PURE__ */ T(J, [["__scopeId", "data-v-
|
|
99
|
+
}), X = /* @__PURE__ */ T(J, [["__scopeId", "data-v-ce5f6b46"]]);
|
|
100
100
|
export {
|
|
101
101
|
X as default
|
|
102
102
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as
|
|
3
|
-
import { u as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as k, mergeModels as D, computed as f, useModel as S, inject as y, resolveComponent as v, resolveDirective as F, openBlock as s, createElementBlock as i, toDisplayString as b, createBlock as g, mergeProps as A, withCtx as h, withDirectives as j, Fragment as w, renderList as I, unref as K, createTextVNode as N } from "vue";
|
|
2
|
+
import { u as P } from "./index-D4vAX6zS.js";
|
|
3
|
+
import { u as $ } from "./useSelect-DAHj1iNH.js";
|
|
4
|
+
const E = { key: 0 }, L = { style: { "min-height": "32px" } }, q = /* @__PURE__ */ k({
|
|
5
5
|
__name: "Select",
|
|
6
|
-
props: /* @__PURE__ */
|
|
6
|
+
props: /* @__PURE__ */ D({
|
|
7
7
|
options: { default: () => [] },
|
|
8
8
|
multiple: { type: Boolean, default: !1 },
|
|
9
9
|
mode: { default: "static" },
|
|
@@ -16,25 +16,25 @@ const $ = { key: 0 }, E = { style: { "min-height": "32px" } }, U = /* @__PURE__
|
|
|
16
16
|
name: { default: "" },
|
|
17
17
|
onChange: {},
|
|
18
18
|
read: { type: Boolean },
|
|
19
|
-
clearable: { type: Boolean },
|
|
20
19
|
filters: {},
|
|
21
|
-
refreshFlag: { type: Boolean }
|
|
20
|
+
refreshFlag: { type: Boolean },
|
|
21
|
+
clearable: { type: Boolean, default: !0 }
|
|
22
22
|
}, {
|
|
23
23
|
modelValue: { type: [String, Number, Boolean, Array] },
|
|
24
24
|
modelModifiers: {}
|
|
25
25
|
}),
|
|
26
26
|
emits: ["update:modelValue"],
|
|
27
|
-
setup(
|
|
28
|
-
const a =
|
|
27
|
+
setup(c) {
|
|
28
|
+
const a = c, V = f(() => a.clearable === null || a.clearable === void 0 ? !0 : !!a.clearable), d = S(c, "modelValue"), p = P(), m = y("ruleModule", void 0), C = y("pageMethodMap", {}), M = (e) => {
|
|
29
29
|
const { valueKey: t = "value", multiple: n, name: o } = a;
|
|
30
30
|
let r = {};
|
|
31
|
-
if (n && Array.isArray(e) ? r = u.value.filter((l) => e.includes(l[t])) : r = u.value.find((l) => l[t] === e) || {},
|
|
31
|
+
if (n && Array.isArray(e) ? r = u.value.filter((l) => e.includes(l[t])) : r = u.value.find((l) => l[t] === e) || {}, p.selectData && o && p.updateSelectData(o, r), a.onChange && m)
|
|
32
32
|
try {
|
|
33
|
-
m[a.onChange](
|
|
33
|
+
m[a.onChange](C, e, r);
|
|
34
34
|
} catch (l) {
|
|
35
35
|
console.error(l);
|
|
36
36
|
}
|
|
37
|
-
}, { currentOptions: u, loading:
|
|
37
|
+
}, { currentOptions: u, loading: B } = $(a), _ = f(() => {
|
|
38
38
|
var t;
|
|
39
39
|
if (a.multiple)
|
|
40
40
|
return u.value.filter(
|
|
@@ -44,40 +44,40 @@ const $ = { key: 0 }, E = { style: { "min-height": "32px" } }, U = /* @__PURE__
|
|
|
44
44
|
return !e || `${e}`.trim().length === 0 ? "--" : e;
|
|
45
45
|
});
|
|
46
46
|
return (e, t) => {
|
|
47
|
-
const n =
|
|
48
|
-
return e.read ? (s(), i("span",
|
|
47
|
+
const n = v("el-option"), o = v("el-select"), r = F("loading");
|
|
48
|
+
return e.read ? (s(), i("span", E, b(_.value), 1)) : (s(), g(o, A({
|
|
49
49
|
key: 1,
|
|
50
50
|
modelValue: d.value,
|
|
51
51
|
"onUpdate:modelValue": t[0] || (t[0] = (l) => d.value = l)
|
|
52
52
|
}, e.$attrs, {
|
|
53
|
-
onChange:
|
|
53
|
+
onChange: M,
|
|
54
54
|
multiple: e.multiple,
|
|
55
|
-
clearable:
|
|
55
|
+
clearable: V.value,
|
|
56
56
|
filterable: "",
|
|
57
57
|
"fallback-placements": ["bottom"]
|
|
58
58
|
}), {
|
|
59
|
-
default:
|
|
60
|
-
|
|
61
|
-
(s(!0), i(
|
|
59
|
+
default: h(() => [
|
|
60
|
+
j((s(), i("div", L, [
|
|
61
|
+
(s(!0), i(w, null, I(K(u), (l) => (s(), g(n, {
|
|
62
62
|
key: l[e.valueKey],
|
|
63
63
|
label: l[e.labelKey],
|
|
64
64
|
value: l[e.valueKey],
|
|
65
65
|
disabled: l[e.disabledKey]
|
|
66
66
|
}, {
|
|
67
|
-
default:
|
|
68
|
-
|
|
67
|
+
default: h(() => [
|
|
68
|
+
N(b(l[e.labelKey]), 1)
|
|
69
69
|
]),
|
|
70
70
|
_: 2
|
|
71
71
|
}, 1032, ["label", "value", "disabled"]))), 128))
|
|
72
72
|
])), [
|
|
73
|
-
[r,
|
|
73
|
+
[r, K(B)]
|
|
74
74
|
])
|
|
75
75
|
]),
|
|
76
76
|
_: 1
|
|
77
|
-
}, 16, ["modelValue", "multiple"]));
|
|
77
|
+
}, 16, ["modelValue", "multiple", "clearable"]));
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
q as default
|
|
83
83
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { $ as
|
|
3
|
-
import { ElTable as Ue } from "element-plus";
|
|
4
|
-
const je = ["id"], Ge = { class: "empty-content" }, He = ["title"], Ke = ["title", "onClick"],
|
|
1
|
+
import { defineComponent as Se, computed as _, inject as k, ref as v, useTemplateRef as ze, readonly as Be, toRefs as Re, onMounted as Pe, nextTick as _e, onActivated as Ne, onUnmounted as Me, resolveComponent as B, openBlock as u, createElementBlock as g, normalizeClass as N, withDirectives as j, createElementVNode as f, createVNode as b, unref as R, withCtx as h, createBlock as S, createCommentVNode as m, Fragment as P, renderList as G, toDisplayString as M, withModifiers as Te, vShow as H, mergeProps as De } from "vue";
|
|
2
|
+
import { $ as $e, f as K, i as Fe, _ as Ee, I as Ae, C as Le, b as Ve } from "./index-D4vAX6zS.js";
|
|
3
|
+
import { ElTable as Ue, ElLoading as W } from "element-plus";
|
|
4
|
+
const je = ["id"], Ge = { class: "empty-content" }, He = ["title"], Ke = ["title", "onClick"], We = ["title"], qe = { class: "row-btn-wrapper" }, Ie = /* @__PURE__ */ Se({
|
|
5
5
|
__name: "Table",
|
|
6
6
|
props: {
|
|
7
7
|
title: {},
|
|
@@ -34,49 +34,49 @@ const je = ["id"], Ge = { class: "empty-content" }, He = ["title"], Ke = ["title
|
|
|
34
34
|
collapsible: { type: Boolean },
|
|
35
35
|
name: {}
|
|
36
36
|
},
|
|
37
|
-
setup(
|
|
38
|
-
const n =
|
|
39
|
-
}), $ = k(
|
|
40
|
-
|
|
41
|
-
},
|
|
37
|
+
setup(q, { expose: I }) {
|
|
38
|
+
const n = q, z = _(() => n.displayType ? n.displayType : n.typeSwitch ? "card" : "table"), J = k("ruleModule", void 0), T = k("ruleMap", void 0), c = _(() => n.rulePath && T[n.rulePath] ? T[n.rulePath] : J), d = k("pageMethodMap", {}), D = k("getGlobalParams", () => {
|
|
39
|
+
}), $ = k($e), F = $ ? $.translateFn : null, y = v(), O = (e, t, a) => {
|
|
40
|
+
i.value[e] && (i.value[e][t] = a);
|
|
41
|
+
}, Q = (e, t) => {
|
|
42
42
|
const a = n.columns.find((l) => l.key === e);
|
|
43
43
|
a && (a.hidden = !t);
|
|
44
|
-
},
|
|
44
|
+
}, E = (e, t, a) => {
|
|
45
45
|
try {
|
|
46
|
-
c.value[e.onClick](
|
|
46
|
+
c.value[e.onClick](d, t, a);
|
|
47
47
|
} catch (l) {
|
|
48
48
|
console.error(l);
|
|
49
49
|
}
|
|
50
|
-
},
|
|
50
|
+
}, X = (e) => {
|
|
51
51
|
if (n.rowClick)
|
|
52
52
|
try {
|
|
53
|
-
c.value[n.rowClick](
|
|
53
|
+
c.value[n.rowClick](d, e);
|
|
54
54
|
} catch (t) {
|
|
55
55
|
console.error(t);
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Y = (e) => {
|
|
58
58
|
if (n.rowDbClick)
|
|
59
59
|
try {
|
|
60
|
-
c.value[n.rowDbClick](
|
|
60
|
+
c.value[n.rowDbClick](d, e);
|
|
61
61
|
} catch (t) {
|
|
62
62
|
console.error(t);
|
|
63
63
|
}
|
|
64
|
-
},
|
|
65
|
-
|
|
66
|
-
},
|
|
64
|
+
}, Z = v([]), x = (e) => {
|
|
65
|
+
Z.value = e;
|
|
66
|
+
}, ee = () => {
|
|
67
67
|
var e;
|
|
68
68
|
(e = y.value) == null || e.clearSelection();
|
|
69
|
-
},
|
|
70
|
-
if (
|
|
69
|
+
}, te = () => i.value, A = v(), ne = (e) => {
|
|
70
|
+
if (A.value = e, !!n.handleCurrentChange)
|
|
71
71
|
try {
|
|
72
|
-
c.value[n.handleCurrentChange](
|
|
72
|
+
c.value[n.handleCurrentChange](d, e);
|
|
73
73
|
} catch (t) {
|
|
74
74
|
console.error(t);
|
|
75
75
|
}
|
|
76
|
-
},
|
|
76
|
+
}, ae = () => A.value, oe = () => {
|
|
77
77
|
var e;
|
|
78
78
|
return (e = y.value) == null ? void 0 : e.getSelectionRows();
|
|
79
|
-
},
|
|
79
|
+
}, le = async () => !0, ie = (e, t) => {
|
|
80
80
|
var l;
|
|
81
81
|
const a = (l = n.topBtns) == null ? void 0 : l.find((w) => w.key === e);
|
|
82
82
|
a && (a.hidden = t);
|
|
@@ -84,65 +84,79 @@ const je = ["id"], Ge = { class: "empty-content" }, He = ["title"], Ke = ["title
|
|
|
84
84
|
var l;
|
|
85
85
|
const a = (l = n.rowBtns) == null ? void 0 : l.find((w) => w.key === e);
|
|
86
86
|
a && (a.condition = !t);
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
},
|
|
87
|
+
}, L = v(0), se = (e) => {
|
|
88
|
+
L.value = e;
|
|
89
|
+
}, r = v({ pageNum: 1, pageSize: n.defaultPageSize || 5 }), ue = () => r.value, ce = (e) => {
|
|
90
90
|
let t = !1;
|
|
91
|
-
return e.pageNum > -1 && (
|
|
92
|
-
},
|
|
93
|
-
if (
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
},
|
|
91
|
+
return e.pageNum !== void 0 && e.pageNum > -1 && (r.value.pageNum !== e.pageNum && (t = !0), r.value.pageNum = e.pageNum), e.pageSize !== void 0 && e.pageSize > -1 && (r.value.pageSize !== e.pageSize && (t = !0), r.value.pageSize = e.pageSize), { pagination: r.value, isChange: t };
|
|
92
|
+
}, de = async (e) => {
|
|
93
|
+
if (r.value.pageNum = 1, r.value.pageSize = e, !n.sizeChange)
|
|
94
|
+
return;
|
|
95
|
+
const t = W.service({
|
|
96
|
+
target: `#${n.name}`,
|
|
97
|
+
text: "Loading..."
|
|
98
|
+
});
|
|
99
|
+
try {
|
|
100
|
+
await c.value[n.sizeChange](d, r.value);
|
|
101
|
+
} catch (a) {
|
|
102
|
+
console.error(a);
|
|
103
|
+
} finally {
|
|
104
|
+
t.close();
|
|
105
|
+
}
|
|
106
|
+
}, pe = async (e) => {
|
|
107
|
+
if (r.value.pageNum = e, !n.pageChange)
|
|
108
|
+
return;
|
|
109
|
+
const t = W.service({
|
|
110
|
+
target: `#${n.name}`,
|
|
111
|
+
text: "Loading..."
|
|
112
|
+
});
|
|
113
|
+
try {
|
|
114
|
+
await c.value[n.pageChange](d, r.value);
|
|
115
|
+
} catch (a) {
|
|
116
|
+
console.error(a);
|
|
117
|
+
} finally {
|
|
118
|
+
t.close();
|
|
119
|
+
}
|
|
120
|
+
}, ge = (e) => {
|
|
107
121
|
var t;
|
|
108
122
|
(t = y.value) == null || t.setCurrentRow(e);
|
|
109
|
-
},
|
|
123
|
+
}, he = (e) => {
|
|
110
124
|
var t;
|
|
111
|
-
(t = y.value) == null || t.setCurrentRow(
|
|
112
|
-
},
|
|
125
|
+
(t = y.value) == null || t.setCurrentRow(i.value[e]);
|
|
126
|
+
}, ve = (e, t, a) => {
|
|
113
127
|
n.columns.forEach((l) => {
|
|
114
128
|
l.key === e && l[t] && (l[t] = a);
|
|
115
129
|
});
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
},
|
|
121
|
-
e >= 0 && e <
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
},
|
|
125
|
-
...
|
|
126
|
-
setCellData:
|
|
127
|
-
clearSelection:
|
|
128
|
-
getData:
|
|
129
|
-
getCurrentRow:
|
|
130
|
-
getSelectedRows:
|
|
131
|
-
addRow:
|
|
132
|
-
deleteRow:
|
|
133
|
-
refresh:
|
|
134
|
-
validate:
|
|
130
|
+
}, i = v([]), fe = (e) => {
|
|
131
|
+
i.value = e;
|
|
132
|
+
}, me = (e = {}) => {
|
|
133
|
+
i.value.push(e);
|
|
134
|
+
}, ye = (e) => {
|
|
135
|
+
e >= 0 && e < i.value.length && i.value.splice(e, 1);
|
|
136
|
+
}, Ce = async () => {
|
|
137
|
+
i.value = [...i.value];
|
|
138
|
+
}, V = ze("rootRef"), U = Be({
|
|
139
|
+
...Re(n),
|
|
140
|
+
setCellData: O,
|
|
141
|
+
clearSelection: ee,
|
|
142
|
+
getData: te,
|
|
143
|
+
getCurrentRow: ae,
|
|
144
|
+
getSelectedRows: oe,
|
|
145
|
+
addRow: me,
|
|
146
|
+
deleteRow: ye,
|
|
147
|
+
refresh: Ce,
|
|
148
|
+
validate: le,
|
|
135
149
|
setData: fe,
|
|
136
|
-
selectRow:
|
|
137
|
-
selectRowNum:
|
|
138
|
-
setTotal:
|
|
139
|
-
getPagination:
|
|
140
|
-
setPagination:
|
|
141
|
-
setTopBtnHidden:
|
|
142
|
-
setColVisible:
|
|
143
|
-
setColumn:
|
|
150
|
+
selectRow: ge,
|
|
151
|
+
selectRowNum: he,
|
|
152
|
+
setTotal: se,
|
|
153
|
+
getPagination: ue,
|
|
154
|
+
setPagination: ce,
|
|
155
|
+
setTopBtnHidden: ie,
|
|
156
|
+
setColVisible: Q,
|
|
157
|
+
setColumn: ve,
|
|
144
158
|
setRowsBtnHidden: re,
|
|
145
|
-
rootRef:
|
|
159
|
+
rootRef: V,
|
|
146
160
|
type: "table"
|
|
147
161
|
}), C = (e, t) => {
|
|
148
162
|
const a = F ? F(e.key, t) : t[e.key];
|
|
@@ -150,71 +164,71 @@ const je = ["id"], Ge = { class: "empty-content" }, He = ["title"], Ke = ["title
|
|
|
150
164
|
return a;
|
|
151
165
|
const l = `${a}`;
|
|
152
166
|
return l.length <= 4 ? "*".repeat(l.length) : l.slice(0, -4) + "****";
|
|
153
|
-
},
|
|
167
|
+
}, we = _(() => !n.rowBtns || n.rowBtns.length === 0 || !i.value || i.value.length === 0 ? !1 : i.value.some(
|
|
154
168
|
(e) => {
|
|
155
169
|
var t;
|
|
156
|
-
return (t = n.rowBtns) == null ? void 0 : t.some((a) => a.condition === void 0 || a.condition === null ? !0 :
|
|
170
|
+
return (t = n.rowBtns) == null ? void 0 : t.some((a) => a.condition === void 0 || a.condition === null ? !0 : K(a.condition, {
|
|
157
171
|
$row: e,
|
|
158
172
|
$globalParams: D()
|
|
159
173
|
}));
|
|
160
174
|
}
|
|
161
175
|
));
|
|
162
|
-
if (
|
|
176
|
+
if (Pe(async () => {
|
|
163
177
|
if (!n.onMounted || !c.value)
|
|
164
178
|
return;
|
|
165
|
-
await
|
|
179
|
+
await _e();
|
|
166
180
|
const e = n.onMounted;
|
|
167
181
|
try {
|
|
168
|
-
c.value[e](
|
|
182
|
+
c.value[e](d);
|
|
169
183
|
} catch (t) {
|
|
170
184
|
console.error(t);
|
|
171
185
|
}
|
|
172
|
-
}),
|
|
186
|
+
}), Ne(() => {
|
|
173
187
|
if (!n.onActivated || !c.value)
|
|
174
188
|
return;
|
|
175
189
|
const e = n.onActivated;
|
|
176
190
|
try {
|
|
177
|
-
c.value[e](
|
|
191
|
+
c.value[e](d);
|
|
178
192
|
} catch (t) {
|
|
179
193
|
console.error(t);
|
|
180
194
|
}
|
|
181
195
|
}), n.name) {
|
|
182
|
-
const e =
|
|
183
|
-
|
|
196
|
+
const e = Fe(n.name, U);
|
|
197
|
+
Me(() => {
|
|
184
198
|
e();
|
|
185
199
|
});
|
|
186
200
|
}
|
|
187
|
-
return
|
|
188
|
-
const a = B("el-table-column"), l = B("el-tooltip"), w = B("el-button"),
|
|
201
|
+
return I(U), (e, t) => {
|
|
202
|
+
const a = B("el-table-column"), l = B("el-tooltip"), w = B("el-button"), ke = B("el-pagination");
|
|
189
203
|
return e.hidden ? m("", !0) : (u(), g("div", {
|
|
190
204
|
key: 0,
|
|
191
205
|
class: N(["table-render", { tableBorder: z.value === "table" }]),
|
|
192
206
|
ref_key: "rootRef",
|
|
193
|
-
ref:
|
|
207
|
+
ref: V,
|
|
194
208
|
id: e.name
|
|
195
209
|
}, [
|
|
196
|
-
|
|
210
|
+
j(f("div", null, [
|
|
197
211
|
b(R(Ue), {
|
|
198
212
|
ref_key: "tableRef",
|
|
199
213
|
ref: y,
|
|
200
|
-
data:
|
|
214
|
+
data: i.value,
|
|
201
215
|
"highlight-current-row": "",
|
|
202
216
|
"row-key": e.rowKey,
|
|
203
217
|
stripe: e.stripe,
|
|
204
218
|
"show-overflow-tooltip": "",
|
|
205
|
-
onRowClick:
|
|
206
|
-
onRowDblclick:
|
|
207
|
-
onSelectionChange:
|
|
208
|
-
onCurrentChange:
|
|
219
|
+
onRowClick: X,
|
|
220
|
+
onRowDblclick: Y,
|
|
221
|
+
onSelectionChange: x,
|
|
222
|
+
onCurrentChange: ne,
|
|
209
223
|
height: e.height
|
|
210
224
|
}, {
|
|
211
225
|
empty: h(() => [
|
|
212
|
-
|
|
213
|
-
b(R(
|
|
226
|
+
f("div", Ge, [
|
|
227
|
+
b(R(Ee), {
|
|
214
228
|
name: "tableEmpty",
|
|
215
229
|
style: { width: 56, height: 56 }
|
|
216
230
|
}),
|
|
217
|
-
t[2] || (t[2] =
|
|
231
|
+
t[2] || (t[2] = f("div", null, "No data available,please check", -1))
|
|
218
232
|
])
|
|
219
233
|
]),
|
|
220
234
|
default: h(() => [
|
|
@@ -223,7 +237,7 @@ const je = ["id"], Ge = { class: "empty-content" }, He = ["title"], Ke = ["title
|
|
|
223
237
|
type: "selection",
|
|
224
238
|
width: "55"
|
|
225
239
|
})) : m("", !0),
|
|
226
|
-
(u(!0), g(P, null,
|
|
240
|
+
(u(!0), g(P, null, G(e.columns, (o) => (u(), g(P, {
|
|
227
241
|
key: o.key
|
|
228
242
|
}, [
|
|
229
243
|
o.hidden ? m("", !0) : (u(), S(a, {
|
|
@@ -233,45 +247,45 @@ const je = ["id"], Ge = { class: "empty-content" }, He = ["title"], Ke = ["title
|
|
|
233
247
|
fixed: o.fixed || !1
|
|
234
248
|
}, {
|
|
235
249
|
header: h(() => [
|
|
236
|
-
|
|
250
|
+
f("div", {
|
|
237
251
|
class: "text-ellipsis",
|
|
238
252
|
title: o.label
|
|
239
253
|
}, M(o.label), 9, He)
|
|
240
254
|
]),
|
|
241
|
-
default: h(({ row:
|
|
255
|
+
default: h(({ row: p, $index: s }) => [
|
|
242
256
|
o.type === "link" ? (u(), g("div", {
|
|
243
257
|
key: 0,
|
|
244
258
|
class: N(["text-ellipsis link-style", { "click-style": o.onClick }]),
|
|
245
|
-
title: C(o,
|
|
246
|
-
onClick: (
|
|
247
|
-
}, M(C(o,
|
|
259
|
+
title: C(o, p),
|
|
260
|
+
onClick: (be) => E(o, p, s)
|
|
261
|
+
}, M(C(o, p)), 11, Ke)) : (u(), g("div", {
|
|
248
262
|
key: 1,
|
|
249
263
|
class: "text-ellipsis",
|
|
250
|
-
title: C(o,
|
|
251
|
-
}, M(C(o,
|
|
264
|
+
title: C(o, p)
|
|
265
|
+
}, M(C(o, p)), 9, We))
|
|
252
266
|
]),
|
|
253
267
|
_: 2
|
|
254
268
|
}, 1032, ["prop", "min-width", "fixed"]))
|
|
255
269
|
], 64))), 128)),
|
|
256
|
-
|
|
270
|
+
we.value && e.rowBtns && e.rowBtns.length > 0 ? (u(), S(a, {
|
|
257
271
|
key: 1,
|
|
258
272
|
label: "Action",
|
|
259
273
|
fixed: "right",
|
|
260
274
|
align: "left",
|
|
261
275
|
width: e.rowBtns.length * 34 + 12 > 100 ? e.rowBtns.length * 34 + 12 : 100
|
|
262
276
|
}, {
|
|
263
|
-
default: h(({ row: o, $index:
|
|
264
|
-
|
|
265
|
-
(u(!0), g(P, null,
|
|
277
|
+
default: h(({ row: o, $index: p }) => [
|
|
278
|
+
f("div", qe, [
|
|
279
|
+
(u(!0), g(P, null, G(e.rowBtns, (s) => (u(), g(P, {
|
|
266
280
|
key: s.key
|
|
267
281
|
}, [
|
|
268
|
-
s.condition === void 0 || s.condition === null || R(
|
|
282
|
+
s.condition === void 0 || s.condition === null || R(K)(s.condition, { $row: o, $globalParams: R(D)() }) ? (u(), S(w, {
|
|
269
283
|
key: 0,
|
|
270
284
|
disabled: s.disabled,
|
|
271
285
|
link: "",
|
|
272
286
|
size: "small",
|
|
273
287
|
type: s.type,
|
|
274
|
-
onClick:
|
|
288
|
+
onClick: Te((be) => E(s, o, p), ["stop"])
|
|
275
289
|
}, {
|
|
276
290
|
default: h(() => [
|
|
277
291
|
b(l, {
|
|
@@ -302,36 +316,36 @@ const je = ["id"], Ge = { class: "empty-content" }, He = ["title"], Ke = ["title
|
|
|
302
316
|
_: 1
|
|
303
317
|
}, 8, ["data", "row-key", "stripe", "height"])
|
|
304
318
|
], 512), [
|
|
305
|
-
[
|
|
319
|
+
[H, z.value === "table"]
|
|
306
320
|
]),
|
|
307
|
-
|
|
308
|
-
[
|
|
321
|
+
j(b(Le, De({ data: i.value }, n, { getColText: C }), null, 16, ["data"]), [
|
|
322
|
+
[H, z.value === "card"]
|
|
309
323
|
]),
|
|
310
|
-
|
|
324
|
+
f("div", {
|
|
311
325
|
class: N(["pagination-wrapper", {
|
|
312
|
-
hidePagination: (e.hiddenPagination ||
|
|
313
|
-
transparentPagination: (e.hiddenPagination ||
|
|
326
|
+
hidePagination: (e.hiddenPagination || i.value.length === 0) && !e.height,
|
|
327
|
+
transparentPagination: (e.hiddenPagination || i.value.length === 0) && e.height,
|
|
314
328
|
cardlistPadding: z.value === "card"
|
|
315
329
|
}])
|
|
316
330
|
}, [
|
|
317
|
-
b(
|
|
331
|
+
b(ke, {
|
|
318
332
|
layout: "total,sizes, prev, pager, next,jumper",
|
|
319
|
-
total:
|
|
333
|
+
total: L.value,
|
|
320
334
|
"page-sizes": e.pageSizes || [5, 10, 20, 30, 40],
|
|
321
335
|
"default-page-size": e.defaultPageSize,
|
|
322
|
-
"current-page":
|
|
323
|
-
"onUpdate:currentPage": t[0] || (t[0] = (o) =>
|
|
324
|
-
"page-size":
|
|
325
|
-
"onUpdate:pageSize": t[1] || (t[1] = (o) =>
|
|
336
|
+
"current-page": r.value.pageNum,
|
|
337
|
+
"onUpdate:currentPage": t[0] || (t[0] = (o) => r.value.pageNum = o),
|
|
338
|
+
"page-size": r.value.pageSize,
|
|
339
|
+
"onUpdate:pageSize": t[1] || (t[1] = (o) => r.value.pageSize = o),
|
|
326
340
|
"pager-count": e.pagerCount,
|
|
327
|
-
onSizeChange:
|
|
341
|
+
onSizeChange: de,
|
|
328
342
|
onCurrentChange: pe
|
|
329
343
|
}, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size", "pager-count"])
|
|
330
344
|
], 2)
|
|
331
345
|
], 10, je));
|
|
332
346
|
};
|
|
333
347
|
}
|
|
334
|
-
}),
|
|
348
|
+
}), Xe = /* @__PURE__ */ Ve(Ie, [["__scopeId", "data-v-13e512ac"]]);
|
|
335
349
|
export {
|
|
336
|
-
|
|
350
|
+
Xe as default
|
|
337
351
|
};
|
|
@@ -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-D4vAX6zS.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const w = /* @__PURE__ */ i({
|
|
5
5
|
__name: "Tabs",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as t, resolveComponent as n, openBlock as a, createElementBlock as r, normalizeStyle as s, createVNode as l, withCtx as p, withDirectives as i, createElementVNode as c, normalizeClass as m, unref as _, vShow as
|
|
2
|
-
import { a as
|
|
1
|
+
import { defineComponent as t, resolveComponent as n, openBlock as a, createElementBlock as r, normalizeStyle as s, createVNode as l, withCtx as p, withDirectives as i, createElementVNode as c, normalizeClass as m, unref as _, vShow as y } from "vue";
|
|
2
|
+
import { a as d, b as f } from "./index-D4vAX6zS.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const u = /* @__PURE__ */ t({
|
|
5
5
|
__name: "Wrapper",
|
|
@@ -20,9 +20,9 @@ const u = /* @__PURE__ */ t({
|
|
|
20
20
|
i(c("div", {
|
|
21
21
|
class: m({ normal: e.type === "normal", onlytable: e.type === "onlytable" })
|
|
22
22
|
}, [
|
|
23
|
-
l(_(
|
|
23
|
+
l(_(d), { list: e.children }, null, 8, ["list"])
|
|
24
24
|
], 2), [
|
|
25
|
-
[
|
|
25
|
+
[y, !e.collapse]
|
|
26
26
|
])
|
|
27
27
|
]),
|
|
28
28
|
_: 1
|
|
@@ -30,7 +30,7 @@ const u = /* @__PURE__ */ t({
|
|
|
30
30
|
], 4);
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
}), w = /* @__PURE__ */ f(u, [["__scopeId", "data-v-
|
|
33
|
+
}), w = /* @__PURE__ */ f(u, [["__scopeId", "data-v-aa5669f3"]]);
|
|
34
34
|
export {
|
|
35
35
|
w as default
|
|
36
36
|
};
|