asiaint-lowcode 3.0.13 → 3.0.15
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 +149 -149
- package/dist/index.d.ts +12 -11
- package/dist/lazy/Card-Zf2G8kYf.js +59 -0
- package/dist/lazy/CardListItem-BhjMSuhz.js +65 -0
- package/dist/lazy/{Cascader-DCWDKi7q.js → Cascader-CnHSDWyV.js} +1 -1
- package/dist/lazy/{Checkbox-CnhRZ5Ty.js → Checkbox-CXppBe8g.js} +2 -2
- package/dist/lazy/{Collapse-DUbWBy5G.js → Collapse-BE41OQT2.js} +1 -1
- package/dist/lazy/{Component-C_d8I5r2.js → Component-BBsYU6_G.js} +1 -1
- package/dist/lazy/Component-Ba8iNL9C.js +71 -0
- package/dist/lazy/{Component-S8PFkiFo.js → Component-CdICNWU8.js} +1 -1
- package/dist/lazy/Component-DNhFHg-n.js +34 -0
- package/dist/lazy/{Component-CIGtleDL.js → Component-DlVpfzdU.js} +1 -1
- package/dist/lazy/{Component-EKFwCS1y.js → Component-Dxlups3B.js} +1 -1
- package/dist/lazy/Component-HCqPaHwQ.js +68 -0
- package/dist/lazy/CurdCard-Cw8TCbDK.js +84 -0
- package/dist/lazy/{Custom-DjX1AHSc.js → Custom-BrgWRhc6.js} +1 -1
- package/dist/lazy/DatePicker-sqHk1tuj.js +25 -0
- package/dist/lazy/{FormList-DQnn5D4X.js → FormList-CmKlYEPk.js} +1 -1
- package/dist/lazy/Grid-Be8QkPg6.js +38 -0
- package/dist/lazy/{Inline-BACBvlxk.js → Inline-DeMq-gek.js} +1 -1
- package/dist/lazy/{JsonEdit-CmX4WTNO.js → JsonEdit-lfdDuCnd.js} +1 -1
- package/dist/lazy/{ObjGroup-NEH1WDaP.js → ObjGroup-X5vjdZf5.js} +1 -1
- package/dist/lazy/{Radio-u2R1Inz-.js → Radio-B8tb9S4T.js} +12 -12
- package/dist/lazy/{SearchSelect-COfz9JkE.js → SearchSelect-CXsLOVIR.js} +27 -27
- package/dist/lazy/Select-BnTbhwxr.js +76 -0
- package/dist/lazy/Table-D8rK2otW.js +257 -0
- package/dist/lazy/{Tabs-CEVepHIu.js → Tabs-asDjGL8T.js} +1 -1
- package/dist/lazy/TextArea-DBUM3-2Q.js +25 -0
- package/dist/lazy/Wrapper-BUShpbI8.js +20 -0
- package/dist/lazy/{index-CU_26EZJ.js → index-D4H-OWdh.js} +7466 -7319
- package/dist/lazy/{useSelect-BeQ_42pn.js → useSelect-gkAmBz5n.js} +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/dist/lazy/Card-CjX8_mKy.js +0 -77
- package/dist/lazy/Component-BgZ5rdea.js +0 -69
- package/dist/lazy/Component-DO63yabq.js +0 -66
- package/dist/lazy/Component-QZv__Q9t.js +0 -32
- package/dist/lazy/DatePicker-0davNDiD.js +0 -11
- package/dist/lazy/Grid-B1UrKyOW.js +0 -30
- package/dist/lazy/Select-DZYDY9zB.js +0 -78
- package/dist/lazy/TextArea-C1EmgMap.js +0 -25
package/dist/index.d.ts
CHANGED
|
@@ -113,7 +113,6 @@ ruleMap: Record<string, any>;
|
|
|
113
113
|
pageUrl?: string;
|
|
114
114
|
pageParams?: any;
|
|
115
115
|
}>>, {
|
|
116
|
-
methodMap: {
|
|
117
116
|
findRef: <T extends keyof RefTypeMap>(key: string) => RefType<T>;
|
|
118
117
|
setFormDisabled: (key: string, disabled: boolean) => void;
|
|
119
118
|
validate: (keys: string[] | string) => Promise<boolean | undefined>;
|
|
@@ -129,9 +128,9 @@ setBtnDisabled: (key: string, disabled: boolean) => void;
|
|
|
129
128
|
addPageParams: (params: any) => void;
|
|
130
129
|
setPageParams: (params: any) => void;
|
|
131
130
|
setGlobalParams: (params: any) => void;
|
|
132
|
-
getGlobalParams: () =>
|
|
131
|
+
getGlobalParams: () => any;
|
|
133
132
|
setBtnState: setBtnStateFn;
|
|
134
|
-
|
|
133
|
+
setReadMode: (key: string, readMode: boolean) => void;
|
|
135
134
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
136
135
|
done: (...args: any[]) => void;
|
|
137
136
|
refresh: (...args: any[]) => void;
|
|
@@ -178,10 +177,13 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
178
177
|
declare type BtnType = {
|
|
179
178
|
key: string;
|
|
180
179
|
text: string;
|
|
180
|
+
isTextBtn?: boolean;
|
|
181
|
+
isLinkBtn?: boolean;
|
|
181
182
|
onClick: string;
|
|
182
183
|
disabled: boolean;
|
|
183
184
|
hidden: boolean;
|
|
184
185
|
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
186
|
+
color?: string;
|
|
185
187
|
icon?: {
|
|
186
188
|
name: string;
|
|
187
189
|
color?: string;
|
|
@@ -250,6 +252,7 @@ readonly hidden: boolean;
|
|
|
250
252
|
}[];
|
|
251
253
|
};
|
|
252
254
|
rootRef: Readonly<unknown>;
|
|
255
|
+
findRef: (url: string) => PageMethods;
|
|
253
256
|
type: string;
|
|
254
257
|
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
255
258
|
schema: {
|
|
@@ -447,7 +450,6 @@ export declare type FormSchema = {
|
|
|
447
450
|
items: FormItemType[];
|
|
448
451
|
rulePath?: string;
|
|
449
452
|
hidden?: boolean;
|
|
450
|
-
read?: boolean;
|
|
451
453
|
dataModel?: string;
|
|
452
454
|
};
|
|
453
455
|
|
|
@@ -462,6 +464,7 @@ declare type InfoCardSchema = {
|
|
|
462
464
|
detail: {
|
|
463
465
|
label: string;
|
|
464
466
|
value: string;
|
|
467
|
+
color?: string;
|
|
465
468
|
}[];
|
|
466
469
|
customerInfo: {
|
|
467
470
|
name: string;
|
|
@@ -541,7 +544,7 @@ export declare type Options = {
|
|
|
541
544
|
translateFn?: (key: string, dataSource: Record<string, any>) => any;
|
|
542
545
|
};
|
|
543
546
|
|
|
544
|
-
export declare type PageMethods = InstanceType<typeof PageRender
|
|
547
|
+
export declare type PageMethods = Omit<InstanceType<typeof PageRender>, keyof ComponentPublicInstance | 'onDone' | 'onRefresh'>;
|
|
545
548
|
|
|
546
549
|
export declare const PageRender: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, ReturnType<typeof __VLS_template_2>>;
|
|
547
550
|
|
|
@@ -656,7 +659,7 @@ isChange: boolean;
|
|
|
656
659
|
setTopBtnHidden: (btnKey: string, hidden: boolean) => void;
|
|
657
660
|
setColVisible: (colKey: string, visible: boolean) => void;
|
|
658
661
|
setColumn: <K extends keyof TableColumn>(key: string, keyName: K, keyValue: TableColumn[K]) => void;
|
|
659
|
-
|
|
662
|
+
setRowsBtnHidden: (btnKey: string, hidden: boolean) => void;
|
|
660
663
|
rootRef: Readonly<unknown>;
|
|
661
664
|
type: string;
|
|
662
665
|
design: boolean;
|
|
@@ -684,19 +687,18 @@ declare type TableSchema = {
|
|
|
684
687
|
key: string;
|
|
685
688
|
rulePath: string;
|
|
686
689
|
rowKey?: string;
|
|
687
|
-
addForm?: FormRenderProps;
|
|
688
690
|
showDynamicSearch?: boolean;
|
|
689
691
|
multipleSelection?: boolean;
|
|
690
692
|
highlightCurrentRow?: boolean;
|
|
691
|
-
['highlight-current-row']?: boolean;
|
|
692
693
|
rowClick?: string;
|
|
693
694
|
rowDbClick?: string;
|
|
694
695
|
sizeChange?: string;
|
|
695
696
|
pageChange?: string;
|
|
696
697
|
topBtns?: BtnType[];
|
|
697
|
-
rowBtns?: BtnType
|
|
698
|
+
rowBtns?: (Omit<BtnType, 'hidden'> & {
|
|
699
|
+
condition?: string | boolean;
|
|
700
|
+
})[];
|
|
698
701
|
columns: TableColumn[];
|
|
699
|
-
form?: FormSchema;
|
|
700
702
|
hidden?: boolean;
|
|
701
703
|
hiddenPagination?: boolean;
|
|
702
704
|
handleCurrentChange?: string;
|
|
@@ -805,7 +807,6 @@ export declare const useFormInstance: () => {
|
|
|
805
807
|
}[];
|
|
806
808
|
readonly rulePath?: string | undefined;
|
|
807
809
|
readonly hidden?: boolean | undefined;
|
|
808
|
-
readonly read?: boolean | undefined;
|
|
809
810
|
readonly dataModel?: string | undefined;
|
|
810
811
|
};
|
|
811
812
|
readonly schemaContext?: {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { defineComponent as c, ref as i, resolveComponent as p, openBlock as t, createBlock as m, mergeProps as u, withCtx as l, createElementVNode as a, createElementBlock as _, createVNode as o, 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-D4H-OWdh.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const y = { class: "card-header" }, N = { class: "card-btns" }, V = /* @__PURE__ */ c({
|
|
5
|
+
__name: "Card",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
collapsible: { type: Boolean },
|
|
9
|
+
header: {},
|
|
10
|
+
btns: {}
|
|
11
|
+
},
|
|
12
|
+
setup(g) {
|
|
13
|
+
const s = i(!1);
|
|
14
|
+
return (e, r) => {
|
|
15
|
+
const d = p("ElCard");
|
|
16
|
+
return t(), m(d, u(e.$attrs, {
|
|
17
|
+
class: "crm-card",
|
|
18
|
+
shadow: "never"
|
|
19
|
+
}), {
|
|
20
|
+
header: l(() => [
|
|
21
|
+
a("div", y, [
|
|
22
|
+
e.collapsible ? (t(), _("div", {
|
|
23
|
+
key: 0,
|
|
24
|
+
class: "icon-wrapper",
|
|
25
|
+
onClick: r[0] || (r[0] = (D) => s.value = !s.value)
|
|
26
|
+
}, [
|
|
27
|
+
o(n(B), {
|
|
28
|
+
name: "dropdown",
|
|
29
|
+
class: v(["dropdown-icon", { "is-collapsed": s.value }])
|
|
30
|
+
}, null, 8, ["class"])
|
|
31
|
+
])) : f("", !0),
|
|
32
|
+
a("span", null, h(e.header), 1),
|
|
33
|
+
a("div", N, [
|
|
34
|
+
o(n(k), {
|
|
35
|
+
btns: e.btns || []
|
|
36
|
+
}, null, 8, ["btns"])
|
|
37
|
+
])
|
|
38
|
+
])
|
|
39
|
+
]),
|
|
40
|
+
default: l(() => [
|
|
41
|
+
o(C, { name: "collapse" }, {
|
|
42
|
+
default: l(() => [
|
|
43
|
+
b(a("div", null, [
|
|
44
|
+
o(n(E), { list: e.children }, null, 8, ["list"])
|
|
45
|
+
], 512), [
|
|
46
|
+
[w, !s.value]
|
|
47
|
+
])
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
})
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 16);
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}), P = /* @__PURE__ */ $(V, [["__scopeId", "data-v-e92c2d71"]]);
|
|
57
|
+
export {
|
|
58
|
+
P as default
|
|
59
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { defineComponent as m, resolveComponent as u, openBlock as a, createElementBlock as i, createElementVNode as t, toDisplayString as l, normalizeStyle as p, createCommentVNode as h, Fragment as o, renderList as n, createVNode as c, withCtx as v } from "vue";
|
|
2
|
+
import { I as b, b as k } from "./index-D4H-OWdh.js";
|
|
3
|
+
const C = { class: "card-list-item" }, f = { class: "card-list-item-header" }, y = { class: "card-list-item-header-title" }, I = { class: "card-list-item-header-title__text" }, g = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "card-list-item-header-title__sub"
|
|
6
|
+
}, B = { class: "card-list-item-header-btns" }, L = ["onClick"], N = { class: "card-list-item-content" }, T = { class: "card-list-item-content-item-label" }, V = { class: "card-list-item-content-item-value" }, E = /* @__PURE__ */ m({
|
|
7
|
+
__name: "CardListItem",
|
|
8
|
+
props: {
|
|
9
|
+
data: {}
|
|
10
|
+
},
|
|
11
|
+
setup(F) {
|
|
12
|
+
const d = (e) => {
|
|
13
|
+
};
|
|
14
|
+
return (e, S) => {
|
|
15
|
+
const r = u("el-tooltip");
|
|
16
|
+
return a(), i("div", C, [
|
|
17
|
+
t("div", f, [
|
|
18
|
+
t("div", y, [
|
|
19
|
+
t("div", I, l(e.data.title), 1),
|
|
20
|
+
e.data.subTitle ? (a(), i("div", g, [
|
|
21
|
+
t("span", {
|
|
22
|
+
class: "card-list-item-header-title__sub-icon",
|
|
23
|
+
style: p({ backgroundColor: e.data.subTitleColor })
|
|
24
|
+
}, null, 4),
|
|
25
|
+
t("span", null, l(e.data.subTitle), 1)
|
|
26
|
+
])) : h("", !0)
|
|
27
|
+
]),
|
|
28
|
+
t("div", B, [
|
|
29
|
+
(a(!0), i(o, null, n(e.data.btns, (s, _) => (a(), i("div", {
|
|
30
|
+
class: "card-list-item-header-btns-item",
|
|
31
|
+
key: _,
|
|
32
|
+
onClick: (w) => d()
|
|
33
|
+
}, [
|
|
34
|
+
c(r, {
|
|
35
|
+
class: "box-item",
|
|
36
|
+
effect: "dark",
|
|
37
|
+
content: s.label,
|
|
38
|
+
placement: "top"
|
|
39
|
+
}, {
|
|
40
|
+
default: v(() => [
|
|
41
|
+
c(b, {
|
|
42
|
+
name: s.icon
|
|
43
|
+
}, null, 8, ["name"])
|
|
44
|
+
]),
|
|
45
|
+
_: 2
|
|
46
|
+
}, 1032, ["content"])
|
|
47
|
+
], 8, L))), 128))
|
|
48
|
+
])
|
|
49
|
+
]),
|
|
50
|
+
t("div", N, [
|
|
51
|
+
(a(!0), i(o, null, n(e.data.content, (s) => (a(), i("div", {
|
|
52
|
+
class: "card-list-item-content-item",
|
|
53
|
+
key: s.label
|
|
54
|
+
}, [
|
|
55
|
+
t("div", T, l(s.label) + ":", 1),
|
|
56
|
+
t("div", V, l(s.value), 1)
|
|
57
|
+
]))), 128))
|
|
58
|
+
])
|
|
59
|
+
]);
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
}), $ = /* @__PURE__ */ k(E, [["__scopeId", "data-v-eea06634"]]);
|
|
63
|
+
export {
|
|
64
|
+
$ as default
|
|
65
|
+
};
|
|
@@ -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-gkAmBz5n.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-D4H-OWdh.js";
|
|
4
|
+
import { u as E } from "./useSelect-gkAmBz5n.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-D4H-OWdh.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 $, 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-D4H-OWdh.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Z = $({
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { defineComponent as g, inject as m, resolveComponent as u, openBlock as d, createBlock as _, mergeProps as L, withCtx as f, createElementVNode as i, toDisplayString as k, createElementBlock as C, Fragment as h, renderList as b, unref as x, withModifiers as $, createTextVNode as B, createCommentVNode as V } from "vue";
|
|
2
|
+
import { h as w, f as E, b as I } from "./index-D4H-OWdh.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const P = { class: "custom-tree-node" }, j = /* @__PURE__ */ g({
|
|
5
|
+
__name: "Component",
|
|
6
|
+
props: {
|
|
7
|
+
onNodeClick: {},
|
|
8
|
+
onLoad: {},
|
|
9
|
+
btns: {}
|
|
10
|
+
},
|
|
11
|
+
setup(y) {
|
|
12
|
+
const l = y, t = m("ruleModule", void 0), a = m("pageMethodMap", {}), N = (e, n, o) => {
|
|
13
|
+
if (t)
|
|
14
|
+
try {
|
|
15
|
+
t[e](a, { node: n, data: o });
|
|
16
|
+
} catch (c) {
|
|
17
|
+
console.error(c);
|
|
18
|
+
}
|
|
19
|
+
}, M = (e, n) => {
|
|
20
|
+
if (l.onNodeClick && t)
|
|
21
|
+
try {
|
|
22
|
+
t[l.onNodeClick](a, { node: e, data: n });
|
|
23
|
+
} catch (o) {
|
|
24
|
+
console.error(o);
|
|
25
|
+
}
|
|
26
|
+
}, v = (e, n, o) => {
|
|
27
|
+
if (l.onLoad && t)
|
|
28
|
+
try {
|
|
29
|
+
t[l.onLoad](a, { node: e, resolve: n, reject: o });
|
|
30
|
+
} catch (c) {
|
|
31
|
+
console.error(c);
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
return (e, n) => {
|
|
35
|
+
const o = u("el-button"), c = u("el-tree");
|
|
36
|
+
return d(), _(c, L(e.$attrs, {
|
|
37
|
+
onNodeClick: M,
|
|
38
|
+
load: v,
|
|
39
|
+
icon: w
|
|
40
|
+
}), {
|
|
41
|
+
default: f(({ node: s, data: p }) => [
|
|
42
|
+
i("div", P, [
|
|
43
|
+
i("span", null, k(s.label), 1),
|
|
44
|
+
i("div", null, [
|
|
45
|
+
(d(!0), C(h, null, b(e.btns, (r) => (d(), C(h, {
|
|
46
|
+
key: r.key
|
|
47
|
+
}, [
|
|
48
|
+
x(E)(r.hidden, { $node: s, $data: p }) ? V("", !0) : (d(), _(o, {
|
|
49
|
+
key: 0,
|
|
50
|
+
link: "",
|
|
51
|
+
onClick: $((A) => N(r.onClick, s, p), ["stop"]),
|
|
52
|
+
disabled: r.disabled,
|
|
53
|
+
type: r.type
|
|
54
|
+
}, {
|
|
55
|
+
default: f(() => [
|
|
56
|
+
B(k(r.text), 1)
|
|
57
|
+
]),
|
|
58
|
+
_: 2
|
|
59
|
+
}, 1032, ["onClick", "disabled", "type"]))
|
|
60
|
+
], 64))), 128))
|
|
61
|
+
])
|
|
62
|
+
])
|
|
63
|
+
]),
|
|
64
|
+
_: 1
|
|
65
|
+
}, 16);
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}), T = /* @__PURE__ */ I(j, [["__scopeId", "data-v-ff1dc461"]]);
|
|
69
|
+
export {
|
|
70
|
+
T as default
|
|
71
|
+
};
|
|
@@ -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-D4H-OWdh.js";
|
|
4
4
|
const $ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { "min-width": "300px" }
|
|
@@ -0,0 +1,34 @@
|
|
|
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-D4H-OWdh.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const _ = { key: 0 }, K = /* @__PURE__ */ s({
|
|
5
|
+
__name: "Component",
|
|
6
|
+
props: /* @__PURE__ */ u({
|
|
7
|
+
min: {},
|
|
8
|
+
read: { type: Boolean }
|
|
9
|
+
}, {
|
|
10
|
+
modelValue: {},
|
|
11
|
+
modelModifiers: {}
|
|
12
|
+
}),
|
|
13
|
+
emits: ["update:modelValue"],
|
|
14
|
+
setup(l) {
|
|
15
|
+
const o = p(l, "modelValue");
|
|
16
|
+
v();
|
|
17
|
+
const m = (e) => {
|
|
18
|
+
["E", "e", "+", "-"].includes(e.key) && e.preventDefault();
|
|
19
|
+
};
|
|
20
|
+
return (e, n) => {
|
|
21
|
+
const r = d("el-input-number");
|
|
22
|
+
return e.read ? (t(), i("span", _, c(typeof o.value == "number" ? o.value : "--"), 1)) : (t(), y(r, f({ key: 1 }, e.$attrs, {
|
|
23
|
+
modelValue: o.value,
|
|
24
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => o.value = a),
|
|
25
|
+
style: { width: "100%" },
|
|
26
|
+
min: e.min || 0,
|
|
27
|
+
onKeydown: m
|
|
28
|
+
}), null, 16, ["modelValue", "min"]));
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
export {
|
|
33
|
+
K as default
|
|
34
|
+
};
|
|
@@ -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-D4H-OWdh.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-D4H-OWdh.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(",");
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { defineComponent as V, mergeModels as y, useModel as _, ref as b, computed as k, watch as g, onMounted as h, resolveComponent as d, openBlock as u, createElementBlock as p, toDisplayString as w, createBlock as m, mergeProps as B, withCtx as c, createVNode as C, normalizeStyle as M, Fragment as I, renderList as P } from "vue";
|
|
2
|
+
const A = { key: 0 }, U = /* @__PURE__ */ V({
|
|
3
|
+
__name: "Component",
|
|
4
|
+
props: /* @__PURE__ */ y({
|
|
5
|
+
selectPosition: { default: "append" },
|
|
6
|
+
selectWidth: { default: 70 },
|
|
7
|
+
selectInitialValue: {},
|
|
8
|
+
read: { type: Boolean },
|
|
9
|
+
options: { default: () => [] },
|
|
10
|
+
parse: {}
|
|
11
|
+
}, {
|
|
12
|
+
modelValue: {
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
modelModifiers: {}
|
|
16
|
+
}),
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(i) {
|
|
19
|
+
const r = i, t = _(i, "modelValue"), o = b(""), s = k({
|
|
20
|
+
get() {
|
|
21
|
+
var e;
|
|
22
|
+
return (e = t.value) == null ? void 0 : e.replaceAll(o.value, "");
|
|
23
|
+
},
|
|
24
|
+
set(e) {
|
|
25
|
+
e ? t.value = e + o.value : t.value = e;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
return g(o, (e, a) => {
|
|
29
|
+
var n;
|
|
30
|
+
t.value && (t.value = ((n = t.value) == null ? void 0 : n.replaceAll(a, "")) + e);
|
|
31
|
+
}), h(() => {
|
|
32
|
+
r.selectInitialValue && (o.value = r.selectInitialValue);
|
|
33
|
+
}), (e, a) => {
|
|
34
|
+
const n = d("el-option"), v = d("el-select"), f = d("el-input");
|
|
35
|
+
return e.read ? (u(), p("span", A, w(s.value || "--"), 1)) : (u(), m(f, B({
|
|
36
|
+
key: 1,
|
|
37
|
+
"show-word-limit": "",
|
|
38
|
+
autocomplete: "off"
|
|
39
|
+
}, e.$attrs, {
|
|
40
|
+
modelValue: s.value,
|
|
41
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => s.value = l)
|
|
42
|
+
}), {
|
|
43
|
+
[e.selectPosition]: c(() => [
|
|
44
|
+
C(v, {
|
|
45
|
+
modelValue: o.value,
|
|
46
|
+
"onUpdate:modelValue": a[0] || (a[0] = (l) => o.value = l),
|
|
47
|
+
style: M({ width: e.selectWidth + "px" }),
|
|
48
|
+
placeholder: " "
|
|
49
|
+
}, {
|
|
50
|
+
default: c(() => [
|
|
51
|
+
(u(!0), p(I, null, P(e.options, (l) => (u(), m(n, {
|
|
52
|
+
label: l.label,
|
|
53
|
+
value: l.value,
|
|
54
|
+
disabled: l.disabled,
|
|
55
|
+
key: l.value
|
|
56
|
+
}, null, 8, ["label", "value", "disabled"]))), 128))
|
|
57
|
+
]),
|
|
58
|
+
_: 1
|
|
59
|
+
}, 8, ["modelValue", "style"])
|
|
60
|
+
]),
|
|
61
|
+
_: 2
|
|
62
|
+
}, 1040, ["modelValue"]));
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
export {
|
|
67
|
+
U as default
|
|
68
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { defineComponent as k, inject as m, resolveComponent as f, openBlock as t, createElementBlock as l, createElementVNode as n, normalizeClass as y, createBlock as a, createCommentVNode as v, toDisplayString as I, Fragment as p, renderList as g, withCtx as b, createVNode as r, unref as u } from "vue";
|
|
2
|
+
import { I as s, B, a as M, b as V } from "./index-D4H-OWdh.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const $ = { class: "crm-curd-card" }, z = { class: "left-part" }, E = { class: "title" }, F = { class: "right-part" }, N = /* @__PURE__ */ k({
|
|
5
|
+
__name: "CurdCard",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
collapsible: { type: Boolean },
|
|
9
|
+
title: {},
|
|
10
|
+
btns: {},
|
|
11
|
+
type: {},
|
|
12
|
+
mainIcon: {},
|
|
13
|
+
extraIcons: {}
|
|
14
|
+
},
|
|
15
|
+
setup(j) {
|
|
16
|
+
const c = m("ruleModule", void 0), C = m("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 _ = f("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", z, [
|
|
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", E, I(e.title), 1),
|
|
43
|
+
(t(!0), l(p, null, g(e.extraIcons, (o) => (t(), l(p, {
|
|
44
|
+
key: o.name
|
|
45
|
+
}, [
|
|
46
|
+
o.tips ? (t(), a(_, {
|
|
47
|
+
key: 0,
|
|
48
|
+
content: o.tips,
|
|
49
|
+
placement: "right"
|
|
50
|
+
}, {
|
|
51
|
+
default: b(() => [
|
|
52
|
+
r(s, {
|
|
53
|
+
class: "extra-icon",
|
|
54
|
+
name: o.name,
|
|
55
|
+
color: o.color,
|
|
56
|
+
onClick: (h) => i(o.onClick)
|
|
57
|
+
}, null, 8, ["name", "color", "onClick"])
|
|
58
|
+
]),
|
|
59
|
+
_: 2
|
|
60
|
+
}, 1032, ["content"])) : (t(), a(s, {
|
|
61
|
+
key: 1,
|
|
62
|
+
class: "extra-icon",
|
|
63
|
+
name: o.name,
|
|
64
|
+
color: o.color,
|
|
65
|
+
onClick: (h) => i(o.onClick)
|
|
66
|
+
}, null, 8, ["name", "color", "onClick"]))
|
|
67
|
+
], 64))), 128))
|
|
68
|
+
]),
|
|
69
|
+
n("div", F, [
|
|
70
|
+
r(u(B), {
|
|
71
|
+
btns: e.btns || []
|
|
72
|
+
}, null, 8, ["btns"])
|
|
73
|
+
])
|
|
74
|
+
], 2),
|
|
75
|
+
n("div", null, [
|
|
76
|
+
r(u(M), { list: e.children }, null, 8, ["list"])
|
|
77
|
+
])
|
|
78
|
+
]);
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
}), R = /* @__PURE__ */ V(N, [["__scopeId", "data-v-165cc4ed"]]);
|
|
82
|
+
export {
|
|
83
|
+
R as default
|
|
84
|
+
};
|
|
@@ -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-D4H-OWdh.js";
|
|
3
3
|
const f = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "empty"
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { defineComponent as d, mergeModels as s, useModel as m, resolveComponent as p, openBlock as t, createElementBlock as u, toDisplayString as i, createBlock as c, mergeProps as k } from "vue";
|
|
2
|
+
const _ = { key: 0 }, f = /* @__PURE__ */ d({
|
|
3
|
+
__name: "DatePicker",
|
|
4
|
+
props: /* @__PURE__ */ s({
|
|
5
|
+
read: { type: Boolean }
|
|
6
|
+
}, {
|
|
7
|
+
modelValue: {},
|
|
8
|
+
modelModifiers: {}
|
|
9
|
+
}),
|
|
10
|
+
emits: ["update:modelValue"],
|
|
11
|
+
setup(a) {
|
|
12
|
+
const e = m(a, "modelValue");
|
|
13
|
+
return (o, l) => {
|
|
14
|
+
const n = p("el-date-picker");
|
|
15
|
+
return o.read ? (t(), u("span", _, i(e.value), 1)) : (t(), c(n, k({ key: 1 }, o.$attrs, {
|
|
16
|
+
modelValue: e.value,
|
|
17
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => e.value = r),
|
|
18
|
+
style: { width: "100%" }
|
|
19
|
+
}), null, 16, ["modelValue"]));
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
f as default
|
|
25
|
+
};
|
|
@@ -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-D4H-OWdh.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",
|
|
@@ -0,0 +1,38 @@
|
|
|
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-D4H-OWdh.js";
|
|
3
|
+
import "element-plus";
|
|
4
|
+
const f = /* @__PURE__ */ o({
|
|
5
|
+
__name: "Grid",
|
|
6
|
+
props: {
|
|
7
|
+
children: {},
|
|
8
|
+
columns: {},
|
|
9
|
+
rowGap: {},
|
|
10
|
+
columnGap: {},
|
|
11
|
+
alignItems: {},
|
|
12
|
+
paddingTop: {},
|
|
13
|
+
paddingBottom: {},
|
|
14
|
+
paddingLeft: {},
|
|
15
|
+
paddingRight: {}
|
|
16
|
+
},
|
|
17
|
+
setup(t) {
|
|
18
|
+
const p = t, n = a(() => ({
|
|
19
|
+
display: "grid",
|
|
20
|
+
"grid-template-columns": `repeat(${p.columns}, 1fr)`,
|
|
21
|
+
"row-gap": p.rowGap + "px",
|
|
22
|
+
"column-gap": p.columnGap + "px",
|
|
23
|
+
"align-items": p.alignItems,
|
|
24
|
+
"padding-top": p.paddingTop + "px",
|
|
25
|
+
"padding-bottom": p.paddingBottom + "px",
|
|
26
|
+
"padding-left": p.paddingLeft + "px",
|
|
27
|
+
"padding-right": p.paddingRight + "px"
|
|
28
|
+
}));
|
|
29
|
+
return (i, g) => (d(), e(r(m), {
|
|
30
|
+
class: "form-item-grid",
|
|
31
|
+
style: l(n.value),
|
|
32
|
+
list: i.children
|
|
33
|
+
}, null, 8, ["style", "list"]));
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
f as default
|
|
38
|
+
};
|
|
@@ -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-D4H-OWdh.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-D4H-OWdh.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-D4H-OWdh.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const v = { class: "vfc-ObjGroup" }, B = {
|
|
5
5
|
key: 1,
|