@web-utils/form-ui 1.0.0-beta2 → 1.0.0-beta21
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/base.css +1 -1
- package/chunks/1chbbDUh.mjs +98 -0
- package/chunks/5HLN3g1u.mjs +51 -0
- package/chunks/B5B9au3z.mjs +180 -0
- package/chunks/BI2XOQW3.mjs +226 -0
- package/chunks/BLpnMrum.mjs +189 -0
- package/chunks/BNpqILFO.mjs +95 -0
- package/chunks/Bb43eI1f.mjs +93 -0
- package/chunks/BbrVRWUo.mjs +73 -0
- package/chunks/Bd1I-R29.mjs +53 -0
- package/chunks/Bh_CMUlo.mjs +12 -0
- package/chunks/Bv-Gn_Jd.mjs +42 -0
- package/chunks/C4MTLHn4.mjs +26 -0
- package/chunks/CI4RZnNc.mjs +26 -0
- package/chunks/CnsFNU2A.mjs +17 -0
- package/chunks/Cw8pz9hK.mjs +222 -0
- package/chunks/D4v0MyB_.mjs +106 -0
- package/chunks/D9GcEl6r.mjs +8 -0
- package/chunks/DGhMkri0.mjs +88 -0
- package/chunks/DOI7ju3i.mjs +108 -0
- package/chunks/DRDj0e_k.mjs +171 -0
- package/chunks/Dq3yxEPg.mjs +106 -0
- package/chunks/Dy5-h_Tx.mjs +108 -0
- package/chunks/RcygoTkQ.mjs +26 -0
- package/chunks/iWlTrkaC.mjs +76 -0
- package/chunks/lTFu0zgR.mjs +106 -0
- package/chunks/wfL1FAwc.mjs +1360 -0
- package/constants.d.ts +42 -0
- package/constants.mjs +3 -3
- package/element-dialog/index.d.ts +96 -0
- package/element-dialog/index.mjs +2 -92
- package/element-dialog/style.css +1 -1
- package/empty-view/index.d.ts +29 -0
- package/flex-scroll-area/index.d.ts +22 -0
- package/form-advice/index.d.ts +9 -0
- package/form-advice/index.mjs +13 -12
- package/form-cascader/index.d.ts +2 -0
- package/form-cascader/index.mjs +10 -0
- package/form-cell/index.d.ts +25 -0
- package/form-check-box-group/index.d.ts +293 -0
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +271 -0
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +421 -0
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +166 -0
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +224 -0
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +387 -0
- package/form-input/index.mjs +1 -1
- package/form-input/style.css +1 -0
- package/form-input-cron-expression/index.d.ts +215 -0
- package/form-input-cron-expression/index.mjs +2 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.d.ts +363 -0
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +363 -0
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +325 -0
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +363 -0
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.d.ts +2 -0
- package/form-input-time/index.d.ts +2 -0
- package/form-item-config-provider/index.d.ts +22 -0
- package/form-item-config-provider/index.mjs +24 -0
- package/form-item-group/index.d.ts +92 -0
- package/form-item-group/index.mjs +2 -78
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.d.ts +184 -0
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -0
- package/form-radio-group/index.d.ts +281 -0
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +319 -0
- package/form-rate/index.mjs +1 -1
- package/form-red-table/index.d.ts +21 -0
- package/form-red-table/index.mjs +27 -26
- package/form-row/index.d.ts +11 -0
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +540 -0
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +348 -0
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +337 -0
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +227 -0
- package/form-text/index.mjs +1 -1
- package/form-view/index.d.ts +2 -0
- package/index.d.ts +42 -0
- package/index.mjs +39 -34
- package/month-calendar/index.d.ts +80 -0
- package/month-calendar/index.mjs +312 -0
- package/month-calendar/style.css +1 -0
- package/package.json +10 -7
- package/resolver.d.ts +9 -0
- package/resolver.mjs +29 -0
- package/table-view/index.d.ts +2 -0
- package/toolbar/index.d.ts +2 -0
- package/toolbar-button/index.d.ts +2 -0
- package/vue-cron/index.d.ts +191 -0
- package/vue-cron/index.mjs +2 -0
- package/vue-cron/style.css +1 -0
- package/web-types.json +1 -1
- package/year-calendar/index.d.ts +99 -0
- package/year-calendar/index.mjs +174 -0
- package/year-calendar/style.css +1 -0
- package/chunks/B4M_TFeR.mjs +0 -152
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BHNKrW1j.mjs +0 -61
- package/chunks/BO9jWhBl.mjs +0 -46
- package/chunks/BZ8aOa78.mjs +0 -35
- package/chunks/Bsz7y4Xp.mjs +0 -73
- package/chunks/Bxj372sF.mjs +0 -53
- package/chunks/C33EmJN8.mjs +0 -32
- package/chunks/C6Li3-l7.mjs +0 -28
- package/chunks/CBcdalMX.mjs +0 -35
- package/chunks/CdRsyF0n.mjs +0 -43
- package/chunks/ClNahmiU.mjs +0 -23
- package/chunks/CstztYMu.mjs +0 -28
- package/chunks/DC9b53M6.mjs +0 -32
- package/chunks/DDVAgRED.mjs +0 -36
- package/chunks/DpJQABVD.mjs +0 -91
- package/chunks/ZsLNWI9x.mjs +0 -46
- package/chunks/jn_iQrVZ.mjs +0 -28
- package/input/style.css +0 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { n as e, t } from "./CnsFNU2A.mjs";
|
|
2
|
+
//#region src/components/form/props/input.js
|
|
3
|
+
var n = {
|
|
4
|
+
...e,
|
|
5
|
+
...t,
|
|
6
|
+
type: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "text"
|
|
9
|
+
},
|
|
10
|
+
modelValue: [String, Number],
|
|
11
|
+
modelModifiers: Object,
|
|
12
|
+
maxlength: [String, Number],
|
|
13
|
+
minlength: [String, Number],
|
|
14
|
+
showWordLimit: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
wordLimitPosition: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "inside"
|
|
21
|
+
},
|
|
22
|
+
placeholder: String,
|
|
23
|
+
clearable: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
},
|
|
27
|
+
clearIcon: [String, Object],
|
|
28
|
+
formatter: Function,
|
|
29
|
+
parser: Function,
|
|
30
|
+
showPassword: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
size: String,
|
|
35
|
+
prefixIcon: [String, Object],
|
|
36
|
+
suffixIcon: [String, Object],
|
|
37
|
+
rows: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 2
|
|
40
|
+
},
|
|
41
|
+
autosize: [Boolean, Object],
|
|
42
|
+
autocomplete: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "off"
|
|
45
|
+
},
|
|
46
|
+
name: String,
|
|
47
|
+
readonly: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
max: [String, Number],
|
|
52
|
+
min: [String, Number],
|
|
53
|
+
step: [String, Number],
|
|
54
|
+
resize: String,
|
|
55
|
+
autofocus: {
|
|
56
|
+
type: Boolean,
|
|
57
|
+
default: !1
|
|
58
|
+
},
|
|
59
|
+
form: String,
|
|
60
|
+
ariaLabel: String,
|
|
61
|
+
tabindex: [String, Number],
|
|
62
|
+
validateEvent: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !0
|
|
65
|
+
},
|
|
66
|
+
inputStyle: [String, Object],
|
|
67
|
+
label: String,
|
|
68
|
+
inputmode: String,
|
|
69
|
+
countGraphemes: Function,
|
|
70
|
+
prepend: String,
|
|
71
|
+
append: String,
|
|
72
|
+
prefix: String,
|
|
73
|
+
suffix: String,
|
|
74
|
+
picker: Boolean,
|
|
75
|
+
readonlyGrey: {
|
|
76
|
+
type: Boolean,
|
|
77
|
+
default: !0
|
|
78
|
+
}
|
|
79
|
+
}, r = {
|
|
80
|
+
readonly: !0,
|
|
81
|
+
prefixIcon: !0,
|
|
82
|
+
suffixIcon: !0,
|
|
83
|
+
placeholder: !0,
|
|
84
|
+
modelValue: !0,
|
|
85
|
+
readonlyGrey: !0,
|
|
86
|
+
picker: !0,
|
|
87
|
+
append: !0,
|
|
88
|
+
prefix: !0,
|
|
89
|
+
suffix: !0,
|
|
90
|
+
prepend: !0
|
|
91
|
+
}, i = [
|
|
92
|
+
"click",
|
|
93
|
+
"blur",
|
|
94
|
+
"focus",
|
|
95
|
+
"change",
|
|
96
|
+
"input",
|
|
97
|
+
"clear",
|
|
98
|
+
"keydown",
|
|
99
|
+
"mouseleave",
|
|
100
|
+
"mouseenter",
|
|
101
|
+
"compositionstart",
|
|
102
|
+
"compositionupdate",
|
|
103
|
+
"compositionend"
|
|
104
|
+
], a = (t) => e[t] === void 0 && r[t] !== !0;
|
|
105
|
+
//#endregion
|
|
106
|
+
export { i as n, a as r, n as t };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { i as e, n as t } from "./Cw8pz9hK.mjs";
|
|
2
|
+
import { n } from "./CnsFNU2A.mjs";
|
|
3
|
+
import { ElCheckbox as r, ElCheckboxButton as i, ElCheckboxGroup as a } from "element-plus/es";
|
|
4
|
+
import { computed as o, createVNode as s, isVNode as c, mergeProps as l } from "vue";
|
|
5
|
+
//#region src/components/form/props/checkbox-group.js
|
|
6
|
+
var u = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: Array,
|
|
10
|
+
default: () => []
|
|
11
|
+
},
|
|
12
|
+
size: String,
|
|
13
|
+
min: Number,
|
|
14
|
+
max: Number,
|
|
15
|
+
ariaLabel: String,
|
|
16
|
+
textColor: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "#ffffff"
|
|
19
|
+
},
|
|
20
|
+
fill: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "#409eff"
|
|
23
|
+
},
|
|
24
|
+
tag: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "div"
|
|
27
|
+
},
|
|
28
|
+
validateEvent: {
|
|
29
|
+
type: Boolean,
|
|
30
|
+
default: !0
|
|
31
|
+
},
|
|
32
|
+
label: String,
|
|
33
|
+
options: Array,
|
|
34
|
+
props: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default: () => ({
|
|
37
|
+
value: "value",
|
|
38
|
+
label: "label",
|
|
39
|
+
disabled: "disabled"
|
|
40
|
+
})
|
|
41
|
+
},
|
|
42
|
+
type: {
|
|
43
|
+
type: String,
|
|
44
|
+
default: "checkbox"
|
|
45
|
+
},
|
|
46
|
+
stringMode: Boolean,
|
|
47
|
+
delimiter: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ","
|
|
50
|
+
}
|
|
51
|
+
}, d = {
|
|
52
|
+
modelValue: !0,
|
|
53
|
+
type: !0,
|
|
54
|
+
options: !0
|
|
55
|
+
}, f = ["change"], p = (e) => n[e] === void 0 && d[e] !== !0;
|
|
56
|
+
//#endregion
|
|
57
|
+
//#region src/components/form/FormCheckBoxGroup.vue?vue&type=script&lang.jsx
|
|
58
|
+
function m(e) {
|
|
59
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
//#region src/components/form/FormCheckBoxGroup.vue
|
|
63
|
+
var h = {
|
|
64
|
+
name: "FormCheckBoxGroup",
|
|
65
|
+
inheritAttrs: !1,
|
|
66
|
+
props: { ...u },
|
|
67
|
+
emits: {
|
|
68
|
+
...t,
|
|
69
|
+
change: null
|
|
70
|
+
},
|
|
71
|
+
setup(t, { emit: n, slots: c, attrs: u }) {
|
|
72
|
+
let { emitInput: d, render: h, disabled: g, autoBind: _ } = e(t, {
|
|
73
|
+
emit: n,
|
|
74
|
+
slots: c,
|
|
75
|
+
attrs: u,
|
|
76
|
+
events: f,
|
|
77
|
+
predicate: p,
|
|
78
|
+
messagePrefix: "请选择"
|
|
79
|
+
}), v = (e) => d(t.stringMode ? e.join(t.delimiter) : e), y = o(() => {
|
|
80
|
+
if (t.stringMode) {
|
|
81
|
+
var e;
|
|
82
|
+
return Array.isArray(t.modelValue) ? t.modelValue.filter((e) => e) : ((e = t.modelValue) == null ? void 0 : e.split(t.delimiter).filter((e) => e)) ?? [];
|
|
83
|
+
}
|
|
84
|
+
return t.modelValue || [];
|
|
85
|
+
});
|
|
86
|
+
return () => h({ vNodes: s(a, l(_.value, {
|
|
87
|
+
modelValue: y.value,
|
|
88
|
+
disabled: g.value,
|
|
89
|
+
"onUpdate:modelValue": v
|
|
90
|
+
}), {
|
|
91
|
+
...c,
|
|
92
|
+
default: c.default || (() => {
|
|
93
|
+
var e;
|
|
94
|
+
return (e = t.options) == null ? void 0 : e.map(({ value: e, label: n, disabled: a }) => t.type === "button" ? s(i, {
|
|
95
|
+
key: e,
|
|
96
|
+
value: e,
|
|
97
|
+
disabled: a
|
|
98
|
+
}, m(n) ? n : { default: () => [n] }) : s(r, {
|
|
99
|
+
key: e,
|
|
100
|
+
value: e,
|
|
101
|
+
disabled: a
|
|
102
|
+
}, m(n) ? n : { default: () => [n] }));
|
|
103
|
+
})
|
|
104
|
+
}) });
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { h as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { n as e } from "./Cw8pz9hK.mjs";
|
|
2
|
+
import { t } from "./BbrVRWUo.mjs";
|
|
3
|
+
import { t as n } from "./Dq3yxEPg.mjs";
|
|
4
|
+
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
|
+
//#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
|
|
6
|
+
function s(e) {
|
|
7
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !i(e);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/components/form/FormInputIdCard.vue
|
|
11
|
+
var c = {
|
|
12
|
+
name: "FormInputIdCard",
|
|
13
|
+
inheritAttrs: !1,
|
|
14
|
+
props: { ...n },
|
|
15
|
+
emits: { ...e },
|
|
16
|
+
setup(e, { slots: n, attrs: i }) {
|
|
17
|
+
let c = o(e, "modelValue");
|
|
18
|
+
return () => r(t, a(e, i, {
|
|
19
|
+
modelValue: c.value,
|
|
20
|
+
"onUpdate:modelValue": (e) => c.value = e,
|
|
21
|
+
type: "idcard"
|
|
22
|
+
}), s(n) ? n : { default: () => [n] });
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { c as t };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { i as e, n as t } from "./Cw8pz9hK.mjs";
|
|
2
|
+
import { n } from "./CnsFNU2A.mjs";
|
|
3
|
+
import { ElCheckbox as r } from "element-plus/es";
|
|
4
|
+
import { createVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
|
+
//#region src/components/form/props/checkbox.js
|
|
6
|
+
var s = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: [
|
|
9
|
+
String,
|
|
10
|
+
Number,
|
|
11
|
+
Boolean
|
|
12
|
+
],
|
|
13
|
+
value: [
|
|
14
|
+
String,
|
|
15
|
+
Number,
|
|
16
|
+
Boolean,
|
|
17
|
+
Object
|
|
18
|
+
],
|
|
19
|
+
label: [
|
|
20
|
+
String,
|
|
21
|
+
Number,
|
|
22
|
+
Boolean,
|
|
23
|
+
Object
|
|
24
|
+
],
|
|
25
|
+
trueValue: [String, Number],
|
|
26
|
+
falseValue: [String, Number],
|
|
27
|
+
border: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !1
|
|
30
|
+
},
|
|
31
|
+
size: String,
|
|
32
|
+
name: String,
|
|
33
|
+
checked: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
},
|
|
37
|
+
indeterminate: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !1
|
|
40
|
+
},
|
|
41
|
+
validateEvent: {
|
|
42
|
+
type: Boolean,
|
|
43
|
+
default: !0
|
|
44
|
+
},
|
|
45
|
+
tabindex: [String, Number],
|
|
46
|
+
id: String,
|
|
47
|
+
ariaControls: String,
|
|
48
|
+
ariaLabel: String,
|
|
49
|
+
trueLabel: [String, Number],
|
|
50
|
+
falseLabel: [String, Number],
|
|
51
|
+
controls: String
|
|
52
|
+
}, c = { modelValue: !0 }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
|
|
53
|
+
name: "FormCheckbox",
|
|
54
|
+
inheritAttrs: !1,
|
|
55
|
+
props: { ...s },
|
|
56
|
+
emits: {
|
|
57
|
+
...t,
|
|
58
|
+
change: null
|
|
59
|
+
},
|
|
60
|
+
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
61
|
+
let d = o(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
|
|
62
|
+
emit: n,
|
|
63
|
+
slots: s,
|
|
64
|
+
attrs: c,
|
|
65
|
+
events: l,
|
|
66
|
+
predicate: u
|
|
67
|
+
});
|
|
68
|
+
return () => f({ vNodes: i(r, a(m.value, {
|
|
69
|
+
modelValue: d.value,
|
|
70
|
+
"onUpdate:modelValue": (e) => d.value = e,
|
|
71
|
+
disabled: p.value
|
|
72
|
+
}), { default: s.default }) });
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { d as t };
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { formItemGroupContextKey as e, formViewContextKey as t } from "../constants.mjs";
|
|
2
|
+
import n from "../empty-view/index.mjs";
|
|
3
|
+
import { ElRow as r } from "element-plus/es";
|
|
4
|
+
import { Fragment as i, computed as a, createTextVNode as o, createVNode as s, h as c, inject as l, isVNode as u, onBeforeUnmount as d, onMounted as f, provide as p, reactive as m, ref as h, toRef as g, vShow as _, watchEffect as v, withDirectives as y } from "vue";
|
|
5
|
+
import { ElCol as b, ElCollapseTransition as x } from "element-plus";
|
|
6
|
+
//#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
|
|
7
|
+
function S(e) {
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !u(e);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/components/form/FormItemGroup.vue
|
|
12
|
+
var C = {
|
|
13
|
+
name: "FormItemGroup",
|
|
14
|
+
props: {
|
|
15
|
+
blockTitle: String,
|
|
16
|
+
size: String,
|
|
17
|
+
tips: String,
|
|
18
|
+
active: Boolean,
|
|
19
|
+
enabled: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: void 0
|
|
22
|
+
},
|
|
23
|
+
disabled: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: void 0
|
|
26
|
+
},
|
|
27
|
+
tag: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "ElCol"
|
|
30
|
+
},
|
|
31
|
+
span: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 24
|
|
34
|
+
},
|
|
35
|
+
block: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !0
|
|
38
|
+
},
|
|
39
|
+
wrapRow: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !0
|
|
42
|
+
},
|
|
43
|
+
gutter: {
|
|
44
|
+
type: Number,
|
|
45
|
+
default: 20
|
|
46
|
+
},
|
|
47
|
+
collapse: Boolean,
|
|
48
|
+
showTitle: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !0
|
|
51
|
+
},
|
|
52
|
+
notDispatch: Boolean
|
|
53
|
+
},
|
|
54
|
+
setup(u, { expose: C, slots: w }) {
|
|
55
|
+
let T = l(t, null), E = h(!0), D = g(() => u.enabled), O = g(() => u.disabled), k = a(() => u.enabled === !0 ? !1 : u.disabled === !0), A = () => E.value = !E.value, j = m({
|
|
56
|
+
disabled: O,
|
|
57
|
+
enabled: D,
|
|
58
|
+
isDisabled: k,
|
|
59
|
+
size: g(() => u.size)
|
|
60
|
+
});
|
|
61
|
+
return v(() => {
|
|
62
|
+
E.value = !u.collapse;
|
|
63
|
+
}), p(e, j), f(() => {
|
|
64
|
+
if (!u.notDispatch) {
|
|
65
|
+
var e;
|
|
66
|
+
T == null || (e = T.addGroup) == null || e.call(T, this);
|
|
67
|
+
}
|
|
68
|
+
}), d(() => {
|
|
69
|
+
if (!u.notDispatch) {
|
|
70
|
+
var e;
|
|
71
|
+
T == null || (e = T.removeGroup) == null || e.call(T, this);
|
|
72
|
+
}
|
|
73
|
+
}), C(j), () => {
|
|
74
|
+
let e = () => {
|
|
75
|
+
var e;
|
|
76
|
+
return s(i, null, [y(s("div", {
|
|
77
|
+
class: "form-item-group-title",
|
|
78
|
+
onClick: A
|
|
79
|
+
}, [s("span", {
|
|
80
|
+
class: "flex-item",
|
|
81
|
+
style: "flex: 1"
|
|
82
|
+
}, [
|
|
83
|
+
w.title ? w.title() : u.blockTitle,
|
|
84
|
+
w.tips || u.tips ? s("span", { style: "color: #ff0000; font-size: 14px" }, [
|
|
85
|
+
o("("),
|
|
86
|
+
w.tips ? w.tips() : u.tips,
|
|
87
|
+
o(")")
|
|
88
|
+
]) : null,
|
|
89
|
+
(e = w["title-right"]) == null ? void 0 : e.call(w)
|
|
90
|
+
]), s("i", { class: E.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[_, u.showTitle]]), s(x, null, { default: () => {
|
|
91
|
+
let e;
|
|
92
|
+
return w.default ? u.wrapRow ? y(s(r, { gutter: u.gutter }, S(e = w.default()) ? e : { default: () => [e] }), [[_, E.value]]) : y(s("div", null, [w.default()]), [[_, E.value]]) : y(s(n, {
|
|
93
|
+
"font-size": "14px",
|
|
94
|
+
"empty-tips": "暂无信息"
|
|
95
|
+
}, null), [[_, E.value]]);
|
|
96
|
+
} })]);
|
|
97
|
+
}, t = { class: ["form-item-group", {
|
|
98
|
+
"default-active": u.active,
|
|
99
|
+
"is-disabled": k.value
|
|
100
|
+
}] };
|
|
101
|
+
return u.tag !== "div" && (t.span = u.block ? 24 : u.span), c(u.tag === "div" ? "div" : b, t, e);
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
//#endregion
|
|
106
|
+
export { C as t };
|