asiaint-lowcode 3.0.16 → 3.0.18
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 +19 -0
- package/dist/lazy/Card-BZBVb7aE.js +92 -0
- package/dist/lazy/CardList-DwWiAo9-.js +108 -0
- package/dist/lazy/{CardListItem-DbXsd1_k.js → CardListItem-yhIgxbTe.js} +4 -4
- package/dist/lazy/{Cascader-BZhmVWOO.js → Cascader-B4lz7iK6.js} +7 -6
- package/dist/lazy/{Checkbox-B1TSYANT.js → Checkbox-Bynb0NT0.js} +7 -6
- package/dist/lazy/{Collapse-C8VWxgHp.js → Collapse-G30hqmNm.js} +1 -1
- package/dist/lazy/{Component-Cmw2Jlj3.js → Component-B0hYH3vU.js} +1 -1
- package/dist/lazy/{Component-DUuuNUxC.js → Component-BeSgMnB2.js} +1 -1
- package/dist/lazy/{Component-D-Eh8B-j.js → Component-CPdFFbsj.js} +11 -11
- package/dist/lazy/{Component-NvoLQyab.js → Component-CWNB0Jlu.js} +1 -1
- package/dist/lazy/{Component-CqAhbbGQ.js → Component-DPvjrsCR.js} +1 -1
- package/dist/lazy/{Component-CUa78qLF.js → Component-fNOhYdFv.js} +1 -1
- package/dist/lazy/CurdCard-B7bGNxEj.js +107 -0
- package/dist/lazy/{Custom-zNcfkvdD.js → Custom-iAQ_31Jp.js} +1 -1
- package/dist/lazy/{FormList-ChQYp1l-.js → FormList-paORw3Fb.js} +1 -1
- package/dist/lazy/{Grid-GCB39VOw.js → Grid-CAcJjpEy.js} +1 -1
- package/dist/lazy/{Inline-D1ZMiudr.js → Inline-Dtx-csTe.js} +1 -1
- package/dist/lazy/{JsonEdit-BK25HRpb.js → JsonEdit-CvdrWLHq.js} +1 -1
- package/dist/lazy/{ObjGroup-DLXLO2wj.js → ObjGroup-Cjz4SzvJ.js} +1 -1
- package/dist/lazy/OfferDetails-BGoovbJm.js +163 -0
- package/dist/lazy/{Radio-DoOsjG7K.js → Radio-DKzZn31G.js} +22 -21
- package/dist/lazy/{SearchSelect-CktfCSrM.js → SearchSelect-B1YX-Ao2.js} +15 -14
- package/dist/lazy/{Select-DgAQhalx.js → Select-p4eyst_E.js} +4 -3
- package/dist/lazy/Table-CuJVitWt.js +279 -0
- package/dist/lazy/{Tabs-C7ZXJbOT.js → Tabs-10OyFGmb.js} +1 -1
- package/dist/lazy/Wrapper-DauMa47J.js +30 -0
- package/dist/lazy/{index-BvOUGCFQ.js → index-DMmaR_UH.js} +5037 -4876
- package/dist/lazy/{useSelect-BqqanrGo.js → useSelect-BsvU-jJC.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Card-DIBN4bRf.js +0 -59
- 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/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;
|
|
@@ -235,6 +236,8 @@ readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => Awaitable<
|
|
|
235
236
|
readonly modelValue?: EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown> | undefined;
|
|
236
237
|
} | undefined;
|
|
237
238
|
readonly hidden?: boolean | undefined;
|
|
239
|
+
readonly isSticky?: boolean | undefined;
|
|
240
|
+
readonly stickyTop?: number | undefined;
|
|
238
241
|
readonly content: readonly {
|
|
239
242
|
readonly label: string;
|
|
240
243
|
readonly url: string;
|
|
@@ -273,6 +276,10 @@ schema: {
|
|
|
273
276
|
required: true;
|
|
274
277
|
type: PropType<InfoCardSchema>;
|
|
275
278
|
};
|
|
279
|
+
pageRulePath: {
|
|
280
|
+
type: PropType<string>;
|
|
281
|
+
required: true;
|
|
282
|
+
};
|
|
276
283
|
}>, {
|
|
277
284
|
type: string;
|
|
278
285
|
schema: ModelRef<InfoCardSchema, string, InfoCardSchema, InfoCardSchema>;
|
|
@@ -281,6 +288,10 @@ schema: {
|
|
|
281
288
|
required: true;
|
|
282
289
|
type: PropType<InfoCardSchema>;
|
|
283
290
|
};
|
|
291
|
+
pageRulePath: {
|
|
292
|
+
type: PropType<string>;
|
|
293
|
+
required: true;
|
|
294
|
+
};
|
|
284
295
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
285
296
|
|
|
286
297
|
declare const _default_4: DefineComponent<ExtractPropTypes< {
|
|
@@ -453,6 +464,7 @@ declare type InfoCardSchema = {
|
|
|
453
464
|
btns: BtnType[];
|
|
454
465
|
key: string;
|
|
455
466
|
rulePath?: string;
|
|
467
|
+
onMounted?: string;
|
|
456
468
|
detail: {
|
|
457
469
|
label: string;
|
|
458
470
|
value: string;
|
|
@@ -505,6 +517,7 @@ declare type NavBarSchema = {
|
|
|
505
517
|
back?: boolean;
|
|
506
518
|
btns: BtnType[];
|
|
507
519
|
mixMode?: boolean;
|
|
520
|
+
secondary?: boolean;
|
|
508
521
|
hidden?: boolean;
|
|
509
522
|
key: string;
|
|
510
523
|
rulePath?: string;
|
|
@@ -520,8 +533,10 @@ declare type NavBarSchema = {
|
|
|
520
533
|
text: string;
|
|
521
534
|
key: string;
|
|
522
535
|
onClick: string;
|
|
536
|
+
hidden?: boolean;
|
|
523
537
|
}[];
|
|
524
538
|
footerBtns?: BtnType[];
|
|
539
|
+
top?: number;
|
|
525
540
|
};
|
|
526
541
|
|
|
527
542
|
export declare type Options = {
|
|
@@ -576,6 +591,7 @@ declare interface SelectProps {
|
|
|
576
591
|
name?: string;
|
|
577
592
|
onChange?: string;
|
|
578
593
|
read?: boolean;
|
|
594
|
+
clearable?: boolean;
|
|
579
595
|
}
|
|
580
596
|
|
|
581
597
|
declare type setBtnStateFn = (params: {
|
|
@@ -682,6 +698,7 @@ declare type TableSchema = {
|
|
|
682
698
|
showDynamicSearch?: boolean;
|
|
683
699
|
multipleSelection?: boolean;
|
|
684
700
|
highlightCurrentRow?: boolean;
|
|
701
|
+
'highlight-current-row'?: boolean;
|
|
685
702
|
stripe?: boolean;
|
|
686
703
|
rowClick?: string;
|
|
687
704
|
rowDbClick?: string;
|
|
@@ -706,6 +723,8 @@ declare type TabsSchema = {
|
|
|
706
723
|
onActivated?: string;
|
|
707
724
|
tabProps?: TabsProps;
|
|
708
725
|
hidden?: boolean;
|
|
726
|
+
isSticky?: boolean;
|
|
727
|
+
stickyTop?: number;
|
|
709
728
|
content: {
|
|
710
729
|
label: string;
|
|
711
730
|
url: string;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { defineComponent as w, ref as y, inject as u, resolveComponent as _, openBlock as l, createBlock as c, mergeProps as g, withCtx as s, createElementVNode as r, createElementBlock as d, createVNode as a, unref as i, normalizeClass as B, createCommentVNode as M, toDisplayString as $, Fragment as v, renderList as I, Transition as E, withDirectives as V, vShow as x } from "vue";
|
|
2
|
+
import { _ as D, I as C, B as F, a as N, b as S } from "./index-DMmaR_UH.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const j = { class: "card-header" }, z = { class: "card-btns" }, L = /* @__PURE__ */ w({
|
|
5
|
+
__name: "Card",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
collapsible: { type: Boolean },
|
|
9
|
+
header: {},
|
|
10
|
+
btns: {},
|
|
11
|
+
extraIcons: {}
|
|
12
|
+
},
|
|
13
|
+
setup(P) {
|
|
14
|
+
const n = y(!1), p = u("ruleModule", void 0), f = u("pageMethodMap", {}), m = (o) => {
|
|
15
|
+
if (o && p)
|
|
16
|
+
try {
|
|
17
|
+
p[o](f);
|
|
18
|
+
} catch (t) {
|
|
19
|
+
console.error(t);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
return (o, t) => {
|
|
23
|
+
const h = _("el-tooltip"), k = _("ElCard");
|
|
24
|
+
return l(), c(k, g(o.$attrs, {
|
|
25
|
+
class: ["crm-card", { collapsed: n.value }],
|
|
26
|
+
shadow: "never"
|
|
27
|
+
}), {
|
|
28
|
+
header: s(() => [
|
|
29
|
+
r("div", j, [
|
|
30
|
+
o.collapsible ? (l(), d("div", {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "icon-wrapper",
|
|
33
|
+
onClick: t[0] || (t[0] = (e) => n.value = !n.value)
|
|
34
|
+
}, [
|
|
35
|
+
a(i(D), {
|
|
36
|
+
name: "dropdown",
|
|
37
|
+
class: B(["dropdown-icon", { "is-collapsed": n.value }])
|
|
38
|
+
}, null, 8, ["class"])
|
|
39
|
+
])) : M("", !0),
|
|
40
|
+
r("span", null, $(o.header), 1),
|
|
41
|
+
(l(!0), d(v, null, I(o.extraIcons, (e) => (l(), d(v, {
|
|
42
|
+
key: e.name
|
|
43
|
+
}, [
|
|
44
|
+
e.tips ? (l(), c(h, {
|
|
45
|
+
key: 0,
|
|
46
|
+
content: e.tips,
|
|
47
|
+
placement: "right"
|
|
48
|
+
}, {
|
|
49
|
+
default: s(() => [
|
|
50
|
+
a(C, {
|
|
51
|
+
class: "extra-icon",
|
|
52
|
+
name: e.name,
|
|
53
|
+
color: e.color,
|
|
54
|
+
onClick: (b) => m(e.onClick)
|
|
55
|
+
}, null, 8, ["name", "color", "onClick"])
|
|
56
|
+
]),
|
|
57
|
+
_: 2
|
|
58
|
+
}, 1032, ["content"])) : (l(), c(C, {
|
|
59
|
+
key: 1,
|
|
60
|
+
class: "extra-icon",
|
|
61
|
+
name: e.name,
|
|
62
|
+
color: e.color,
|
|
63
|
+
onClick: (b) => m(e.onClick)
|
|
64
|
+
}, null, 8, ["name", "color", "onClick"]))
|
|
65
|
+
], 64))), 128)),
|
|
66
|
+
r("div", z, [
|
|
67
|
+
a(i(F), {
|
|
68
|
+
btns: o.btns || []
|
|
69
|
+
}, null, 8, ["btns"])
|
|
70
|
+
])
|
|
71
|
+
])
|
|
72
|
+
]),
|
|
73
|
+
default: s(() => [
|
|
74
|
+
a(E, { name: "collapse" }, {
|
|
75
|
+
default: s(() => [
|
|
76
|
+
V(r("div", null, [
|
|
77
|
+
a(i(N), { list: o.children }, null, 8, ["list"])
|
|
78
|
+
], 512), [
|
|
79
|
+
[x, !n.value]
|
|
80
|
+
])
|
|
81
|
+
]),
|
|
82
|
+
_: 1
|
|
83
|
+
})
|
|
84
|
+
]),
|
|
85
|
+
_: 1
|
|
86
|
+
}, 16, ["class"]);
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
}), A = /* @__PURE__ */ S(L, [["__scopeId", "data-v-3f46c22f"]]);
|
|
90
|
+
export {
|
|
91
|
+
A as default
|
|
92
|
+
};
|
|
@@ -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-DMmaR_UH.js";
|
|
3
|
+
import { C as V } from "./CardListItem-yhIgxbTe.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
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { I as p, b as I } from "./index-DMmaR_UH.js";
|
|
3
3
|
const w = { class: "card-list-item" }, B = { class: "card-list-item-header" }, L = { class: "card-list-item-header-title" }, N = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "card-list-item-header-title__sub"
|
|
@@ -67,19 +67,19 @@ const w = { class: "card-list-item" }, B = { class: "card-list-item-header" }, L
|
|
|
67
67
|
key: o.label
|
|
68
68
|
}, [
|
|
69
69
|
e("div", F, l(o.label) + ":", 1),
|
|
70
|
-
e("div", S, l(o.value), 1)
|
|
70
|
+
e("div", S, l(o.value || "- -"), 1)
|
|
71
71
|
]))), 128))
|
|
72
72
|
]),
|
|
73
73
|
t.data.footer ? (s(), a("div", j, [
|
|
74
74
|
i(p, {
|
|
75
75
|
name: t.data.footer.icon
|
|
76
76
|
}, null, 8, ["name"]),
|
|
77
|
-
e("span", z, l(t.data.footer.text), 1)
|
|
77
|
+
e("span", z, l(t.data.footer.text || "- -"), 1)
|
|
78
78
|
])) : d("", !0)
|
|
79
79
|
]);
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
}), G = /* @__PURE__ */ I(D, [["__scopeId", "data-v-
|
|
82
|
+
}), G = /* @__PURE__ */ I(D, [["__scopeId", "data-v-7b912cd8"]]);
|
|
83
83
|
export {
|
|
84
84
|
G as C
|
|
85
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-BsvU-jJC.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-DMmaR_UH.js";
|
|
4
|
+
import { u as E } from "./useSelect-BsvU-jJC.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-DMmaR_UH.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({
|
|
@@ -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-DMmaR_UH.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-DMmaR_UH.js";
|
|
4
4
|
const $ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { "min-width": "300px" }
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
|
2
|
-
import { f as E, I as F, b as j } from "./index-
|
|
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 d, 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-DMmaR_UH.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const A = { class: "custom-tree-node" }, D = { class: "tree-node-text" }, K = { class: "tree-node-label" }, R = {
|
|
5
5
|
key: 0,
|
|
@@ -12,26 +12,26 @@ const A = { class: "custom-tree-node" }, D = { class: "tree-node-text" }, K = {
|
|
|
12
12
|
btns: {}
|
|
13
13
|
},
|
|
14
14
|
setup(N) {
|
|
15
|
-
const l = N, r = h("ruleModule", void 0),
|
|
15
|
+
const l = N, r = h("ruleModule", void 0), a = h("pageMethodMap", {}), i = b(), g = (e, t) => {
|
|
16
16
|
i.value = e.id;
|
|
17
17
|
}, M = (e, t, n) => {
|
|
18
18
|
if (r)
|
|
19
19
|
try {
|
|
20
|
-
r[e](
|
|
20
|
+
r[e](a, { node: t, data: n });
|
|
21
21
|
} catch (s) {
|
|
22
22
|
console.error(s);
|
|
23
23
|
}
|
|
24
24
|
}, x = (e, t) => {
|
|
25
25
|
if (l.onNodeClick && r)
|
|
26
26
|
try {
|
|
27
|
-
r[l.onNodeClick](
|
|
27
|
+
r[l.onNodeClick](a, { node: e, data: t });
|
|
28
28
|
} catch (n) {
|
|
29
29
|
console.error(n);
|
|
30
30
|
}
|
|
31
31
|
}, L = (e, t, n) => {
|
|
32
32
|
if (l.onLoad && r)
|
|
33
33
|
try {
|
|
34
|
-
r[l.onLoad](
|
|
34
|
+
r[l.onLoad](a, { node: e, resolve: t, reject: n });
|
|
35
35
|
} catch (s) {
|
|
36
36
|
console.error(s);
|
|
37
37
|
}
|
|
@@ -48,12 +48,12 @@ const A = { class: "custom-tree-node" }, D = { class: "tree-node-text" }, K = {
|
|
|
48
48
|
onCurrentChange: g
|
|
49
49
|
}), {
|
|
50
50
|
default: f(({ node: p, data: u }) => [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
d("div", A, [
|
|
52
|
+
d("div", D, [
|
|
53
|
+
d("span", K, y(p.label), 1),
|
|
54
54
|
u.id === i.value ? (c(), _("div", R, "Present")) : k("", !0)
|
|
55
55
|
]),
|
|
56
|
-
|
|
56
|
+
d("div", null, [
|
|
57
57
|
(c(!0), _(v, null, I(e.btns, (o) => (c(), _(v, {
|
|
58
58
|
key: o.key
|
|
59
59
|
}, [
|
|
@@ -83,7 +83,7 @@ const A = { class: "custom-tree-node" }, D = { class: "tree-node-text" }, K = {
|
|
|
83
83
|
}, 16, ["current-node-key"]);
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
|
-
}), H = /* @__PURE__ */ j(S, [["__scopeId", "data-v-
|
|
86
|
+
}), H = /* @__PURE__ */ j(S, [["__scopeId", "data-v-d08d9a81"]]);
|
|
87
87
|
export {
|
|
88
88
|
H as default
|
|
89
89
|
};
|
|
@@ -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-DMmaR_UH.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 $, 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-DMmaR_UH.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Z = $({
|
|
5
5
|
props: {
|
|
@@ -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-DMmaR_UH.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const B = /* @__PURE__ */ d({
|
|
5
5
|
__name: "Component",
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { defineComponent as M, inject as h, ref as w, resolveComponent as V, openBlock as o, createElementBlock as r, createElementVNode as a, normalizeClass as k, createBlock as t, createCommentVNode as v, toDisplayString as $, Fragment as f, renderList as z, withCtx as y, createVNode as i, unref as d, Transition as A, withDirectives as D, vShow as E } from "vue";
|
|
2
|
+
import { I as c, B as F, a as b, b as N } from "./index-DMmaR_UH.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(_) {
|
|
17
|
+
const s = h("ruleModule", void 0), p = h("pageMethodMap", {}), m = (e) => {
|
|
18
|
+
if (e && s)
|
|
19
|
+
try {
|
|
20
|
+
s[e](p);
|
|
21
|
+
} catch (C) {
|
|
22
|
+
console.error(C);
|
|
23
|
+
}
|
|
24
|
+
}, I = () => {
|
|
25
|
+
n.value = !n.value, u.onCollapsed && s && s[u.onCollapsed](p, n.value);
|
|
26
|
+
}, n = w(!1), u = _;
|
|
27
|
+
return (e, C) => {
|
|
28
|
+
const g = V("el-tooltip");
|
|
29
|
+
return o(), r("div", S, [
|
|
30
|
+
a("div", {
|
|
31
|
+
class: k(["card-header", {
|
|
32
|
+
inline: e.type === "inline",
|
|
33
|
+
mix: e.type === "mix",
|
|
34
|
+
default: e.type === "default"
|
|
35
|
+
}])
|
|
36
|
+
}, [
|
|
37
|
+
a("div", j, [
|
|
38
|
+
e.mainIcon ? (o(), t(c, {
|
|
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"])) : v("", !0),
|
|
45
|
+
a("span", L, $(e.title), 1),
|
|
46
|
+
(o(!0), r(f, null, z(e.extraIcons, (l) => (o(), r(f, {
|
|
47
|
+
key: l.name
|
|
48
|
+
}, [
|
|
49
|
+
l.tips ? (o(), t(g, {
|
|
50
|
+
key: 0,
|
|
51
|
+
content: l.tips,
|
|
52
|
+
placement: "right"
|
|
53
|
+
}, {
|
|
54
|
+
default: y(() => [
|
|
55
|
+
i(c, {
|
|
56
|
+
class: "extra-icon",
|
|
57
|
+
name: l.name,
|
|
58
|
+
color: l.color,
|
|
59
|
+
onClick: (B) => m(l.onClick)
|
|
60
|
+
}, null, 8, ["name", "color", "onClick"])
|
|
61
|
+
]),
|
|
62
|
+
_: 2
|
|
63
|
+
}, 1032, ["content"])) : (o(), t(c, {
|
|
64
|
+
key: 1,
|
|
65
|
+
class: "extra-icon",
|
|
66
|
+
name: l.name,
|
|
67
|
+
color: l.color,
|
|
68
|
+
onClick: (B) => m(l.onClick)
|
|
69
|
+
}, null, 8, ["name", "color", "onClick"]))
|
|
70
|
+
], 64))), 128))
|
|
71
|
+
]),
|
|
72
|
+
a("div", R, [
|
|
73
|
+
e.collapsible ? (o(), r("div", {
|
|
74
|
+
key: 0,
|
|
75
|
+
class: k(["collapse-icon-wrapper", { collapsed: n.value, mr16: Array.isArray(e.btns) && e.btns.length > 0 }]),
|
|
76
|
+
onClick: I
|
|
77
|
+
}, [
|
|
78
|
+
i(c, { name: "icon-shaixuan" })
|
|
79
|
+
], 2)) : v("", !0),
|
|
80
|
+
i(d(F), {
|
|
81
|
+
btns: e.btns || []
|
|
82
|
+
}, null, 8, ["btns"])
|
|
83
|
+
])
|
|
84
|
+
], 2),
|
|
85
|
+
e.onCollapsed ? (o(), t(d(b), {
|
|
86
|
+
key: 1,
|
|
87
|
+
list: e.children
|
|
88
|
+
}, null, 8, ["list"])) : (o(), t(A, {
|
|
89
|
+
key: 0,
|
|
90
|
+
name: "collapse"
|
|
91
|
+
}, {
|
|
92
|
+
default: y(() => [
|
|
93
|
+
D(a("div", null, [
|
|
94
|
+
i(d(b), { list: e.children }, null, 8, ["list"])
|
|
95
|
+
], 512), [
|
|
96
|
+
[E, !n.value]
|
|
97
|
+
])
|
|
98
|
+
]),
|
|
99
|
+
_: 1
|
|
100
|
+
}))
|
|
101
|
+
]);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
}), J = /* @__PURE__ */ N(T, [["__scopeId", "data-v-4fc99b48"]]);
|
|
105
|
+
export {
|
|
106
|
+
J as default
|
|
107
|
+
};
|
|
@@ -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-DMmaR_UH.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-DMmaR_UH.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-DMmaR_UH.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const f = /* @__PURE__ */ o({
|
|
5
5
|
__name: "Grid",
|
|
@@ -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-DMmaR_UH.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-DMmaR_UH.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-DMmaR_UH.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const v = { class: "vfc-ObjGroup" }, B = {
|
|
5
5
|
key: 1,
|