asiaint-lowcode 3.0.74 → 3.0.75
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/README.md +31 -31
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +108 -108
- package/dist/index.d.ts +31 -8
- package/dist/lazy/{Card-BLkyronF.js → Card-BL132uF0.js} +2 -2
- package/dist/lazy/{Cascader-BWayPZsj.js → Cascader-BNajnGXt.js} +1 -1
- package/dist/lazy/{Checkbox-B0f2osCE.js → Checkbox-CB78q85K.js} +2 -2
- package/dist/lazy/{Collapse-CwiKPgVS.js → Collapse-BT3Z_TeL.js} +1 -1
- package/dist/lazy/{Component-DN6wPVjw.js → Component-BNOSHXwG.js} +2 -2
- package/dist/lazy/{Component-BgbXAvZP.js → Component-CVbGsSj6.js} +13 -13
- package/dist/lazy/{Component-DtKK0pz0.js → Component-Cwe8AZcy.js} +1 -1
- package/dist/lazy/{Component-BTW9MMvF.js → Component-DdZRdqp7.js} +1 -1
- package/dist/lazy/{Component-B0YN5w1O.js → Component-Dl3PXGm5.js} +1 -1
- package/dist/lazy/{Component-CxjtIKb4.js → Component-OAYlB5bp.js} +2 -2
- package/dist/lazy/{CurdCard-YilgvVgg.js → CurdCard-BrBulKvO.js} +20 -19
- package/dist/lazy/{Custom-BHrk3rwy.js → Custom-BliwSKbp.js} +7 -7
- package/dist/lazy/{DragList-BfxZ0XM8.js → DragList-Buw-1bQc.js} +57 -56
- package/dist/lazy/{FormList-Bve4HUdY.js → FormList-DTdAAtrD.js} +1 -1
- package/dist/lazy/{Grid-gYua8Lbh.js → Grid-DUAIHsOo.js} +1 -1
- package/dist/lazy/Inline-BkAIXUU0.js +35 -0
- package/dist/lazy/{JsonEdit-DspEkIiw.js → JsonEdit-Bx4jK-K8.js} +3 -3
- package/dist/lazy/{LogList-BJ0N-SZh.js → LogList-DHk7eKeC.js} +7 -7
- package/dist/lazy/{ObjGroup-DwogU-tX.js → ObjGroup-DXJerzS2.js} +1 -1
- package/dist/lazy/{OfferDetails-BRQXALnl.js → OfferDetails-Fs5y40J0.js} +24 -24
- package/dist/lazy/{Progress-CZiRwjox.js → Progress-pRaKkFkw.js} +5 -5
- package/dist/lazy/{Radio-DAQ63lEp.js → Radio-C9Z-5npS.js} +23 -22
- package/dist/lazy/{SearchSelect-B4rd3IEr.js → SearchSelect-BU-_DOLr.js} +11 -11
- package/dist/lazy/{Select-B9ka9Z-o.js → Select-DJ6Ky5mO.js} +2 -2
- package/dist/lazy/{Table-BT_PlC1e.js → Table-BlBWSnrv.js} +2 -2
- package/dist/lazy/{Tabs-D_jMk0g4.js → Tabs-meM_0XCE.js} +1 -1
- package/dist/lazy/{Wrapper-Db2njs9z.js → Wrapper-DlG2aZRe.js} +5 -5
- package/dist/lazy/{index-CPs7U1jG.js → index-2Lph8ou3.js} +6842 -6630
- package/dist/lazy/{useSelect-DBsTZmYm.js → useSelect-CmUZu1rN.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Inline-DP_W3TA1.js +0 -33
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import { Awaitable } from 'element-plus/es/utils/typescript.mjs';
|
|
3
2
|
import { Component } from 'vue';
|
|
4
3
|
import { ComponentOptionsMixin } from 'vue';
|
|
5
4
|
import { ComponentProvideOptions } from 'vue';
|
|
6
5
|
import { ComponentPublicInstance } from 'vue';
|
|
7
6
|
import { DeepReadonly } from 'vue';
|
|
8
7
|
import { DefineComponent } from 'vue';
|
|
9
|
-
import { EpPropMergeType } from 'element-plus/es/utils/index.mjs';
|
|
10
8
|
import { ExtractPropTypes } from 'vue';
|
|
11
9
|
import { FormInstance as FormInstance_2 } from 'packages/types';
|
|
12
10
|
import { FormValidationResult } from 'element-plus';
|
|
@@ -180,16 +178,20 @@ declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
|
180
178
|
};
|
|
181
179
|
|
|
182
180
|
declare type BtnType = {
|
|
181
|
+
isGroup?: boolean;
|
|
182
|
+
children?: BtnType[];
|
|
183
|
+
tooltip?: string;
|
|
183
184
|
key: string;
|
|
184
|
-
text
|
|
185
|
+
text?: string;
|
|
185
186
|
isTextBtn?: boolean;
|
|
186
187
|
isLinkBtn?: boolean;
|
|
187
188
|
isPlainBtn?: boolean;
|
|
188
|
-
onClick
|
|
189
|
+
onClick?: string;
|
|
189
190
|
disabled?: boolean;
|
|
190
191
|
hidden?: boolean;
|
|
191
192
|
type?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
192
193
|
color?: string;
|
|
194
|
+
orange?: boolean;
|
|
193
195
|
icon?: {
|
|
194
196
|
name: string;
|
|
195
197
|
color?: string;
|
|
@@ -231,14 +233,14 @@ readonly rulePath?: string | undefined;
|
|
|
231
233
|
readonly onMounted?: string | undefined;
|
|
232
234
|
readonly onActivated?: string | undefined;
|
|
233
235
|
readonly tabProps?: {
|
|
234
|
-
readonly type:
|
|
236
|
+
readonly type: "" | "card" | "border-card";
|
|
235
237
|
readonly stretch: boolean;
|
|
236
238
|
readonly closable: boolean;
|
|
237
239
|
readonly addable: boolean;
|
|
238
240
|
readonly editable: boolean;
|
|
239
|
-
readonly tabPosition:
|
|
240
|
-
readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) =>
|
|
241
|
-
readonly modelValue?:
|
|
241
|
+
readonly tabPosition: "right" | "top" | "left" | "bottom";
|
|
242
|
+
readonly beforeLeave: (newName: TabPaneName, oldName: TabPaneName) => boolean | void | Promise<boolean | void>;
|
|
243
|
+
readonly modelValue?: (string | number) | undefined;
|
|
242
244
|
} | undefined;
|
|
243
245
|
readonly hidden?: boolean | undefined;
|
|
244
246
|
readonly isSticky?: boolean | undefined;
|
|
@@ -340,6 +342,7 @@ y: number;
|
|
|
340
342
|
w: number;
|
|
341
343
|
h: number;
|
|
342
344
|
i: string;
|
|
345
|
+
rowHeight?: number;
|
|
343
346
|
}[]>;
|
|
344
347
|
};
|
|
345
348
|
children: {
|
|
@@ -366,12 +369,14 @@ readonly y: number;
|
|
|
366
369
|
readonly w: number;
|
|
367
370
|
readonly h: number;
|
|
368
371
|
readonly i: string;
|
|
372
|
+
readonly rowHeight?: number | undefined;
|
|
369
373
|
}[], readonly {
|
|
370
374
|
readonly x: number;
|
|
371
375
|
readonly y: number;
|
|
372
376
|
readonly w: number;
|
|
373
377
|
readonly h: number;
|
|
374
378
|
readonly i: string;
|
|
379
|
+
readonly rowHeight?: number | undefined;
|
|
375
380
|
}[]>>;
|
|
376
381
|
setItemX: (index: number, x: number) => void;
|
|
377
382
|
setItemY: (index: number, y: number) => void;
|
|
@@ -385,6 +390,7 @@ y: number;
|
|
|
385
390
|
w: number;
|
|
386
391
|
h: number;
|
|
387
392
|
i: string;
|
|
393
|
+
rowHeight?: number;
|
|
388
394
|
}[]>;
|
|
389
395
|
};
|
|
390
396
|
children: {
|
|
@@ -575,6 +581,7 @@ declare type InfoCardSchema = {
|
|
|
575
581
|
copiable: boolean;
|
|
576
582
|
btns: BtnType[];
|
|
577
583
|
dropdowns: DropdownType[];
|
|
584
|
+
infos: InfoType[];
|
|
578
585
|
key: string;
|
|
579
586
|
rulePath?: string;
|
|
580
587
|
onMounted?: string;
|
|
@@ -592,7 +599,23 @@ declare type InfoCardSchema = {
|
|
|
592
599
|
avatar: string;
|
|
593
600
|
avatarBgColor?: string;
|
|
594
601
|
avatarIconColor?: string;
|
|
602
|
+
titleIcons?: {
|
|
603
|
+
icon: string;
|
|
604
|
+
onClick?: string;
|
|
605
|
+
}[];
|
|
606
|
+
};
|
|
607
|
+
};
|
|
608
|
+
|
|
609
|
+
declare type InfoType = {
|
|
610
|
+
key: string;
|
|
611
|
+
label: string;
|
|
612
|
+
value?: string;
|
|
613
|
+
type?: 'success' | 'warning' | 'danger';
|
|
614
|
+
icon?: {
|
|
615
|
+
name: string;
|
|
616
|
+
color?: string;
|
|
595
617
|
};
|
|
618
|
+
expendComponents?: FormItemType[];
|
|
596
619
|
};
|
|
597
620
|
|
|
598
621
|
declare type Locale = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as B, ref as g, inject as h, resolveComponent as d, openBlock as s, createBlock as i, mergeProps as M, withCtx as c, createElementVNode as o, createElementBlock as n, createVNode as t, unref as p, normalizeClass as $, createCommentVNode as I, toDisplayString as v, Fragment as u, renderList as C, withDirectives as E, vShow as V } from "vue";
|
|
2
|
-
import { _ as D, I as k, B as F, a as N, b as S } from "./index-
|
|
2
|
+
import { _ as D, I as k, B as F, a as N, b as S } from "./index-2Lph8ou3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const j = { class: "card-header" }, H = { class: "card-btns" }, L = { class: "card-sub-header" }, P = /* @__PURE__ */ B({
|
|
5
5
|
__name: "Card",
|
|
@@ -98,7 +98,7 @@ const j = { class: "card-header" }, H = { class: "card-btns" }, L = { class: "ca
|
|
|
98
98
|
}, 16, ["class"]);
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
}), G = /* @__PURE__ */ S(P, [["__scopeId", "data-v-
|
|
101
|
+
}), G = /* @__PURE__ */ S(P, [["__scopeId", "data-v-37d0cc4b"]]);
|
|
102
102
|
export {
|
|
103
103
|
G as default
|
|
104
104
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, mergeModels as g, useModel as v, inject as r, resolveComponent as y, openBlock as M, createBlock as h, mergeProps as C, unref as s } from "vue";
|
|
2
2
|
import "element-plus";
|
|
3
|
-
import { u as b } from "./useSelect-
|
|
3
|
+
import { u as b } from "./useSelect-CmUZu1rN.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 z, useModel as F, watch as D, resolveComponent as t, resolveDirective as M, unref as a, openBlock as l, createElementBlock as s, toDisplayString as I, withDirectives as P, createBlock as r, mergeProps as S, withCtx as y, Fragment as b, renderList as f, createCommentVNode as v } 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-2Lph8ou3.js";
|
|
4
|
+
import { u as E } from "./useSelect-CmUZu1rN.js";
|
|
5
5
|
const L = { key: 0 }, q = /* @__PURE__ */ w({
|
|
6
6
|
__name: "Checkbox",
|
|
7
7
|
props: /* @__PURE__ */ z({
|
|
@@ -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-2Lph8ou3.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-2Lph8ou3.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(",");
|
|
@@ -111,7 +111,7 @@ const P = { class: "vfc-verify-code" }, k = /* @__PURE__ */ g({
|
|
|
111
111
|
]);
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
|
-
}), T = /* @__PURE__ */ x(k, [["__scopeId", "data-v-
|
|
114
|
+
}), T = /* @__PURE__ */ x(k, [["__scopeId", "data-v-eda48825"]]);
|
|
115
115
|
export {
|
|
116
116
|
T as default
|
|
117
117
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as w, inject as C, ref as v, watch as $, resolveComponent as m, openBlock as d, createBlock as y, mergeProps as A, withCtx as f, createElementVNode as
|
|
2
|
-
import { f as F, I as j, b as D } from "./index-
|
|
1
|
+
import { defineComponent as w, inject as C, ref as v, watch as $, resolveComponent as m, openBlock as d, createBlock as y, mergeProps as A, withCtx as f, createElementVNode as c, toDisplayString as B, createElementBlock as k, createCommentVNode as _, Fragment as N, renderList as E, unref as I, withModifiers as P, createVNode as V } from "vue";
|
|
2
|
+
import { f as F, I as j, b as D } from "./index-2Lph8ou3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = { class: "tree-node-label" }, z = {
|
|
5
5
|
key: 0,
|
|
@@ -21,8 +21,8 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
|
|
|
21
21
|
if (a)
|
|
22
22
|
try {
|
|
23
23
|
a[e](l, { node: t, data: r });
|
|
24
|
-
} catch (
|
|
25
|
-
console.error(
|
|
24
|
+
} catch (s) {
|
|
25
|
+
console.error(s);
|
|
26
26
|
}
|
|
27
27
|
}, b = (e, t) => {
|
|
28
28
|
if (o.onNodeClick && a)
|
|
@@ -35,8 +35,8 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
|
|
|
35
35
|
if (o.onLoad && a)
|
|
36
36
|
try {
|
|
37
37
|
a[o.onLoad](l, { node: e, resolve: t, reject: r });
|
|
38
|
-
} catch (
|
|
39
|
-
console.error(
|
|
38
|
+
} catch (s) {
|
|
39
|
+
console.error(s);
|
|
40
40
|
}
|
|
41
41
|
}, h = v([]);
|
|
42
42
|
return $(
|
|
@@ -52,7 +52,7 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
|
|
|
52
52
|
immediate: !0
|
|
53
53
|
}
|
|
54
54
|
), (e, t) => {
|
|
55
|
-
const r = m("el-tooltip"),
|
|
55
|
+
const r = m("el-tooltip"), s = m("el-button"), L = m("el-tree");
|
|
56
56
|
return d(), y(L, A(e.$attrs, {
|
|
57
57
|
onNodeClick: b,
|
|
58
58
|
load: x,
|
|
@@ -67,16 +67,16 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
|
|
|
67
67
|
"default-expanded-keys": h.value
|
|
68
68
|
}), {
|
|
69
69
|
default: f(({ node: p, data: u }) => [
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
c("div", R, [
|
|
71
|
+
c("div", S, [
|
|
72
|
+
c("span", q, B(p.label), 1),
|
|
73
73
|
u[e.nodeKey] === i.value ? (d(), k("div", z, "Present")) : _("", !0)
|
|
74
74
|
]),
|
|
75
|
-
|
|
75
|
+
c("div", null, [
|
|
76
76
|
(d(!0), k(N, null, E(e.btns, (n) => (d(), k(N, {
|
|
77
77
|
key: n.key
|
|
78
78
|
}, [
|
|
79
|
-
I(F)(n.hidden, { $node: p, $data: u }) ? _("", !0) : (d(), y(
|
|
79
|
+
I(F)(n.hidden, { $node: p, $data: u }) ? _("", !0) : (d(), y(s, {
|
|
80
80
|
key: 0,
|
|
81
81
|
link: "",
|
|
82
82
|
onClick: P((H) => M(n.onClick, p, u), ["stop"]),
|
|
@@ -112,7 +112,7 @@ const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = {
|
|
|
112
112
|
}, 16, ["current-node-key", "node-key", "props", "data", "default-expanded-keys"]);
|
|
113
113
|
};
|
|
114
114
|
}
|
|
115
|
-
}), T = /* @__PURE__ */ D(G, [["__scopeId", "data-v-
|
|
115
|
+
}), T = /* @__PURE__ */ D(G, [["__scopeId", "data-v-c5b14347"]]);
|
|
116
116
|
export {
|
|
117
117
|
T as default
|
|
118
118
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, mergeModels as p, useModel as u, resolveComponent as i, openBlock as t, createElementBlock as d, 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-2Lph8ou3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const k = { key: 0 }, K = /* @__PURE__ */ s({
|
|
5
5
|
__name: "Component",
|
|
@@ -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-2Lph8ou3.js";
|
|
4
4
|
const $ = {
|
|
5
5
|
key: 0,
|
|
6
6
|
style: { "min-width": "300px" }
|
|
@@ -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-2Lph8ou3.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-2Lph8ou3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const Z = $({
|
|
5
5
|
props: {
|
|
@@ -172,7 +172,7 @@ function j(a, n, c, d, t, g) {
|
|
|
172
172
|
onTouchend: n[5] || (n[5] = (...o) => a.touchEnd && a.touchEnd(...o))
|
|
173
173
|
}, null, 544);
|
|
174
174
|
}
|
|
175
|
-
const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-
|
|
175
|
+
const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-5f3bfcf7"]]), ee = { key: 0 }, te = { class: "vfc-esign-preview" }, le = ["src"], ae = {
|
|
176
176
|
key: 1,
|
|
177
177
|
class: "vfc-esign"
|
|
178
178
|
}, ie = /* @__PURE__ */ $({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as z, inject as V, ref as
|
|
2
|
-
import { u as q, I as u, B as A, a as R, h as G, b as H } from "./index-
|
|
1
|
+
import { defineComponent as z, inject as V, ref as _, resolveComponent as y, openBlock as a, createElementBlock as s, createElementVNode as i, normalizeClass as C, createBlock as r, createCommentVNode as m, toDisplayString as M, withCtx as f, Fragment as w, renderList as $, createTextVNode as j, createVNode as p, unref as T, withDirectives as P, vShow as U } from "vue";
|
|
2
|
+
import { u as q, I as u, B as A, a as R, h as G, b as H } from "./index-2Lph8ou3.js";
|
|
3
3
|
import "element-plus";
|
|
4
4
|
const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "title" }, Q = { class: "right-part" }, W = {
|
|
5
5
|
key: 0,
|
|
@@ -23,7 +23,7 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
|
|
|
23
23
|
radioDefault: {}
|
|
24
24
|
},
|
|
25
25
|
setup(S) {
|
|
26
|
-
const c = V("ruleModule", void 0), k = V("pageMethodMap", {}), n = S,
|
|
26
|
+
const c = V("ruleModule", void 0), k = V("pageMethodMap", {}), n = S, g = _(n.radioDefault ?? "2"), B = (e) => {
|
|
27
27
|
if (e && c)
|
|
28
28
|
try {
|
|
29
29
|
c[e](k);
|
|
@@ -34,23 +34,24 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
|
|
|
34
34
|
n.onRadioChange && c && c[n.onRadioChange](k, e);
|
|
35
35
|
}, L = () => {
|
|
36
36
|
d.value = !d.value, n.onCollapsed && c && c[n.onCollapsed](k, d.value);
|
|
37
|
-
}, d =
|
|
37
|
+
}, d = _(!1), v = _(n.displayType || (n.typeSwitch ? "card" : "table")), N = q(), b = (e) => {
|
|
38
38
|
v.value = e;
|
|
39
|
-
const o = G(N.schema.items, n.name), h = (
|
|
40
|
-
|
|
39
|
+
const o = G(N.schema.items, n.name), h = (I) => {
|
|
40
|
+
I.forEach((t) => {
|
|
41
41
|
t.component === "Table" && t.props && (t.props.displayType = e), t.children && t.children.length > 0 && h(t.children);
|
|
42
42
|
});
|
|
43
43
|
};
|
|
44
44
|
o && o.children && h(o.children);
|
|
45
45
|
};
|
|
46
|
-
return
|
|
47
|
-
const h =
|
|
46
|
+
return b(v.value), (e, o) => {
|
|
47
|
+
const h = y("el-radio"), I = y("el-radio-group"), t = y("el-tooltip"), E = y("el-collapse-transition");
|
|
48
48
|
return a(), s("div", J, [
|
|
49
49
|
i("div", {
|
|
50
|
-
class:
|
|
50
|
+
class: C(["card-header", {
|
|
51
51
|
inline: e.type === "inline",
|
|
52
52
|
mix: e.type === "mix",
|
|
53
53
|
default: e.type === "default",
|
|
54
|
+
gridItem: e.type === "gridItem",
|
|
54
55
|
collapsedPadding: d.value && e.onCollapsed
|
|
55
56
|
}])
|
|
56
57
|
}, [
|
|
@@ -63,12 +64,12 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
|
|
|
63
64
|
color: e.mainIcon.color
|
|
64
65
|
}, null, 8, ["name", "color"])) : m("", !0),
|
|
65
66
|
i("span", O, M(e.title), 1),
|
|
66
|
-
e.radioList ? (a(), r(
|
|
67
|
+
e.radioList ? (a(), r(I, {
|
|
67
68
|
key: 1,
|
|
68
69
|
class: "ml-9",
|
|
69
|
-
modelValue:
|
|
70
|
-
"onUpdate:modelValue": o[0] || (o[0] = (l) =>
|
|
71
|
-
onChange: o[1] || (o[1] = (l) => D(
|
|
70
|
+
modelValue: g.value,
|
|
71
|
+
"onUpdate:modelValue": o[0] || (o[0] = (l) => g.value = l),
|
|
72
|
+
onChange: o[1] || (o[1] = (l) => D(g.value))
|
|
72
73
|
}, {
|
|
73
74
|
default: f(() => [
|
|
74
75
|
(a(!0), s(w, null, $(e.radioList, (l) => (a(), r(h, {
|
|
@@ -112,21 +113,21 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
|
|
|
112
113
|
i("div", Q, [
|
|
113
114
|
e.typeSwitch ? (a(), s("div", W, [
|
|
114
115
|
i("div", {
|
|
115
|
-
class:
|
|
116
|
-
onClick: o[2] || (o[2] = (l) =>
|
|
116
|
+
class: C(["switch-icon-wrapper", { active: v.value === "card" }]),
|
|
117
|
+
onClick: o[2] || (o[2] = (l) => b("card"))
|
|
117
118
|
}, [
|
|
118
119
|
p(u, { name: "icon-kapian" })
|
|
119
120
|
], 2),
|
|
120
121
|
i("div", {
|
|
121
|
-
class:
|
|
122
|
-
onClick: o[3] || (o[3] = (l) =>
|
|
122
|
+
class: C(["switch-icon-wrapper", { active: v.value === "table" }]),
|
|
123
|
+
onClick: o[3] || (o[3] = (l) => b("table"))
|
|
123
124
|
}, [
|
|
124
125
|
p(u, { name: "icon-biaoge" })
|
|
125
126
|
], 2)
|
|
126
127
|
])) : m("", !0),
|
|
127
128
|
e.collapsible ? (a(), s("div", {
|
|
128
129
|
key: 1,
|
|
129
|
-
class:
|
|
130
|
+
class: C(["collapse-icon-wrapper", { collapsed: d.value }]),
|
|
130
131
|
onClick: L
|
|
131
132
|
}, [
|
|
132
133
|
p(u, { name: "icon-shaixuan" })
|
|
@@ -154,7 +155,7 @@ const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "
|
|
|
154
155
|
]);
|
|
155
156
|
};
|
|
156
157
|
}
|
|
157
|
-
}), le = /* @__PURE__ */ H(Y, [["__scopeId", "data-v-
|
|
158
|
+
}), le = /* @__PURE__ */ H(Y, [["__scopeId", "data-v-f57a931b"]]);
|
|
158
159
|
export {
|
|
159
160
|
le as default
|
|
160
161
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as
|
|
2
|
-
import { b as i } from "./index-
|
|
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-2Lph8ou3.js";
|
|
3
3
|
const f = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "empty"
|
|
@@ -12,15 +12,15 @@ const f = {
|
|
|
12
12
|
modelModifiers: {}
|
|
13
13
|
}),
|
|
14
14
|
emits: ["update:modelValue"],
|
|
15
|
-
setup(
|
|
16
|
-
const o = p(
|
|
17
|
-
return (e, m) => e.componentName ? (t(), d(
|
|
15
|
+
setup(a) {
|
|
16
|
+
const o = p(a, "modelValue");
|
|
17
|
+
return (e, m) => e.componentName ? (t(), u(d(e.componentName), c({
|
|
18
18
|
key: 1,
|
|
19
19
|
modelValue: o.value,
|
|
20
|
-
"onUpdate:modelValue": m[0] || (m[0] = (
|
|
20
|
+
"onUpdate:modelValue": m[0] || (m[0] = (l) => o.value = l)
|
|
21
21
|
}, e.$attrs), null, 16, ["modelValue"])) : (t(), r("span", f, "请输入全局注册得组件名"));
|
|
22
22
|
}
|
|
23
|
-
}), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-
|
|
23
|
+
}), v = /* @__PURE__ */ i(_, [["__scopeId", "data-v-a013b8cf"]]);
|
|
24
24
|
export {
|
|
25
25
|
v as default
|
|
26
26
|
};
|