asiaint-lowcode 3.0.15 → 3.0.16
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 +8 -15
- package/dist/lazy/Card-DIBN4bRf.js +59 -0
- package/dist/lazy/CardList-DkwHDPNp.js +51 -0
- package/dist/lazy/CardListItem-DbXsd1_k.js +85 -0
- package/dist/lazy/{Cascader-CnHSDWyV.js → Cascader-BZhmVWOO.js} +1 -1
- package/dist/lazy/{Checkbox-CXppBe8g.js → Checkbox-B1TSYANT.js} +2 -2
- package/dist/lazy/{Collapse-BE41OQT2.js → Collapse-C8VWxgHp.js} +1 -1
- package/dist/lazy/{Component-DlVpfzdU.js → Component-CUa78qLF.js} +1 -1
- package/dist/lazy/{Component-Dxlups3B.js → Component-Cmw2Jlj3.js} +1 -1
- package/dist/lazy/{Component-BBsYU6_G.js → Component-CqAhbbGQ.js} +1 -1
- package/dist/lazy/Component-D-Eh8B-j.js +89 -0
- package/dist/lazy/{Component-CdICNWU8.js → Component-DUuuNUxC.js} +1 -1
- package/dist/lazy/{Component-DNhFHg-n.js → Component-NvoLQyab.js} +1 -1
- package/dist/lazy/{CurdCard-Cw8TCbDK.js → CurdCard-BSgF68nl.js} +14 -13
- package/dist/lazy/{Custom-BrgWRhc6.js → Custom-zNcfkvdD.js} +1 -1
- package/dist/lazy/{FormList-CmKlYEPk.js → FormList-ChQYp1l-.js} +1 -1
- package/dist/lazy/{Grid-Be8QkPg6.js → Grid-GCB39VOw.js} +3 -3
- package/dist/lazy/{Inline-DeMq-gek.js → Inline-D1ZMiudr.js} +1 -1
- package/dist/lazy/{JsonEdit-lfdDuCnd.js → JsonEdit-BK25HRpb.js} +1 -1
- package/dist/lazy/{ObjGroup-X5vjdZf5.js → ObjGroup-DLXLO2wj.js} +1 -1
- package/dist/lazy/OfferDetails-CKwTw0z4.js +95 -0
- package/dist/lazy/{Radio-B8tb9S4T.js → Radio-DoOsjG7K.js} +2 -2
- package/dist/lazy/{SearchSelect-CXsLOVIR.js → SearchSelect-CktfCSrM.js} +2 -2
- package/dist/lazy/{Select-BnTbhwxr.js → Select-DgAQhalx.js} +2 -2
- package/dist/lazy/Table-C3PlF9J4.js +273 -0
- package/dist/lazy/{Tabs-asDjGL8T.js → Tabs-C7ZXJbOT.js} +1 -1
- package/dist/lazy/Wrapper-DIpJqF_p.js +22 -0
- package/dist/lazy/{index-D4H-OWdh.js → index-BvOUGCFQ.js} +4474 -4417
- package/dist/lazy/{useSelect-gkAmBz5n.js → useSelect-BqqanrGo.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Card-Zf2G8kYf.js +0 -59
- package/dist/lazy/CardListItem-BhjMSuhz.js +0 -65
- package/dist/lazy/Component-Ba8iNL9C.js +0 -71
- package/dist/lazy/Table-D8rK2otW.js +0 -257
- package/dist/lazy/Wrapper-BUShpbI8.js +0 -20
package/dist/index.d.ts
CHANGED
|
@@ -180,8 +180,8 @@ declare type BtnType = {
|
|
|
180
180
|
isTextBtn?: boolean;
|
|
181
181
|
isLinkBtn?: boolean;
|
|
182
182
|
onClick: string;
|
|
183
|
-
disabled
|
|
184
|
-
hidden
|
|
183
|
+
disabled?: boolean;
|
|
184
|
+
hidden?: boolean;
|
|
185
185
|
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
186
186
|
color?: string;
|
|
187
187
|
icon?: {
|
|
@@ -234,7 +234,6 @@ readonly tabPosition: EpPropMergeType<StringConstructor, "right" | "top" | "left
|
|
|
234
234
|
readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
|
235
235
|
readonly modelValue?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
236
236
|
} | undefined;
|
|
237
|
-
readonly mixMode?: boolean | undefined;
|
|
238
237
|
readonly hidden?: boolean | undefined;
|
|
239
238
|
readonly content: readonly {
|
|
240
239
|
readonly label: string;
|
|
@@ -242,6 +241,7 @@ readonly url: string;
|
|
|
242
241
|
readonly disabled?: boolean | undefined;
|
|
243
242
|
readonly closable?: boolean | undefined;
|
|
244
243
|
readonly pageParams?: any;
|
|
244
|
+
readonly mixMode?: boolean | undefined;
|
|
245
245
|
}[];
|
|
246
246
|
readonly btns: readonly {
|
|
247
247
|
readonly key: string;
|
|
@@ -273,10 +273,6 @@ schema: {
|
|
|
273
273
|
required: true;
|
|
274
274
|
type: PropType<InfoCardSchema>;
|
|
275
275
|
};
|
|
276
|
-
pageRulePath: {
|
|
277
|
-
type: PropType<string>;
|
|
278
|
-
required: true;
|
|
279
|
-
};
|
|
280
276
|
}>, {
|
|
281
277
|
type: string;
|
|
282
278
|
schema: ModelRef<InfoCardSchema, string, InfoCardSchema, InfoCardSchema>;
|
|
@@ -285,10 +281,6 @@ schema: {
|
|
|
285
281
|
required: true;
|
|
286
282
|
type: PropType<InfoCardSchema>;
|
|
287
283
|
};
|
|
288
|
-
pageRulePath: {
|
|
289
|
-
type: PropType<string>;
|
|
290
|
-
required: true;
|
|
291
|
-
};
|
|
292
284
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
293
285
|
|
|
294
286
|
declare const _default_4: DefineComponent<ExtractPropTypes< {
|
|
@@ -466,9 +458,9 @@ declare type InfoCardSchema = {
|
|
|
466
458
|
value: string;
|
|
467
459
|
color?: string;
|
|
468
460
|
}[];
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
461
|
+
header: {
|
|
462
|
+
title: string;
|
|
463
|
+
subTitle: string;
|
|
472
464
|
avatar: string;
|
|
473
465
|
};
|
|
474
466
|
};
|
|
@@ -690,6 +682,7 @@ declare type TableSchema = {
|
|
|
690
682
|
showDynamicSearch?: boolean;
|
|
691
683
|
multipleSelection?: boolean;
|
|
692
684
|
highlightCurrentRow?: boolean;
|
|
685
|
+
stripe?: boolean;
|
|
693
686
|
rowClick?: string;
|
|
694
687
|
rowDbClick?: string;
|
|
695
688
|
sizeChange?: string;
|
|
@@ -712,7 +705,6 @@ declare type TabsSchema = {
|
|
|
712
705
|
onMounted?: string;
|
|
713
706
|
onActivated?: string;
|
|
714
707
|
tabProps?: TabsProps;
|
|
715
|
-
mixMode?: boolean;
|
|
716
708
|
hidden?: boolean;
|
|
717
709
|
content: {
|
|
718
710
|
label: string;
|
|
@@ -720,6 +712,7 @@ declare type TabsSchema = {
|
|
|
720
712
|
disabled?: boolean;
|
|
721
713
|
closable?: boolean;
|
|
722
714
|
pageParams?: any;
|
|
715
|
+
mixMode?: boolean;
|
|
723
716
|
}[];
|
|
724
717
|
btns: Array<{
|
|
725
718
|
key: string;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent as d, ref as i, resolveComponent as p, openBlock as t, createBlock as m, mergeProps as u, withCtx as o, createElementVNode as s, createElementBlock as _, createVNode as l, unref as n, normalizeClass as v, createCommentVNode as f, toDisplayString as h, Transition as C, withDirectives as b, vShow as w } from "vue";
|
|
2
|
+
import { _ as B, B as k, a as E, b as $ } from "./index-BvOUGCFQ.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const y = { class: "card-header" }, N = { class: "card-btns" }, V = /* @__PURE__ */ d({
|
|
5
|
+
__name: "Card",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
collapsible: { type: Boolean },
|
|
9
|
+
header: {},
|
|
10
|
+
btns: {}
|
|
11
|
+
},
|
|
12
|
+
setup(g) {
|
|
13
|
+
const e = i(!1);
|
|
14
|
+
return (a, r) => {
|
|
15
|
+
const c = p("ElCard");
|
|
16
|
+
return t(), m(c, u(a.$attrs, {
|
|
17
|
+
class: ["crm-card", { collapsed: e.value }],
|
|
18
|
+
shadow: "never"
|
|
19
|
+
}), {
|
|
20
|
+
header: o(() => [
|
|
21
|
+
s("div", y, [
|
|
22
|
+
a.collapsible ? (t(), _("div", {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "icon-wrapper",
|
|
25
|
+
onClick: r[0] || (r[0] = (D) => e.value = !e.value)
|
|
26
|
+
}, [
|
|
27
|
+
l(n(B), {
|
|
28
|
+
name: "dropdown",
|
|
29
|
+
class: v(["dropdown-icon", { "is-collapsed": e.value }])
|
|
30
|
+
}, null, 8, ["class"])
|
|
31
|
+
])) : f("", !0),
|
|
32
|
+
s("span", null, h(a.header), 1),
|
|
33
|
+
s("div", N, [
|
|
34
|
+
l(n(k), {
|
|
35
|
+
btns: a.btns || []
|
|
36
|
+
}, null, 8, ["btns"])
|
|
37
|
+
])
|
|
38
|
+
])
|
|
39
|
+
]),
|
|
40
|
+
default: o(() => [
|
|
41
|
+
l(C, { name: "collapse" }, {
|
|
42
|
+
default: o(() => [
|
|
43
|
+
b(s("div", null, [
|
|
44
|
+
l(n(E), { list: a.children }, null, 8, ["list"])
|
|
45
|
+
], 512), [
|
|
46
|
+
[w, !e.value]
|
|
47
|
+
])
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 16, ["class"]);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}), P = /* @__PURE__ */ $(V, [["__scopeId", "data-v-a2ac1e9f"]]);
|
|
57
|
+
export {
|
|
58
|
+
P as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { defineComponent as y, inject as c, resolveComponent as M, openBlock as s, createElementBlock as a, createElementVNode as e, normalizeStyle as r, toDisplayString as l, createCommentVNode as d, Fragment as m, renderList as _, createVNode as i, withCtx as g } from "vue";
|
|
2
|
+
import { I as p, b as I } from "./index-BvOUGCFQ.js";
|
|
3
|
+
const w = { class: "card-list-item" }, B = { class: "card-list-item-header" }, L = { class: "card-list-item-header-title" }, N = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "card-list-item-header-title__sub"
|
|
6
|
+
}, T = { class: "card-list-item-header-btns" }, V = ["onClick"], E = { class: "card-list-item-content" }, F = { class: "card-list-item-content-item-label" }, S = { class: "card-list-item-content-item-value" }, j = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "card-list-item-footer"
|
|
9
|
+
}, z = { class: "card-list-item-footer-text" }, D = /* @__PURE__ */ y({
|
|
10
|
+
__name: "CardListItem",
|
|
11
|
+
props: {
|
|
12
|
+
data: {},
|
|
13
|
+
btns: {}
|
|
14
|
+
},
|
|
15
|
+
setup(u) {
|
|
16
|
+
const h = u, v = c("ruleModule", void 0), b = c("pageMethodMap", {}), f = (t) => {
|
|
17
|
+
try {
|
|
18
|
+
v[t.onClick](b, h.data);
|
|
19
|
+
} catch (n) {
|
|
20
|
+
console.error(n);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
return (t, n) => {
|
|
24
|
+
const C = M("el-tooltip");
|
|
25
|
+
return s(), a("div", w, [
|
|
26
|
+
e("div", B, [
|
|
27
|
+
e("div", L, [
|
|
28
|
+
e("div", {
|
|
29
|
+
class: "card-list-item-header-title__text",
|
|
30
|
+
style: r({ color: t.data.titleColor })
|
|
31
|
+
}, l(t.data.title), 5),
|
|
32
|
+
t.data.subTitle ? (s(), a("div", N, [
|
|
33
|
+
e("span", {
|
|
34
|
+
class: "card-list-item-header-title__sub-icon",
|
|
35
|
+
style: r({ backgroundColor: t.data.subTitleColor })
|
|
36
|
+
}, null, 4),
|
|
37
|
+
e("span", null, l(t.data.subTitle), 1)
|
|
38
|
+
])) : d("", !0)
|
|
39
|
+
]),
|
|
40
|
+
e("div", T, [
|
|
41
|
+
(s(!0), a(m, null, _(t.btns, (o, k) => (s(), a("div", {
|
|
42
|
+
class: "card-list-item-header-btns-item",
|
|
43
|
+
key: k,
|
|
44
|
+
onClick: ($) => f(o)
|
|
45
|
+
}, [
|
|
46
|
+
i(C, {
|
|
47
|
+
class: "box-item",
|
|
48
|
+
effect: "dark",
|
|
49
|
+
content: o.label,
|
|
50
|
+
placement: "top",
|
|
51
|
+
"popper-class": "low-tsp",
|
|
52
|
+
"show-after": 300
|
|
53
|
+
}, {
|
|
54
|
+
default: g(() => [
|
|
55
|
+
i(p, {
|
|
56
|
+
name: o.icon
|
|
57
|
+
}, null, 8, ["name"])
|
|
58
|
+
]),
|
|
59
|
+
_: 2
|
|
60
|
+
}, 1032, ["content"])
|
|
61
|
+
], 8, V))), 128))
|
|
62
|
+
])
|
|
63
|
+
]),
|
|
64
|
+
e("div", E, [
|
|
65
|
+
(s(!0), a(m, null, _(t.data.content, (o) => (s(), a("div", {
|
|
66
|
+
class: "card-list-item-content-item",
|
|
67
|
+
key: o.label
|
|
68
|
+
}, [
|
|
69
|
+
e("div", F, l(o.label) + ":", 1),
|
|
70
|
+
e("div", S, l(o.value), 1)
|
|
71
|
+
]))), 128))
|
|
72
|
+
]),
|
|
73
|
+
t.data.footer ? (s(), a("div", j, [
|
|
74
|
+
i(p, {
|
|
75
|
+
name: t.data.footer.icon
|
|
76
|
+
}, null, 8, ["name"]),
|
|
77
|
+
e("span", z, l(t.data.footer.text), 1)
|
|
78
|
+
])) : d("", !0)
|
|
79
|
+
]);
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
}), G = /* @__PURE__ */ I(D, [["__scopeId", "data-v-3cbc388d"]]);
|
|
83
|
+
export {
|
|
84
|
+
G as C
|
|
85
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as M, openBlock as y, createBlock as C, mergeProps as h, unref as r } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as V } from "./useSelect-
|
|
3
|
+
import { u as V } from "./useSelect-BqqanrGo.js";
|
|
4
4
|
const k = /* @__PURE__ */ f({
|
|
5
5
|
__name: "Cascader",
|
|
6
6
|
props: /* @__PURE__ */ g({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as w, mergeModels as B, useModel as D, watch as F, resolveComponent as u, resolveDirective as M, unref as a, openBlock as l, createElementBlock as n, toDisplayString as I, Fragment as d, createCommentVNode as i, withDirectives as P, createBlock as s, mergeProps as S, withCtx as f, renderList as h } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as j } from "./index-
|
|
4
|
-
import { u as E } from "./useSelect-
|
|
3
|
+
import { u as j } from "./index-BvOUGCFQ.js";
|
|
4
|
+
import { u as E } from "./useSelect-BqqanrGo.js";
|
|
5
5
|
const L = { key: 0 }, N = {
|
|
6
6
|
key: 0,
|
|
7
7
|
style: { "font-size": "12px" }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, ref as f, onMounted as _, watch as h, resolveComponent as c, openBlock as o, createBlock as i, mergeProps as C, withCtx as r, createElementBlock as E, Fragment as k, renderList as v, createVNode as m, unref as V } from "vue";
|
|
2
|
-
import { a as y } from "./index-
|
|
2
|
+
import { a as y } from "./index-BvOUGCFQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js";
|
|
5
5
|
const x = /* @__PURE__ */ u({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as d, mergeModels as m, useModel as r, resolveComponent as u, openBlock as p, createBlock as i, mergeProps as c, unref as f } from "vue";
|
|
2
|
-
import { u as V } from "./index-
|
|
2
|
+
import { u as V } from "./index-BvOUGCFQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = /* @__PURE__ */ d({
|
|
5
5
|
__name: "Component",
|
|
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
|
|
|
2
2
|
var m = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var a = (o, e, t) => m(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { defineComponent as g, mergeModels as v, useModel as I, ref as c, onMounted as w, resolveComponent as C, openBlock as y, createElementBlock as _, createVNode as V, createElementVNode as M } from "vue";
|
|
5
|
-
import { u as b, b as x } from "./index-
|
|
5
|
+
import { u as b, b as x } from "./index-BvOUGCFQ.js";
|
|
6
6
|
import "element-plus";
|
|
7
7
|
function S() {
|
|
8
8
|
return "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
|
|
2
|
-
import { b as H, u as K, c as Q } from "./index-
|
|
2
|
+
import { b as H, u as K, c as Q } from "./index-BvOUGCFQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Z = $({
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineComponent as $, inject as h, ref as b, resolveComponent as C, openBlock as c, createBlock as m, mergeProps as B, withCtx as f, createElementVNode as a, toDisplayString as y, createElementBlock as _, createCommentVNode as k, Fragment as v, renderList as I, unref as P, withModifiers as V, createTextVNode as w } from "vue";
|
|
2
|
+
import { f as E, I as F, b as j } from "./index-BvOUGCFQ.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const A = { class: "custom-tree-node" }, D = { class: "tree-node-text" }, K = { class: "tree-node-label" }, R = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "tree-node-present"
|
|
7
|
+
}, S = /* @__PURE__ */ $({
|
|
8
|
+
__name: "Component",
|
|
9
|
+
props: {
|
|
10
|
+
onNodeClick: {},
|
|
11
|
+
onLoad: {},
|
|
12
|
+
btns: {}
|
|
13
|
+
},
|
|
14
|
+
setup(N) {
|
|
15
|
+
const l = N, r = h("ruleModule", void 0), d = h("pageMethodMap", {}), i = b(), g = (e, t) => {
|
|
16
|
+
i.value = e.id;
|
|
17
|
+
}, M = (e, t, n) => {
|
|
18
|
+
if (r)
|
|
19
|
+
try {
|
|
20
|
+
r[e](d, { node: t, data: n });
|
|
21
|
+
} catch (s) {
|
|
22
|
+
console.error(s);
|
|
23
|
+
}
|
|
24
|
+
}, x = (e, t) => {
|
|
25
|
+
if (l.onNodeClick && r)
|
|
26
|
+
try {
|
|
27
|
+
r[l.onNodeClick](d, { node: e, data: t });
|
|
28
|
+
} catch (n) {
|
|
29
|
+
console.error(n);
|
|
30
|
+
}
|
|
31
|
+
}, L = (e, t, n) => {
|
|
32
|
+
if (l.onLoad && r)
|
|
33
|
+
try {
|
|
34
|
+
r[l.onLoad](d, { node: e, resolve: t, reject: n });
|
|
35
|
+
} catch (s) {
|
|
36
|
+
console.error(s);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
return (e, t) => {
|
|
40
|
+
const n = C("el-button"), s = C("el-tree");
|
|
41
|
+
return c(), m(s, B(e.$attrs, {
|
|
42
|
+
onNodeClick: x,
|
|
43
|
+
load: L,
|
|
44
|
+
ref: "treeRef",
|
|
45
|
+
class: "crm-tree",
|
|
46
|
+
indent: 32,
|
|
47
|
+
"current-node-key": i.value,
|
|
48
|
+
onCurrentChange: g
|
|
49
|
+
}), {
|
|
50
|
+
default: f(({ node: p, data: u }) => [
|
|
51
|
+
a("div", A, [
|
|
52
|
+
a("div", D, [
|
|
53
|
+
a("span", K, y(p.label), 1),
|
|
54
|
+
u.id === i.value ? (c(), _("div", R, "Present")) : k("", !0)
|
|
55
|
+
]),
|
|
56
|
+
a("div", null, [
|
|
57
|
+
(c(!0), _(v, null, I(e.btns, (o) => (c(), _(v, {
|
|
58
|
+
key: o.key
|
|
59
|
+
}, [
|
|
60
|
+
P(E)(o.hidden, { $node: p, $data: u }) ? k("", !0) : (c(), m(n, {
|
|
61
|
+
key: 0,
|
|
62
|
+
link: "",
|
|
63
|
+
onClick: V((T) => M(o.onClick, p, u), ["stop"]),
|
|
64
|
+
disabled: o.disabled,
|
|
65
|
+
type: o.type
|
|
66
|
+
}, {
|
|
67
|
+
default: f(() => [
|
|
68
|
+
o.icon ? (c(), m(F, {
|
|
69
|
+
key: 0,
|
|
70
|
+
name: o.icon.name,
|
|
71
|
+
color: o.icon.color,
|
|
72
|
+
class: "btn-icon"
|
|
73
|
+
}, null, 8, ["name", "color"])) : k("", !0),
|
|
74
|
+
w(" " + y(o.text), 1)
|
|
75
|
+
]),
|
|
76
|
+
_: 2
|
|
77
|
+
}, 1032, ["onClick", "disabled", "type"]))
|
|
78
|
+
], 64))), 128))
|
|
79
|
+
])
|
|
80
|
+
])
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
}, 16, ["current-node-key"]);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}), H = /* @__PURE__ */ j(S, [["__scopeId", "data-v-ec89a37a"]]);
|
|
87
|
+
export {
|
|
88
|
+
H as default
|
|
89
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as b, mergeModels as V, useModel as B, resolveComponent as d, openBlock as l, createBlock as n, createSlots as C, withCtx as a, createElementBlock as m, Fragment as w, createVNode as E, unref as r, createElementVNode as o, createTextVNode as i, toDisplayString as p, createCommentVNode as u } from "vue";
|
|
2
2
|
import { ElMessage as M, ElMessageBox as N } from "element-plus";
|
|
3
|
-
import { _ as f } from "./index-
|
|
3
|
+
import { _ as f } from "./index-BvOUGCFQ.js";
|
|
4
4
|
const $ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { "min-width": "300px" }
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, mergeModels as u, useModel as p, resolveComponent as d, openBlock as t, createElementBlock as i, toDisplayString as c, createBlock as y, mergeProps as f } from "vue";
|
|
2
|
-
import { u as v } from "./index-
|
|
2
|
+
import { u as v } from "./index-BvOUGCFQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const _ = { key: 0 }, K = /* @__PURE__ */ s({
|
|
5
5
|
__name: "Component",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { I as s, B, a as M, b as V } from "./index-
|
|
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
3
|
import "element-plus";
|
|
4
|
-
const $ = { class: "crm-curd-card" },
|
|
4
|
+
const $ = { class: "crm-curd-card" }, w = { class: "left-part" }, z = { class: "title" }, E = { class: "right-part" }, F = /* @__PURE__ */ f({
|
|
5
5
|
__name: "CurdCard",
|
|
6
6
|
props: {
|
|
7
7
|
children: {},
|
|
@@ -12,8 +12,8 @@ const $ = { class: "crm-curd-card" }, z = { class: "left-part" }, E = { class: "
|
|
|
12
12
|
mainIcon: {},
|
|
13
13
|
extraIcons: {}
|
|
14
14
|
},
|
|
15
|
-
setup(
|
|
16
|
-
const c =
|
|
15
|
+
setup(N) {
|
|
16
|
+
const c = p("ruleModule", void 0), C = p("pageMethodMap", {}), i = (e) => {
|
|
17
17
|
if (e && c)
|
|
18
18
|
try {
|
|
19
19
|
c[e](C);
|
|
@@ -22,7 +22,7 @@ const $ = { class: "crm-curd-card" }, z = { class: "left-part" }, E = { class: "
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
return (e, d) => {
|
|
25
|
-
const _ =
|
|
25
|
+
const _ = k("el-tooltip");
|
|
26
26
|
return t(), l("div", $, [
|
|
27
27
|
n("div", {
|
|
28
28
|
class: y(["card-header", {
|
|
@@ -31,7 +31,7 @@ const $ = { class: "crm-curd-card" }, z = { class: "left-part" }, E = { class: "
|
|
|
31
31
|
default: e.type === "default"
|
|
32
32
|
}])
|
|
33
33
|
}, [
|
|
34
|
-
n("div",
|
|
34
|
+
n("div", w, [
|
|
35
35
|
e.mainIcon ? (t(), a(s, {
|
|
36
36
|
key: 0,
|
|
37
37
|
class: "title-icon",
|
|
@@ -39,16 +39,17 @@ const $ = { class: "crm-curd-card" }, z = { class: "left-part" }, E = { class: "
|
|
|
39
39
|
name: e.mainIcon.name,
|
|
40
40
|
color: e.mainIcon.color
|
|
41
41
|
}, null, 8, ["name", "color"])) : v("", !0),
|
|
42
|
-
n("span",
|
|
43
|
-
(t(!0), l(
|
|
42
|
+
n("span", z, I(e.title), 1),
|
|
43
|
+
(t(!0), l(m, null, b(e.extraIcons, (o) => (t(), l(m, {
|
|
44
44
|
key: o.name
|
|
45
45
|
}, [
|
|
46
46
|
o.tips ? (t(), a(_, {
|
|
47
47
|
key: 0,
|
|
48
48
|
content: o.tips,
|
|
49
|
-
placement: "right"
|
|
49
|
+
placement: "right",
|
|
50
|
+
class: "low-tsp"
|
|
50
51
|
}, {
|
|
51
|
-
default:
|
|
52
|
+
default: g(() => [
|
|
52
53
|
r(s, {
|
|
53
54
|
class: "extra-icon",
|
|
54
55
|
name: o.name,
|
|
@@ -66,7 +67,7 @@ const $ = { class: "crm-curd-card" }, z = { class: "left-part" }, E = { class: "
|
|
|
66
67
|
}, null, 8, ["name", "color", "onClick"]))
|
|
67
68
|
], 64))), 128))
|
|
68
69
|
]),
|
|
69
|
-
n("div",
|
|
70
|
+
n("div", E, [
|
|
70
71
|
r(u(B), {
|
|
71
72
|
btns: e.btns || []
|
|
72
73
|
}, null, 8, ["btns"])
|
|
@@ -78,7 +79,7 @@ const $ = { class: "crm-curd-card" }, z = { class: "left-part" }, E = { class: "
|
|
|
78
79
|
]);
|
|
79
80
|
};
|
|
80
81
|
}
|
|
81
|
-
}), R = /* @__PURE__ */ V(
|
|
82
|
+
}), R = /* @__PURE__ */ V(F, [["__scopeId", "data-v-7fc3fb48"]]);
|
|
82
83
|
export {
|
|
83
84
|
R as default
|
|
84
85
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as u, resolveDynamicComponent as d, mergeProps as c } from "vue";
|
|
2
|
-
import { b as i } from "./index-
|
|
2
|
+
import { b as i } from "./index-BvOUGCFQ.js";
|
|
3
3
|
const f = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "empty"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
|
|
2
|
-
import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-
|
|
2
|
+
import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-BvOUGCFQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
|
|
5
5
|
__name: "FormList",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, computed as a, openBlock as d, createBlock as e, unref as r, normalizeStyle as l } from "vue";
|
|
2
|
-
import { a as m } from "./index-
|
|
2
|
+
import { a as m } from "./index-BvOUGCFQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const f = /* @__PURE__ */ o({
|
|
5
5
|
__name: "Grid",
|
|
@@ -18,8 +18,8 @@ const f = /* @__PURE__ */ o({
|
|
|
18
18
|
const p = t, n = a(() => ({
|
|
19
19
|
display: "grid",
|
|
20
20
|
"grid-template-columns": `repeat(${p.columns}, 1fr)`,
|
|
21
|
-
"row-gap": p.rowGap + "px",
|
|
22
|
-
"column-gap": p.columnGap + "px",
|
|
21
|
+
"row-gap": (p.rowGap || 14) + "px",
|
|
22
|
+
"column-gap": (p.columnGap || 14) + "px",
|
|
23
23
|
"align-items": p.alignItems,
|
|
24
24
|
"padding-top": p.paddingTop + "px",
|
|
25
25
|
"padding-bottom": p.paddingBottom + "px",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as a, computed as l, openBlock as p, createBlock as r, unref as i, normalizeStyle as s } from "vue";
|
|
2
|
-
import { a as c, b as f } from "./index-
|
|
2
|
+
import { a as c, b as f } from "./index-BvOUGCFQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const m = /* @__PURE__ */ a({
|
|
5
5
|
__name: "Inline",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
|
|
2
|
-
import { b as xt, g as Nt } from "./index-
|
|
2
|
+
import { b as xt, g as Nt } from "./index-BvOUGCFQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Mt = /* @__PURE__ */ At({
|
|
5
5
|
__name: "Disabled",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
|
|
2
|
-
import { u as j, d as h, e as k } from "./index-
|
|
2
|
+
import { u as j, d as h, e as k } from "./index-BvOUGCFQ.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const v = { class: "vfc-ObjGroup" }, B = {
|
|
5
5
|
key: 1,
|