asiaint-lowcode 3.0.16 → 3.0.17
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 +137 -137
- package/dist/index.d.ts +17 -0
- package/dist/lazy/{Card-DIBN4bRf.js → Card-C5_msSt_.js} +1 -1
- package/dist/lazy/CardList-MgVKIygB.js +108 -0
- package/dist/lazy/{CardListItem-DbXsd1_k.js → CardListItem-CKntC7cg.js} +4 -4
- package/dist/lazy/{Cascader-BZhmVWOO.js → Cascader-CYH5Fi7i.js} +7 -6
- package/dist/lazy/{Checkbox-B1TSYANT.js → Checkbox-D53Paz5b.js} +7 -6
- package/dist/lazy/{Collapse-C8VWxgHp.js → Collapse-Cmx5or4b.js} +1 -1
- package/dist/lazy/{Component-NvoLQyab.js → Component-CGdDOPOy.js} +1 -1
- package/dist/lazy/{Component-CUa78qLF.js → Component-CU23NOb2.js} +1 -1
- package/dist/lazy/{Component-CqAhbbGQ.js → Component-Cj1LHwcP.js} +1 -1
- package/dist/lazy/{Component-D-Eh8B-j.js → Component-D0dwgR6z.js} +1 -1
- package/dist/lazy/{Component-Cmw2Jlj3.js → Component-DF8iAcIj.js} +1 -1
- package/dist/lazy/{Component-DUuuNUxC.js → Component-gsuTGjd3.js} +1 -1
- package/dist/lazy/CurdCard-B837mmwu.js +108 -0
- package/dist/lazy/{Custom-zNcfkvdD.js → Custom-_TKg63Y-.js} +1 -1
- package/dist/lazy/{FormList-ChQYp1l-.js → FormList-BpRr23C5.js} +1 -1
- package/dist/lazy/{Grid-GCB39VOw.js → Grid-uJbOswN2.js} +1 -1
- package/dist/lazy/{Inline-D1ZMiudr.js → Inline-JPrJPoID.js} +1 -1
- package/dist/lazy/{JsonEdit-BK25HRpb.js → JsonEdit-BZR2tMmu.js} +1 -1
- package/dist/lazy/{ObjGroup-DLXLO2wj.js → ObjGroup-BFLXonc_.js} +1 -1
- package/dist/lazy/OfferDetails-wBzkM5UY.js +163 -0
- package/dist/lazy/{Radio-DoOsjG7K.js → Radio-DY3h8hvk.js} +22 -21
- package/dist/lazy/{SearchSelect-CktfCSrM.js → SearchSelect-BA6DwHFz.js} +15 -14
- package/dist/lazy/{Select-DgAQhalx.js → Select-B5xgS3RP.js} +4 -3
- package/dist/lazy/Table-lhInsLy-.js +280 -0
- package/dist/lazy/{Tabs-C7ZXJbOT.js → Tabs-DvbrjYdV.js} +1 -1
- package/dist/lazy/Wrapper-DOKiemVa.js +30 -0
- package/dist/lazy/{index-BvOUGCFQ.js → index-KOkHm1wc.js} +5117 -4983
- package/dist/lazy/{useSelect-BqqanrGo.js → useSelect-DnnrbcQO.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/CardList-DkwHDPNp.js +0 -51
- package/dist/lazy/CurdCard-BSgF68nl.js +0 -85
- package/dist/lazy/OfferDetails-CKwTw0z4.js +0 -95
- package/dist/lazy/Table-C3PlF9J4.js +0 -273
- package/dist/lazy/Wrapper-DIpJqF_p.js +0 -22
package/package.json
CHANGED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, inject as s, openBlock as t, createElementBlock as o, Fragment as n, createElementVNode as r, normalizeStyle as f, renderList as C, createVNode as g, toDisplayString as k } from "vue";
|
|
2
|
-
import { C as b } from "./CardListItem-DbXsd1_k.js";
|
|
3
|
-
import { b as M } from "./index-BvOUGCFQ.js";
|
|
4
|
-
const v = /* @__PURE__ */ m({
|
|
5
|
-
__name: "CardList",
|
|
6
|
-
props: {
|
|
7
|
-
data: {},
|
|
8
|
-
btns: {},
|
|
9
|
-
columns: { default: 3 },
|
|
10
|
-
gap: { default: 16 },
|
|
11
|
-
footerText: {},
|
|
12
|
-
onClickFooter: {}
|
|
13
|
-
},
|
|
14
|
-
setup(l) {
|
|
15
|
-
const a = l, c = s("ruleModule", void 0), d = s("pageMethodMap", {}), i = () => {
|
|
16
|
-
try {
|
|
17
|
-
c[a.onClickFooter](d, a.data);
|
|
18
|
-
} catch (e) {
|
|
19
|
-
console.error(e);
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
return (e, y) => (t(), o(n, null, [
|
|
23
|
-
r("div", {
|
|
24
|
-
class: "card-list",
|
|
25
|
-
style: f({
|
|
26
|
-
"--columns": e.columns,
|
|
27
|
-
"--gap": e.gap + "px"
|
|
28
|
-
})
|
|
29
|
-
}, [
|
|
30
|
-
(t(!0), o(n, null, C(e.data, (p, u) => (t(), o("div", {
|
|
31
|
-
class: "card-list-item",
|
|
32
|
-
key: u
|
|
33
|
-
}, [
|
|
34
|
-
g(b, {
|
|
35
|
-
data: p,
|
|
36
|
-
btns: e.btns
|
|
37
|
-
}, null, 8, ["data", "btns"])
|
|
38
|
-
]))), 128))
|
|
39
|
-
], 4),
|
|
40
|
-
r("div", {
|
|
41
|
-
class: "card-list-footer",
|
|
42
|
-
onClick: i
|
|
43
|
-
}, [
|
|
44
|
-
r("span", null, k(e.footerText), 1)
|
|
45
|
-
])
|
|
46
|
-
], 64));
|
|
47
|
-
}
|
|
48
|
-
}), L = /* @__PURE__ */ M(v, [["__scopeId", "data-v-4eb91dc5"]]);
|
|
49
|
-
export {
|
|
50
|
-
L as default
|
|
51
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { defineComponent as f, inject as p, resolveComponent as k, openBlock as t, createElementBlock as l, createElementVNode as n, normalizeClass as y, createBlock as a, createCommentVNode as v, toDisplayString as I, Fragment as m, renderList as b, withCtx as g, createVNode as r, unref as u } from "vue";
|
|
2
|
-
import { I as s, B, a as M, b as V } from "./index-BvOUGCFQ.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const $ = { class: "crm-curd-card" }, w = { class: "left-part" }, z = { class: "title" }, E = { class: "right-part" }, F = /* @__PURE__ */ f({
|
|
5
|
-
__name: "CurdCard",
|
|
6
|
-
props: {
|
|
7
|
-
children: {},
|
|
8
|
-
collapsible: { type: Boolean },
|
|
9
|
-
title: {},
|
|
10
|
-
btns: {},
|
|
11
|
-
type: {},
|
|
12
|
-
mainIcon: {},
|
|
13
|
-
extraIcons: {}
|
|
14
|
-
},
|
|
15
|
-
setup(N) {
|
|
16
|
-
const c = p("ruleModule", void 0), C = p("pageMethodMap", {}), i = (e) => {
|
|
17
|
-
if (e && c)
|
|
18
|
-
try {
|
|
19
|
-
c[e](C);
|
|
20
|
-
} catch (d) {
|
|
21
|
-
console.error(d);
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
return (e, d) => {
|
|
25
|
-
const _ = k("el-tooltip");
|
|
26
|
-
return t(), l("div", $, [
|
|
27
|
-
n("div", {
|
|
28
|
-
class: y(["card-header", {
|
|
29
|
-
inline: e.type === "inline",
|
|
30
|
-
mix: e.type === "mix",
|
|
31
|
-
default: e.type === "default"
|
|
32
|
-
}])
|
|
33
|
-
}, [
|
|
34
|
-
n("div", w, [
|
|
35
|
-
e.mainIcon ? (t(), a(s, {
|
|
36
|
-
key: 0,
|
|
37
|
-
class: "title-icon",
|
|
38
|
-
size: "large",
|
|
39
|
-
name: e.mainIcon.name,
|
|
40
|
-
color: e.mainIcon.color
|
|
41
|
-
}, null, 8, ["name", "color"])) : v("", !0),
|
|
42
|
-
n("span", z, I(e.title), 1),
|
|
43
|
-
(t(!0), l(m, null, b(e.extraIcons, (o) => (t(), l(m, {
|
|
44
|
-
key: o.name
|
|
45
|
-
}, [
|
|
46
|
-
o.tips ? (t(), a(_, {
|
|
47
|
-
key: 0,
|
|
48
|
-
content: o.tips,
|
|
49
|
-
placement: "right",
|
|
50
|
-
class: "low-tsp"
|
|
51
|
-
}, {
|
|
52
|
-
default: g(() => [
|
|
53
|
-
r(s, {
|
|
54
|
-
class: "extra-icon",
|
|
55
|
-
name: o.name,
|
|
56
|
-
color: o.color,
|
|
57
|
-
onClick: (h) => i(o.onClick)
|
|
58
|
-
}, null, 8, ["name", "color", "onClick"])
|
|
59
|
-
]),
|
|
60
|
-
_: 2
|
|
61
|
-
}, 1032, ["content"])) : (t(), a(s, {
|
|
62
|
-
key: 1,
|
|
63
|
-
class: "extra-icon",
|
|
64
|
-
name: o.name,
|
|
65
|
-
color: o.color,
|
|
66
|
-
onClick: (h) => i(o.onClick)
|
|
67
|
-
}, null, 8, ["name", "color", "onClick"]))
|
|
68
|
-
], 64))), 128))
|
|
69
|
-
]),
|
|
70
|
-
n("div", E, [
|
|
71
|
-
r(u(B), {
|
|
72
|
-
btns: e.btns || []
|
|
73
|
-
}, null, 8, ["btns"])
|
|
74
|
-
])
|
|
75
|
-
], 2),
|
|
76
|
-
n("div", null, [
|
|
77
|
-
r(u(M), { list: e.children }, null, 8, ["list"])
|
|
78
|
-
])
|
|
79
|
-
]);
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
}), R = /* @__PURE__ */ V(F, [["__scopeId", "data-v-7fc3fb48"]]);
|
|
83
|
-
export {
|
|
84
|
-
R as default
|
|
85
|
-
};
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { defineComponent as p, resolveComponent as b, openBlock as t, createBlock as f, withCtx as u, createVNode as _, createElementVNode as e, createElementBlock as a, Fragment as r, renderList as n, toDisplayString as o, createCommentVNode as v, normalizeStyle as h } from "vue";
|
|
2
|
-
import { C as k } from "./CardListItem-DbXsd1_k.js";
|
|
3
|
-
import { b as y } from "./index-BvOUGCFQ.js";
|
|
4
|
-
const g = { class: "content" }, C = { class: "product-list" }, D = { class: "attribute-list" }, B = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "attribute-list-item"
|
|
7
|
-
}, I = { class: "product-title attribute-title" }, N = { class: "attribute-item-list" }, O = { class: "attribute-label" }, V = { class: "attribute-value" }, E = /* @__PURE__ */ p({
|
|
8
|
-
__name: "OfferDetailItem",
|
|
9
|
-
props: {
|
|
10
|
-
data: {},
|
|
11
|
-
btns: {}
|
|
12
|
-
},
|
|
13
|
-
setup(m) {
|
|
14
|
-
return (s, i) => {
|
|
15
|
-
const d = b("el-popover");
|
|
16
|
-
return t(), f(d, {
|
|
17
|
-
"popper-class": "offer-detail",
|
|
18
|
-
placement: "right"
|
|
19
|
-
}, {
|
|
20
|
-
reference: u(() => [
|
|
21
|
-
_(k, {
|
|
22
|
-
data: s.data,
|
|
23
|
-
btns: s.btns
|
|
24
|
-
}, null, 8, ["data", "btns"])
|
|
25
|
-
]),
|
|
26
|
-
default: u(() => [
|
|
27
|
-
e("div", g, [
|
|
28
|
-
i[0] || (i[0] = e("div", { class: "product-title" }, "Product", -1)),
|
|
29
|
-
e("div", C, [
|
|
30
|
-
(t(!0), a(r, null, n(s.data.product, (l) => (t(), a("div", {
|
|
31
|
-
class: "product-item",
|
|
32
|
-
key: l.label
|
|
33
|
-
}, o(l.label), 1))), 128))
|
|
34
|
-
]),
|
|
35
|
-
e("div", D, [
|
|
36
|
-
(t(!0), a(r, null, n(s.data.product, (l) => (t(), a(r, {
|
|
37
|
-
key: l.label
|
|
38
|
-
}, [
|
|
39
|
-
l.children.length > 0 ? (t(), a("div", B, [
|
|
40
|
-
e("div", I, o(l.label), 1),
|
|
41
|
-
e("div", N, [
|
|
42
|
-
(t(!0), a(r, null, n(l.children, (c) => (t(), a("div", {
|
|
43
|
-
class: "attribute-item",
|
|
44
|
-
key: c.label
|
|
45
|
-
}, [
|
|
46
|
-
e("div", O, o(c.label), 1),
|
|
47
|
-
e("div", V, o(c.value || "--"), 1)
|
|
48
|
-
]))), 128))
|
|
49
|
-
])
|
|
50
|
-
])) : v("", !0)
|
|
51
|
-
], 64))), 128))
|
|
52
|
-
])
|
|
53
|
-
])
|
|
54
|
-
]),
|
|
55
|
-
_: 1
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
}), L = { class: "card-list-footer" }, S = /* @__PURE__ */ p({
|
|
60
|
-
__name: "OfferDetails",
|
|
61
|
-
props: {
|
|
62
|
-
data: {},
|
|
63
|
-
btns: {},
|
|
64
|
-
columns: { default: 3 },
|
|
65
|
-
gap: { default: 16 },
|
|
66
|
-
footerText: {}
|
|
67
|
-
},
|
|
68
|
-
setup(m) {
|
|
69
|
-
return (s, i) => (t(), a(r, null, [
|
|
70
|
-
e("div", {
|
|
71
|
-
class: "card-list",
|
|
72
|
-
style: h({
|
|
73
|
-
"--columns": s.columns,
|
|
74
|
-
"--gap": s.gap + "px"
|
|
75
|
-
})
|
|
76
|
-
}, [
|
|
77
|
-
(t(!0), a(r, null, n(s.data, (d, l) => (t(), a("div", {
|
|
78
|
-
class: "card-list-item",
|
|
79
|
-
key: l
|
|
80
|
-
}, [
|
|
81
|
-
_(E, {
|
|
82
|
-
data: d,
|
|
83
|
-
btns: s.btns
|
|
84
|
-
}, null, 8, ["data", "btns"])
|
|
85
|
-
]))), 128))
|
|
86
|
-
], 4),
|
|
87
|
-
e("div", L, [
|
|
88
|
-
e("span", null, o(s.footerText), 1)
|
|
89
|
-
])
|
|
90
|
-
], 64));
|
|
91
|
-
}
|
|
92
|
-
}), z = /* @__PURE__ */ y(S, [["__scopeId", "data-v-1a7cbb6c"]]);
|
|
93
|
-
export {
|
|
94
|
-
z as default
|
|
95
|
-
};
|
|
@@ -1,273 +0,0 @@
|
|
|
1
|
-
import { defineComponent as ce, inject as B, ref as f, useTemplateRef as pe, readonly as de, toRefs as ge, onUnmounted as he, resolveComponent as z, openBlock as s, createElementBlock as m, createVNode as k, unref as p, withCtx as c, createElementVNode as b, createBlock as S, createCommentVNode as y, Fragment as R, renderList as E, toDisplayString as N, createTextVNode as fe } from "vue";
|
|
2
|
-
import { $ as me, h as ye, _ as Ce, f as ve, b as ke } from "./index-BvOUGCFQ.js";
|
|
3
|
-
import { ElTable as we } from "element-plus";
|
|
4
|
-
const ze = { class: "empty-content" }, be = { class: "text-ellipsis" }, Se = { class: "text-ellipsis" }, Re = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "pagination-wrapper"
|
|
7
|
-
}, _e = /* @__PURE__ */ ce({
|
|
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
|
-
stripe: { type: Boolean },
|
|
18
|
-
rowClick: {},
|
|
19
|
-
rowDbClick: {},
|
|
20
|
-
sizeChange: {},
|
|
21
|
-
pageChange: {},
|
|
22
|
-
topBtns: {},
|
|
23
|
-
rowBtns: {},
|
|
24
|
-
columns: {},
|
|
25
|
-
hidden: { type: Boolean },
|
|
26
|
-
hiddenPagination: { type: Boolean },
|
|
27
|
-
handleCurrentChange: {},
|
|
28
|
-
pageSizes: {},
|
|
29
|
-
defaultPageSize: {},
|
|
30
|
-
name: {}
|
|
31
|
-
},
|
|
32
|
-
setup(V, { expose: $ }) {
|
|
33
|
-
const n = V, d = B("ruleModule", void 0), g = B("pageMethodMap", {}), D = B(me), w = D ? D.translateFn : null, C = f(), F = (e, t, a) => {
|
|
34
|
-
i.value[e] && (i.value[e][t] = a);
|
|
35
|
-
}, U = (e, t) => {
|
|
36
|
-
const a = n.columns.find((l) => l.key === e);
|
|
37
|
-
a && (a.hidden = !t);
|
|
38
|
-
}, j = (e, t, a) => {
|
|
39
|
-
try {
|
|
40
|
-
d[e.onClick](g, t, a);
|
|
41
|
-
} catch (l) {
|
|
42
|
-
console.error(l);
|
|
43
|
-
}
|
|
44
|
-
}, H = (e) => {
|
|
45
|
-
if (n.rowClick)
|
|
46
|
-
try {
|
|
47
|
-
d[n.rowClick](g, e);
|
|
48
|
-
} catch (t) {
|
|
49
|
-
console.error(t);
|
|
50
|
-
}
|
|
51
|
-
}, K = (e) => {
|
|
52
|
-
if (n.rowDbClick)
|
|
53
|
-
try {
|
|
54
|
-
d[n.rowDbClick](g, e);
|
|
55
|
-
} catch (t) {
|
|
56
|
-
console.error(t);
|
|
57
|
-
}
|
|
58
|
-
}, A = f([]), L = (e) => {
|
|
59
|
-
A.value = e;
|
|
60
|
-
}, W = () => {
|
|
61
|
-
var e;
|
|
62
|
-
(e = C.value) == null || e.clearSelection();
|
|
63
|
-
}, q = () => i.value, P = f(), x = (e) => {
|
|
64
|
-
if (P.value = e, !!n.handleCurrentChange)
|
|
65
|
-
try {
|
|
66
|
-
d[n.handleCurrentChange](g, e);
|
|
67
|
-
} catch (t) {
|
|
68
|
-
console.error(t);
|
|
69
|
-
}
|
|
70
|
-
}, G = () => P.value, J = () => {
|
|
71
|
-
var e;
|
|
72
|
-
return (e = C.value) == null ? void 0 : e.getSelectionRows();
|
|
73
|
-
}, O = async () => !0, Q = (e, t) => {
|
|
74
|
-
var l;
|
|
75
|
-
const a = (l = n.topBtns) == null ? void 0 : l.find((v) => v.key === e);
|
|
76
|
-
a && (a.hidden = t);
|
|
77
|
-
}, X = (e, t) => {
|
|
78
|
-
var l;
|
|
79
|
-
const a = (l = n.rowBtns) == null ? void 0 : l.find((v) => v.key === e);
|
|
80
|
-
a && (a.condition = !t);
|
|
81
|
-
}, _ = f(0), Y = (e) => {
|
|
82
|
-
_.value = e;
|
|
83
|
-
}, r = f({ pageNum: 1, pageSize: n.defaultPageSize || 10 }), Z = () => r.value, I = (e) => {
|
|
84
|
-
let t = !1;
|
|
85
|
-
return e.pageNum > -1 && (r.value.pageNum !== e.pageNum && (t = !0), r.value.pageNum = e.pageNum), e.pageSize > -1 && (r.value.pageSize !== e.pageSize && (t = !0), r.value.pageSize = e.pageSize), { pagination: r.value, isChange: t };
|
|
86
|
-
}, ee = (e) => {
|
|
87
|
-
if (r.value.pageNum = 1, r.value.pageSize = e, !!n.sizeChange)
|
|
88
|
-
try {
|
|
89
|
-
d[n.sizeChange](g, r.value);
|
|
90
|
-
} catch (t) {
|
|
91
|
-
console.error(t);
|
|
92
|
-
}
|
|
93
|
-
}, te = (e) => {
|
|
94
|
-
if (r.value.pageNum = e, !!n.pageChange)
|
|
95
|
-
try {
|
|
96
|
-
d[n.pageChange](g, r.value);
|
|
97
|
-
} catch (t) {
|
|
98
|
-
console.error(t);
|
|
99
|
-
}
|
|
100
|
-
}, ne = (e) => {
|
|
101
|
-
var t;
|
|
102
|
-
(t = C.value) == null || t.setCurrentRow(e);
|
|
103
|
-
}, ae = (e) => {
|
|
104
|
-
var t;
|
|
105
|
-
(t = C.value) == null || t.setCurrentRow(i.value[e]);
|
|
106
|
-
}, oe = (e, t, a) => {
|
|
107
|
-
n.columns.forEach((l) => {
|
|
108
|
-
l.key === e && l[t] && (l[t] = a);
|
|
109
|
-
});
|
|
110
|
-
}, i = f([]), le = (e) => {
|
|
111
|
-
i.value = e;
|
|
112
|
-
}, re = (e = {}) => {
|
|
113
|
-
i.value.push(e);
|
|
114
|
-
}, ie = (e) => {
|
|
115
|
-
e >= 0 && e < i.value.length && i.value.splice(e, 1);
|
|
116
|
-
}, se = async () => {
|
|
117
|
-
i.value = [...i.value];
|
|
118
|
-
}, T = pe("rootRef"), M = de({
|
|
119
|
-
...ge(n),
|
|
120
|
-
setCellData: F,
|
|
121
|
-
clearSelection: W,
|
|
122
|
-
getData: q,
|
|
123
|
-
getCurrentRow: G,
|
|
124
|
-
getSelectedRows: J,
|
|
125
|
-
addRow: re,
|
|
126
|
-
deleteRow: ie,
|
|
127
|
-
refresh: se,
|
|
128
|
-
validate: O,
|
|
129
|
-
setData: le,
|
|
130
|
-
selectRow: ne,
|
|
131
|
-
selectRowNum: ae,
|
|
132
|
-
setTotal: Y,
|
|
133
|
-
getPagination: Z,
|
|
134
|
-
setPagination: I,
|
|
135
|
-
setTopBtnHidden: Q,
|
|
136
|
-
setColVisible: U,
|
|
137
|
-
setColumn: oe,
|
|
138
|
-
setRowsBtnHidden: X,
|
|
139
|
-
rootRef: T,
|
|
140
|
-
type: "table"
|
|
141
|
-
});
|
|
142
|
-
if (n.name) {
|
|
143
|
-
const e = ye(n.name, M);
|
|
144
|
-
he(() => {
|
|
145
|
-
e();
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
return $(M), (e, t) => {
|
|
149
|
-
const a = z("el-table-column"), l = z("el-tooltip"), v = z("el-button"), ue = z("el-pagination");
|
|
150
|
-
return e.hidden ? y("", !0) : (s(), m("div", {
|
|
151
|
-
key: 0,
|
|
152
|
-
class: "table-render",
|
|
153
|
-
ref_key: "rootRef",
|
|
154
|
-
ref: T
|
|
155
|
-
}, [
|
|
156
|
-
k(p(we), {
|
|
157
|
-
ref_key: "tableRef",
|
|
158
|
-
ref: C,
|
|
159
|
-
data: i.value,
|
|
160
|
-
"highlight-current-row": e.highlightCurrentRow,
|
|
161
|
-
"row-key": e.rowKey,
|
|
162
|
-
stripe: e.stripe,
|
|
163
|
-
onRowClick: H,
|
|
164
|
-
onRowDblclick: K,
|
|
165
|
-
onSelectionChange: L,
|
|
166
|
-
onCurrentChange: x
|
|
167
|
-
}, {
|
|
168
|
-
empty: c(() => [
|
|
169
|
-
b("div", ze, [
|
|
170
|
-
k(p(Ce), {
|
|
171
|
-
name: "tableEmpty",
|
|
172
|
-
style: { width: 56, height: 56 }
|
|
173
|
-
}),
|
|
174
|
-
t[2] || (t[2] = b("div", null, "No data available,please check", -1))
|
|
175
|
-
])
|
|
176
|
-
]),
|
|
177
|
-
default: c(() => [
|
|
178
|
-
e.multipleSelection ? (s(), S(a, {
|
|
179
|
-
key: 0,
|
|
180
|
-
type: "selection",
|
|
181
|
-
width: "55"
|
|
182
|
-
})) : y("", !0),
|
|
183
|
-
(s(!0), m(R, null, E(e.columns, (o) => (s(), m(R, {
|
|
184
|
-
key: o.key
|
|
185
|
-
}, [
|
|
186
|
-
o.hidden ? y("", !0) : (s(), S(a, {
|
|
187
|
-
key: 0,
|
|
188
|
-
prop: o.key,
|
|
189
|
-
"min-width": o.minWidth,
|
|
190
|
-
fixed: o.fixed || !1
|
|
191
|
-
}, {
|
|
192
|
-
header: c(() => [
|
|
193
|
-
k(l, {
|
|
194
|
-
class: "box-item",
|
|
195
|
-
effect: "dark",
|
|
196
|
-
content: o.label,
|
|
197
|
-
"show-after": 300,
|
|
198
|
-
placement: "top"
|
|
199
|
-
}, {
|
|
200
|
-
default: c(() => [
|
|
201
|
-
b("div", be, N(o.label), 1)
|
|
202
|
-
]),
|
|
203
|
-
_: 2
|
|
204
|
-
}, 1032, ["content"])
|
|
205
|
-
]),
|
|
206
|
-
default: c(({ row: h }) => [
|
|
207
|
-
k(l, {
|
|
208
|
-
class: "box-item",
|
|
209
|
-
effect: "dark",
|
|
210
|
-
content: p(w) ? p(w)(o.key, h) : h[o.key],
|
|
211
|
-
"show-after": 300,
|
|
212
|
-
placement: "top"
|
|
213
|
-
}, {
|
|
214
|
-
default: c(() => [
|
|
215
|
-
b("div", Se, N(p(w) ? p(w)(o.key, h) : h[o.key]), 1)
|
|
216
|
-
]),
|
|
217
|
-
_: 2
|
|
218
|
-
}, 1032, ["content"])
|
|
219
|
-
]),
|
|
220
|
-
_: 2
|
|
221
|
-
}, 1032, ["prop", "min-width", "fixed"]))
|
|
222
|
-
], 64))), 128)),
|
|
223
|
-
e.rowBtns && e.rowBtns.length > 0 ? (s(), S(a, {
|
|
224
|
-
key: 1,
|
|
225
|
-
label: "Action",
|
|
226
|
-
fixed: "right",
|
|
227
|
-
align: "left"
|
|
228
|
-
}, {
|
|
229
|
-
default: c(({ row: o, $index: h }) => [
|
|
230
|
-
(s(!0), m(R, null, E(e.rowBtns, (u) => (s(), m(R, {
|
|
231
|
-
key: u.key
|
|
232
|
-
}, [
|
|
233
|
-
u.condition === void 0 || u.condition === null || p(ve)(u.condition, { $row: o }) ? (s(), S(v, {
|
|
234
|
-
key: 0,
|
|
235
|
-
disabled: u.disabled,
|
|
236
|
-
size: "small",
|
|
237
|
-
type: u.type,
|
|
238
|
-
onClick: (Be) => j(u, o, h)
|
|
239
|
-
}, {
|
|
240
|
-
default: c(() => [
|
|
241
|
-
fe(N(u.label), 1)
|
|
242
|
-
]),
|
|
243
|
-
_: 2
|
|
244
|
-
}, 1032, ["disabled", "type", "onClick"])) : y("", !0)
|
|
245
|
-
], 64))), 128))
|
|
246
|
-
]),
|
|
247
|
-
_: 1
|
|
248
|
-
})) : y("", !0)
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
}, 8, ["data", "highlight-current-row", "row-key", "stripe"]),
|
|
252
|
-
!e.hiddenPagination && _.value > 0 ? (s(), m("div", Re, [
|
|
253
|
-
k(ue, {
|
|
254
|
-
background: "",
|
|
255
|
-
layout: "total,sizes, prev, pager, next,jumper",
|
|
256
|
-
total: _.value,
|
|
257
|
-
"page-sizes": e.pageSizes,
|
|
258
|
-
"default-page-size": e.defaultPageSize,
|
|
259
|
-
"current-page": r.value.pageNum,
|
|
260
|
-
"onUpdate:currentPage": t[0] || (t[0] = (o) => r.value.pageNum = o),
|
|
261
|
-
"page-size": r.value.pageSize,
|
|
262
|
-
"onUpdate:pageSize": t[1] || (t[1] = (o) => r.value.pageSize = o),
|
|
263
|
-
onSizeChange: ee,
|
|
264
|
-
onCurrentChange: te
|
|
265
|
-
}, null, 8, ["total", "page-sizes", "default-page-size", "current-page", "page-size"])
|
|
266
|
-
])) : y("", !0)
|
|
267
|
-
], 512));
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
}), Te = /* @__PURE__ */ ke(_e, [["__scopeId", "data-v-c6058bea"]]);
|
|
271
|
-
export {
|
|
272
|
-
Te as default
|
|
273
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as t, createElementBlock as o, normalizeStyle as a, normalizeClass as l, createVNode as n, unref as s } from "vue";
|
|
2
|
-
import { a as p, b as c } from "./index-BvOUGCFQ.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const i = /* @__PURE__ */ r({
|
|
5
|
-
__name: "Wrapper",
|
|
6
|
-
props: {
|
|
7
|
-
children: {},
|
|
8
|
-
style: { type: [Boolean, null, String, Object, Array] },
|
|
9
|
-
type: {}
|
|
10
|
-
},
|
|
11
|
-
setup(m) {
|
|
12
|
-
return (e, _) => (t(), o("div", {
|
|
13
|
-
style: a(e.style),
|
|
14
|
-
class: l({ normal: e.type === "normal" })
|
|
15
|
-
}, [
|
|
16
|
-
n(s(p), { list: e.children }, null, 8, ["list"])
|
|
17
|
-
], 6));
|
|
18
|
-
}
|
|
19
|
-
}), u = /* @__PURE__ */ c(i, [["__scopeId", "data-v-29b93bec"]]);
|
|
20
|
-
export {
|
|
21
|
-
u as default
|
|
22
|
-
};
|