asiaint-lowcode 3.0.15 → 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 +145 -145
- package/dist/index.d.ts +17 -7
- package/dist/lazy/Card-C5_msSt_.js +59 -0
- package/dist/lazy/CardList-MgVKIygB.js +108 -0
- package/dist/lazy/CardListItem-CKntC7cg.js +85 -0
- package/dist/lazy/{Cascader-CnHSDWyV.js → Cascader-CYH5Fi7i.js} +7 -6
- package/dist/lazy/{Checkbox-CXppBe8g.js → Checkbox-D53Paz5b.js} +7 -6
- package/dist/lazy/{Collapse-BE41OQT2.js → Collapse-Cmx5or4b.js} +1 -1
- package/dist/lazy/{Component-DNhFHg-n.js → Component-CGdDOPOy.js} +1 -1
- package/dist/lazy/{Component-DlVpfzdU.js → Component-CU23NOb2.js} +1 -1
- package/dist/lazy/{Component-BBsYU6_G.js → Component-Cj1LHwcP.js} +1 -1
- package/dist/lazy/Component-D0dwgR6z.js +89 -0
- package/dist/lazy/{Component-Dxlups3B.js → Component-DF8iAcIj.js} +1 -1
- package/dist/lazy/{Component-CdICNWU8.js → Component-gsuTGjd3.js} +1 -1
- package/dist/lazy/CurdCard-B837mmwu.js +108 -0
- package/dist/lazy/{Custom-BrgWRhc6.js → Custom-_TKg63Y-.js} +1 -1
- package/dist/lazy/{FormList-CmKlYEPk.js → FormList-BpRr23C5.js} +1 -1
- package/dist/lazy/{Grid-Be8QkPg6.js → Grid-uJbOswN2.js} +3 -3
- package/dist/lazy/{Inline-DeMq-gek.js → Inline-JPrJPoID.js} +1 -1
- package/dist/lazy/{JsonEdit-lfdDuCnd.js → JsonEdit-BZR2tMmu.js} +1 -1
- package/dist/lazy/{ObjGroup-X5vjdZf5.js → ObjGroup-BFLXonc_.js} +1 -1
- package/dist/lazy/OfferDetails-wBzkM5UY.js +163 -0
- package/dist/lazy/{Radio-B8tb9S4T.js → Radio-DY3h8hvk.js} +22 -21
- package/dist/lazy/{SearchSelect-CXsLOVIR.js → SearchSelect-BA6DwHFz.js} +15 -14
- package/dist/lazy/{Select-BnTbhwxr.js → Select-B5xgS3RP.js} +4 -3
- package/dist/lazy/Table-lhInsLy-.js +280 -0
- package/dist/lazy/{Tabs-asDjGL8T.js → Tabs-DvbrjYdV.js} +1 -1
- package/dist/lazy/Wrapper-DOKiemVa.js +30 -0
- package/dist/lazy/{index-D4H-OWdh.js → index-KOkHm1wc.js} +5515 -5324
- package/dist/lazy/{useSelect-gkAmBz5n.js → useSelect-DnnrbcQO.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/CurdCard-Cw8TCbDK.js +0 -84
- package/dist/lazy/Table-D8rK2otW.js +0 -257
- package/dist/lazy/Wrapper-BUShpbI8.js +0 -20
package/dist/index.d.ts
CHANGED
|
@@ -124,6 +124,7 @@ getItemByName: (formKey: string, itemKey: string) => FormItemType | null | undef
|
|
|
124
124
|
getPageParams: () => any;
|
|
125
125
|
setHidden: (key: string, hiddenState: boolean) => void;
|
|
126
126
|
setBtnHidden: (key: string, hiddenState: boolean) => void;
|
|
127
|
+
setBtnStateByKey: (key: string, stateType: "hidden" | "disabled", state: boolean) => void;
|
|
127
128
|
setBtnDisabled: (key: string, disabled: boolean) => void;
|
|
128
129
|
addPageParams: (params: any) => void;
|
|
129
130
|
setPageParams: (params: any) => void;
|
|
@@ -180,8 +181,8 @@ declare type BtnType = {
|
|
|
180
181
|
isTextBtn?: boolean;
|
|
181
182
|
isLinkBtn?: boolean;
|
|
182
183
|
onClick: string;
|
|
183
|
-
disabled
|
|
184
|
-
hidden
|
|
184
|
+
disabled?: boolean;
|
|
185
|
+
hidden?: boolean;
|
|
185
186
|
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
186
187
|
color?: string;
|
|
187
188
|
icon?: {
|
|
@@ -234,14 +235,16 @@ readonly tabPosition: EpPropMergeType<StringConstructor, "right" | "top" | "left
|
|
|
234
235
|
readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<void | boolean>;
|
|
235
236
|
readonly modelValue?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
236
237
|
} | undefined;
|
|
237
|
-
readonly mixMode?: boolean | undefined;
|
|
238
238
|
readonly hidden?: boolean | undefined;
|
|
239
|
+
readonly isSticky?: boolean | undefined;
|
|
240
|
+
readonly stickyTop?: number | undefined;
|
|
239
241
|
readonly content: readonly {
|
|
240
242
|
readonly label: string;
|
|
241
243
|
readonly url: string;
|
|
242
244
|
readonly disabled?: boolean | undefined;
|
|
243
245
|
readonly closable?: boolean | undefined;
|
|
244
246
|
readonly pageParams?: any;
|
|
247
|
+
readonly mixMode?: boolean | undefined;
|
|
245
248
|
}[];
|
|
246
249
|
readonly btns: readonly {
|
|
247
250
|
readonly key: string;
|
|
@@ -461,14 +464,15 @@ declare type InfoCardSchema = {
|
|
|
461
464
|
btns: BtnType[];
|
|
462
465
|
key: string;
|
|
463
466
|
rulePath?: string;
|
|
467
|
+
onMounted?: string;
|
|
464
468
|
detail: {
|
|
465
469
|
label: string;
|
|
466
470
|
value: string;
|
|
467
471
|
color?: string;
|
|
468
472
|
}[];
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
473
|
+
header: {
|
|
474
|
+
title: string;
|
|
475
|
+
subTitle: string;
|
|
472
476
|
avatar: string;
|
|
473
477
|
};
|
|
474
478
|
};
|
|
@@ -528,6 +532,7 @@ declare type NavBarSchema = {
|
|
|
528
532
|
text: string;
|
|
529
533
|
key: string;
|
|
530
534
|
onClick: string;
|
|
535
|
+
hidden?: boolean;
|
|
531
536
|
}[];
|
|
532
537
|
footerBtns?: BtnType[];
|
|
533
538
|
};
|
|
@@ -584,6 +589,7 @@ declare interface SelectProps {
|
|
|
584
589
|
name?: string;
|
|
585
590
|
onChange?: string;
|
|
586
591
|
read?: boolean;
|
|
592
|
+
clearable?: boolean;
|
|
587
593
|
}
|
|
588
594
|
|
|
589
595
|
declare type setBtnStateFn = (params: {
|
|
@@ -690,6 +696,8 @@ declare type TableSchema = {
|
|
|
690
696
|
showDynamicSearch?: boolean;
|
|
691
697
|
multipleSelection?: boolean;
|
|
692
698
|
highlightCurrentRow?: boolean;
|
|
699
|
+
'highlight-current-row'?: boolean;
|
|
700
|
+
stripe?: boolean;
|
|
693
701
|
rowClick?: string;
|
|
694
702
|
rowDbClick?: string;
|
|
695
703
|
sizeChange?: string;
|
|
@@ -712,14 +720,16 @@ declare type TabsSchema = {
|
|
|
712
720
|
onMounted?: string;
|
|
713
721
|
onActivated?: string;
|
|
714
722
|
tabProps?: TabsProps;
|
|
715
|
-
mixMode?: boolean;
|
|
716
723
|
hidden?: boolean;
|
|
724
|
+
isSticky?: boolean;
|
|
725
|
+
stickyTop?: number;
|
|
717
726
|
content: {
|
|
718
727
|
label: string;
|
|
719
728
|
url: string;
|
|
720
729
|
disabled?: boolean;
|
|
721
730
|
closable?: boolean;
|
|
722
731
|
pageParams?: any;
|
|
732
|
+
mixMode?: boolean;
|
|
723
733
|
}[];
|
|
724
734
|
btns: Array<{
|
|
725
735
|
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-KOkHm1wc.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,108 @@
|
|
|
1
|
+
import { defineComponent as S, ref as y, inject as u, watchEffect as x, onMounted as z, resolveComponent as I, openBlock as r, createElementBlock as s, Fragment as g, createElementVNode as k, normalizeStyle as L, renderList as T, createVNode as C, toDisplayString as D, createCommentVNode as v, createBlock as E, withCtx as N } from "vue";
|
|
2
|
+
import { $, I as K, b as P } from "./index-KOkHm1wc.js";
|
|
3
|
+
import { C as V } from "./CardListItem-CKntC7cg.js";
|
|
4
|
+
const j = /* @__PURE__ */ S({
|
|
5
|
+
__name: "CardList",
|
|
6
|
+
props: {
|
|
7
|
+
title: {},
|
|
8
|
+
key: {},
|
|
9
|
+
rulePath: {},
|
|
10
|
+
rowKey: {},
|
|
11
|
+
showDynamicSearch: { type: Boolean },
|
|
12
|
+
multipleSelection: { type: Boolean },
|
|
13
|
+
highlightCurrentRow: { type: Boolean },
|
|
14
|
+
"highlight-current-row": { type: Boolean },
|
|
15
|
+
stripe: { type: Boolean },
|
|
16
|
+
rowClick: {},
|
|
17
|
+
rowDbClick: {},
|
|
18
|
+
sizeChange: {},
|
|
19
|
+
pageChange: {},
|
|
20
|
+
topBtns: {},
|
|
21
|
+
rowBtns: {},
|
|
22
|
+
hidden: { type: Boolean },
|
|
23
|
+
hiddenPagination: { type: Boolean },
|
|
24
|
+
handleCurrentChange: {},
|
|
25
|
+
pageSizes: {},
|
|
26
|
+
defaultPageSize: {},
|
|
27
|
+
gridColumns: { default: 3 },
|
|
28
|
+
gap: { default: 16 },
|
|
29
|
+
footerText: {},
|
|
30
|
+
onClickFooter: {},
|
|
31
|
+
data: {},
|
|
32
|
+
columns: {}
|
|
33
|
+
},
|
|
34
|
+
setup(B) {
|
|
35
|
+
var f, h;
|
|
36
|
+
const t = B, a = y(), b = u("ruleModule", void 0), _ = u("pageMethodMap", {}), w = () => {
|
|
37
|
+
try {
|
|
38
|
+
b[t.onClickFooter](_, t.data);
|
|
39
|
+
} catch (e) {
|
|
40
|
+
console.error(e);
|
|
41
|
+
}
|
|
42
|
+
}, d = y([]), c = (f = t.columns.find((e) => e.position === "title")) == null ? void 0 : f.key, p = (h = t.columns.find((e) => e.position === "subTitle")) == null ? void 0 : h.key, i = t.columns.find((e) => e.position === "footer"), m = u($), n = m ? m.translateFn : null;
|
|
43
|
+
return x(() => {
|
|
44
|
+
t.data && (a.value = t.data.map((e) => {
|
|
45
|
+
const o = {
|
|
46
|
+
content: []
|
|
47
|
+
};
|
|
48
|
+
return c && (o.title = n ? n(c, e) : e[c]), p && (o.subTitle = n ? n(p, e) : e[p]), i && (o.footer = {
|
|
49
|
+
icon: i.footerIcon || "icon-tishi",
|
|
50
|
+
text: `${i.label}: ${n ? n(i.key, e) : e[i.key]}`
|
|
51
|
+
}), t.columns.forEach((l) => {
|
|
52
|
+
l.position === "content" && o.content.push({
|
|
53
|
+
label: l.label,
|
|
54
|
+
value: n ? n(l.key, e) : e[l.key]
|
|
55
|
+
});
|
|
56
|
+
}), o;
|
|
57
|
+
}));
|
|
58
|
+
}), z(() => {
|
|
59
|
+
var e;
|
|
60
|
+
d.value = (e = t.rowBtns) == null ? void 0 : e.map((o) => ({
|
|
61
|
+
icon: o.icon && o.icon.name ? o.icon.name : "icon-tishi",
|
|
62
|
+
label: o.label,
|
|
63
|
+
onClick: o.onClick
|
|
64
|
+
}));
|
|
65
|
+
}), (e, o) => {
|
|
66
|
+
const l = I("el-empty");
|
|
67
|
+
return r(), s(g, null, [
|
|
68
|
+
k("div", {
|
|
69
|
+
class: "card-list",
|
|
70
|
+
style: L({
|
|
71
|
+
"--columns": e.gridColumns,
|
|
72
|
+
"--gap": e.gap + "px"
|
|
73
|
+
})
|
|
74
|
+
}, [
|
|
75
|
+
(r(!0), s(g, null, T(a.value, (F, M) => (r(), s("div", {
|
|
76
|
+
class: "card-list-item",
|
|
77
|
+
key: M
|
|
78
|
+
}, [
|
|
79
|
+
C(V, {
|
|
80
|
+
data: F,
|
|
81
|
+
btns: d.value
|
|
82
|
+
}, null, 8, ["data", "btns"])
|
|
83
|
+
]))), 128))
|
|
84
|
+
], 4),
|
|
85
|
+
a.value && a.value.length > 0 ? (r(), s("div", {
|
|
86
|
+
key: 0,
|
|
87
|
+
class: "card-list-footer",
|
|
88
|
+
onClick: w
|
|
89
|
+
}, [
|
|
90
|
+
k("span", null, D(e.footerText), 1)
|
|
91
|
+
])) : v("", !0),
|
|
92
|
+
!a.value || a.value.length === 0 ? (r(), E(l, {
|
|
93
|
+
key: 1,
|
|
94
|
+
description: "No data available, please check",
|
|
95
|
+
"image-size": 56
|
|
96
|
+
}, {
|
|
97
|
+
image: N(() => [
|
|
98
|
+
C(K, { name: "icon-morentu" })
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
})) : v("", !0)
|
|
102
|
+
], 64);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}), G = /* @__PURE__ */ P(j, [["__scopeId", "data-v-0fa6dc1b"]]);
|
|
106
|
+
export {
|
|
107
|
+
G as default
|
|
108
|
+
};
|
|
@@ -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-KOkHm1wc.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-7b912cd8"]]);
|
|
83
|
+
export {
|
|
84
|
+
G as C
|
|
85
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as
|
|
1
|
+
import { defineComponent as f, mergeModels as g, useModel as v, inject as d, resolveComponent as y, openBlock as M, createBlock as C, mergeProps as h, unref as r } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as
|
|
3
|
+
import { u as b } from "./useSelect-DnnrbcQO.js";
|
|
4
4
|
const k = /* @__PURE__ */ f({
|
|
5
5
|
__name: "Cascader",
|
|
6
6
|
props: /* @__PURE__ */ g({
|
|
@@ -14,7 +14,8 @@ const k = /* @__PURE__ */ f({
|
|
|
14
14
|
dependentFields: {},
|
|
15
15
|
name: { default: "" },
|
|
16
16
|
onChange: {},
|
|
17
|
-
read: { type: Boolean }
|
|
17
|
+
read: { type: Boolean },
|
|
18
|
+
clearable: { type: Boolean }
|
|
18
19
|
}, {
|
|
19
20
|
modelValue: {},
|
|
20
21
|
modelModifiers: {}
|
|
@@ -28,10 +29,10 @@ const k = /* @__PURE__ */ f({
|
|
|
28
29
|
} catch (o) {
|
|
29
30
|
console.error(o);
|
|
30
31
|
}
|
|
31
|
-
}, { currentOptions: p, loading: m } =
|
|
32
|
+
}, { currentOptions: p, loading: m } = b(l);
|
|
32
33
|
return (e, o) => {
|
|
33
|
-
const i =
|
|
34
|
-
return
|
|
34
|
+
const i = y("el-cascader");
|
|
35
|
+
return M(), C(i, h({
|
|
35
36
|
modelValue: t.value,
|
|
36
37
|
"onUpdate:modelValue": o[0] || (o[0] = (c) => t.value = c),
|
|
37
38
|
options: r(p),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as T, mergeModels as w, 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-KOkHm1wc.js";
|
|
4
|
+
import { u as E } from "./useSelect-DnnrbcQO.js";
|
|
5
5
|
const L = { key: 0 }, N = {
|
|
6
6
|
key: 0,
|
|
7
7
|
style: { "font-size": "12px" }
|
|
8
|
-
}, A = /* @__PURE__ */
|
|
8
|
+
}, A = /* @__PURE__ */ T({
|
|
9
9
|
__name: "Checkbox",
|
|
10
|
-
props: /* @__PURE__ */
|
|
10
|
+
props: /* @__PURE__ */ w({
|
|
11
11
|
options: { default: () => [] },
|
|
12
12
|
mode: { default: "static" },
|
|
13
13
|
labelKey: { default: "label" },
|
|
@@ -18,6 +18,7 @@ const L = { key: 0 }, N = {
|
|
|
18
18
|
name: { default: "" },
|
|
19
19
|
onChange: {},
|
|
20
20
|
read: { type: Boolean },
|
|
21
|
+
clearable: { type: Boolean },
|
|
21
22
|
optionType: { default: "circle" },
|
|
22
23
|
direction: { default: "horizontal" },
|
|
23
24
|
space: { default: 20 }
|
|
@@ -33,7 +34,7 @@ const L = { key: 0 }, N = {
|
|
|
33
34
|
const K = u("el-checkbox"), C = u("el-checkbox-button"), _ = u("el-space"), V = u("el-checkbox-group"), z = M("loading");
|
|
34
35
|
return a(g).read ? (l(), n("div", L, I((b = t.value) == null ? void 0 : b.map((o) => {
|
|
35
36
|
var v;
|
|
36
|
-
return (v = a(r).find((
|
|
37
|
+
return (v = a(r).find((B) => B[e.valueKey] === o)) == null ? void 0 : v[e.labelKey];
|
|
37
38
|
}).join("、")), 1)) : (l(), n(d, { key: 1 }, [
|
|
38
39
|
!a(r).length && !a(m) ? (l(), n("div", N, "暂无选项")) : i("", !0),
|
|
39
40
|
P((l(), s(V, S(e.$attrs, {
|
|
@@ -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-KOkHm1wc.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 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-KOkHm1wc.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const _ = { key: 0 }, K = /* @__PURE__ */ s({
|
|
5
5
|
__name: "Component",
|
|
@@ -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-KOkHm1wc.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = /* @__PURE__ */ d({
|
|
5
5
|
__name: "Component",
|
|
@@ -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-KOkHm1wc.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-KOkHm1wc.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
|
+
};
|
|
@@ -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-KOkHm1wc.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,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-KOkHm1wc.js";
|
|
4
4
|
const $ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { "min-width": "300px" }
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { defineComponent as M, inject as C, ref as w, resolveComponent as V, openBlock as o, createElementBlock as s, createElementVNode as n, normalizeClass as h, createBlock as a, createCommentVNode as f, toDisplayString as $, Fragment as k, renderList as z, withCtx as v, createVNode as r, unref as d, Transition as A, withDirectives as D, vShow as E } from "vue";
|
|
2
|
+
import { I as i, B as F, a as y, b as N } from "./index-KOkHm1wc.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const S = { class: "crm-curd-card" }, j = { class: "left-part" }, L = { class: "title" }, R = { class: "right-part" }, T = /* @__PURE__ */ M({
|
|
5
|
+
__name: "CurdCard",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
collapsible: { type: Boolean },
|
|
9
|
+
onCollapsed: {},
|
|
10
|
+
title: {},
|
|
11
|
+
btns: {},
|
|
12
|
+
type: {},
|
|
13
|
+
mainIcon: {},
|
|
14
|
+
extraIcons: {}
|
|
15
|
+
},
|
|
16
|
+
setup(b) {
|
|
17
|
+
const p = C("ruleModule", void 0), _ = C("pageMethodMap", {}), c = (e) => {
|
|
18
|
+
if (e && p)
|
|
19
|
+
try {
|
|
20
|
+
p[e](_);
|
|
21
|
+
} catch (u) {
|
|
22
|
+
console.error(u);
|
|
23
|
+
}
|
|
24
|
+
}, I = () => {
|
|
25
|
+
m.onCollapsed && c(m.onCollapsed), t.value = !t.value;
|
|
26
|
+
}, t = w(!1), m = b;
|
|
27
|
+
return (e, u) => {
|
|
28
|
+
const g = V("el-tooltip");
|
|
29
|
+
return o(), s("div", S, [
|
|
30
|
+
n("div", {
|
|
31
|
+
class: h(["card-header", {
|
|
32
|
+
inline: e.type === "inline",
|
|
33
|
+
mix: e.type === "mix",
|
|
34
|
+
default: e.type === "default"
|
|
35
|
+
}])
|
|
36
|
+
}, [
|
|
37
|
+
n("div", j, [
|
|
38
|
+
e.mainIcon ? (o(), a(i, {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "title-icon",
|
|
41
|
+
size: "large",
|
|
42
|
+
name: e.mainIcon.name,
|
|
43
|
+
color: e.mainIcon.color
|
|
44
|
+
}, null, 8, ["name", "color"])) : f("", !0),
|
|
45
|
+
n("span", L, $(e.title), 1),
|
|
46
|
+
(o(!0), s(k, null, z(e.extraIcons, (l) => (o(), s(k, {
|
|
47
|
+
key: l.name
|
|
48
|
+
}, [
|
|
49
|
+
l.tips ? (o(), a(g, {
|
|
50
|
+
key: 0,
|
|
51
|
+
content: l.tips,
|
|
52
|
+
placement: "right",
|
|
53
|
+
class: "low-tsp"
|
|
54
|
+
}, {
|
|
55
|
+
default: v(() => [
|
|
56
|
+
r(i, {
|
|
57
|
+
class: "extra-icon",
|
|
58
|
+
name: l.name,
|
|
59
|
+
color: l.color,
|
|
60
|
+
onClick: (B) => c(l.onClick)
|
|
61
|
+
}, null, 8, ["name", "color", "onClick"])
|
|
62
|
+
]),
|
|
63
|
+
_: 2
|
|
64
|
+
}, 1032, ["content"])) : (o(), a(i, {
|
|
65
|
+
key: 1,
|
|
66
|
+
class: "extra-icon",
|
|
67
|
+
name: l.name,
|
|
68
|
+
color: l.color,
|
|
69
|
+
onClick: (B) => c(l.onClick)
|
|
70
|
+
}, null, 8, ["name", "color", "onClick"]))
|
|
71
|
+
], 64))), 128))
|
|
72
|
+
]),
|
|
73
|
+
n("div", R, [
|
|
74
|
+
e.collapsible ? (o(), s("div", {
|
|
75
|
+
key: 0,
|
|
76
|
+
class: h(["collapse-icon-wrapper", { collapsed: t.value, mr16: Array.isArray(e.btns) && e.btns.length > 0 }]),
|
|
77
|
+
onClick: I
|
|
78
|
+
}, [
|
|
79
|
+
r(i, { name: "icon-shaixuan" })
|
|
80
|
+
], 2)) : f("", !0),
|
|
81
|
+
r(d(F), {
|
|
82
|
+
btns: e.btns || []
|
|
83
|
+
}, null, 8, ["btns"])
|
|
84
|
+
])
|
|
85
|
+
], 2),
|
|
86
|
+
e.onCollapsed ? (o(), a(d(y), {
|
|
87
|
+
key: 1,
|
|
88
|
+
list: e.children
|
|
89
|
+
}, null, 8, ["list"])) : (o(), a(A, {
|
|
90
|
+
key: 0,
|
|
91
|
+
name: "collapse"
|
|
92
|
+
}, {
|
|
93
|
+
default: v(() => [
|
|
94
|
+
D(n("div", null, [
|
|
95
|
+
r(d(y), { list: e.children }, null, 8, ["list"])
|
|
96
|
+
], 512), [
|
|
97
|
+
[E, !t.value]
|
|
98
|
+
])
|
|
99
|
+
]),
|
|
100
|
+
_: 1
|
|
101
|
+
}))
|
|
102
|
+
]);
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
}), J = /* @__PURE__ */ N(T, [["__scopeId", "data-v-ff874b5a"]]);
|
|
106
|
+
export {
|
|
107
|
+
J as default
|
|
108
|
+
};
|
|
@@ -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-KOkHm1wc.js";
|
|
3
3
|
const f = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "empty"
|