@web-utils/form-ui 1.0.0-beta32 → 1.0.0-beta34
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/chunks/{Cby3mvvZ.mjs → 6whKG2aW.mjs} +4 -2
- package/chunks/B0QAMGEk.mjs +149 -0
- package/chunks/{C4bM8miy.mjs → BINk6iM9.mjs} +4 -3
- package/chunks/{Cc3EJjbV.mjs → BMybeJeX.mjs} +2 -2
- package/chunks/{BgDYHgyH.mjs → BOnjsuaF.mjs} +4 -1
- package/chunks/BQvDsDYm.mjs +199 -0
- package/chunks/BRCCvDXx.mjs +339 -0
- package/chunks/BX-cVxlK.mjs +102 -0
- package/chunks/{B99alfW4.mjs → BnDWAjBA.mjs} +2 -2
- package/chunks/BrhuWxfn.mjs +168 -0
- package/chunks/{bnRb5PUB.mjs → Bsff-xFB.mjs} +7 -5
- package/chunks/{Cy-4nmyC.mjs → Bx4hMd0g.mjs} +6 -4
- package/chunks/{BmZieBZW.mjs → ByS9PiXt.mjs} +4 -2
- package/chunks/{C9J3j0PX.mjs → C5jtjhYS.mjs} +2 -0
- package/chunks/CK4RBjb4.mjs +660 -0
- package/chunks/{CsfgUCe9.mjs → CMMPk7_3.mjs} +1 -1
- package/chunks/{C44-CFi-.mjs → CO4Fyzj-.mjs} +13 -4
- package/chunks/{Cgl-hCE5.mjs → COdSAAp_.mjs} +2 -2
- package/chunks/CRf0wnBc.mjs +181 -0
- package/chunks/{Ci1XxmdE.mjs → CYgTbmSw.mjs} +5 -3
- package/chunks/{4ZuVpQf6.mjs → CnAEuI_c.mjs} +1 -1
- package/chunks/DPO-hveW.mjs +233 -0
- package/chunks/{C3a15Ful.mjs → DSJFPBdn.mjs} +4 -2
- package/chunks/{D1EOkWJ7.mjs → DfMmYJVy.mjs} +2 -2
- package/chunks/{Dt6gY213.mjs → Dlemc_K8.mjs} +8 -5
- package/chunks/{DazglPJZ.mjs → DukJJ_BZ.mjs} +3 -1
- package/chunks/KZeDzvm6.mjs +115 -0
- package/chunks/{CugRu2Ka.mjs → PRSE4n97.mjs} +5 -3
- package/chunks/{D1G2MMMx.mjs → b5HOxD60.mjs} +13 -4
- package/chunks/{BV_P9a8o.mjs → bTej_00x.mjs} +4 -2
- package/chunks/{JhyiXnbd.mjs → ierlNKc4.mjs} +10 -4
- package/editable-tree/index.d.ts +254 -0
- package/editable-tree/index.mjs +2 -0
- package/editable-tree/style.css +1 -0
- package/element-dialog/index.d.ts +6 -6
- package/element-dialog/index.mjs +1 -1
- package/form-cascader/index.d.ts +5 -5
- package/form-cascader/index.mjs +1 -1
- package/form-check-box-group/index.d.ts +78 -7
- package/form-check-box-group/index.mjs +1 -1
- package/form-check-box-group/style.css +1 -0
- package/form-checkbox/index.d.ts +4 -2
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +63 -11
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +3 -3
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.d.ts +3 -3
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +3 -3
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +5 -3
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +3 -3
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-group/index.d.ts +0 -2
- package/form-item-group/index.mjs +1 -1
- package/form-item-group/style.css +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-item-x/style.css +1 -1
- package/form-radio-group/index.d.ts +91 -4
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +82 -10
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +2 -2
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +4 -4
- package/form-switch/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/helper/dictionary.mjs +7 -7
- package/iframe-window/index.mjs +1 -1
- package/index.d.ts +2 -1
- package/index.mjs +47 -46
- package/month-calendar/index.d.ts +1 -1
- package/package.json +1 -1
- package/pageable-table/index.d.ts +4 -4
- package/pageable-table/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/table-column/index.d.ts +4 -4
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.d.ts +340 -1
- package/table-view/index.mjs +458 -6
- package/table-view/style.css +1 -0
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.d.ts +136 -24
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +6 -1
- package/year-calendar/index.mjs +1 -1
- package/chunks/BQ77eAb3.mjs +0 -71
- package/chunks/Br4i8stg.mjs +0 -222
- package/chunks/DO8dVGef.mjs +0 -98
- package/chunks/DtAYXPvz.mjs +0 -108
- package/chunks/S64sNmuR.mjs +0 -226
- package/chunks/dM-icPM8.mjs +0 -107
- package/chunks/pxFLMMUm.mjs +0 -110
- package/chunks/q1SlJP1y.mjs +0 -171
- /package/chunks/{CkFapoKt.mjs → B1MSrc6f.mjs} +0 -0
- /package/chunks/{BV_N8p9t.mjs → DiE4GJtU.mjs} +0 -0
package/chunks/S64sNmuR.mjs
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import { i as e, n as t } from "./Br4i8stg.mjs";
|
|
2
|
-
import { n } from "./CsfgUCe9.mjs";
|
|
3
|
-
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
|
-
import { ElOption as o, ElSelect as s } from "element-plus/es";
|
|
5
|
-
//#region src/components/form/props/select.ts
|
|
6
|
-
var c = {
|
|
7
|
-
...n,
|
|
8
|
-
modelValue: [
|
|
9
|
-
String,
|
|
10
|
-
Number,
|
|
11
|
-
Boolean,
|
|
12
|
-
Object,
|
|
13
|
-
Array
|
|
14
|
-
],
|
|
15
|
-
multiple: {
|
|
16
|
-
type: Boolean,
|
|
17
|
-
default: !1
|
|
18
|
-
},
|
|
19
|
-
options: Array,
|
|
20
|
-
props: Object,
|
|
21
|
-
valueKey: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: "value"
|
|
24
|
-
},
|
|
25
|
-
size: String,
|
|
26
|
-
clearable: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !0
|
|
29
|
-
},
|
|
30
|
-
collapseTags: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !1
|
|
33
|
-
},
|
|
34
|
-
collapseTagsTooltip: {
|
|
35
|
-
type: Boolean,
|
|
36
|
-
default: !1
|
|
37
|
-
},
|
|
38
|
-
tagTooltip: {
|
|
39
|
-
type: Object,
|
|
40
|
-
default: () => ({})
|
|
41
|
-
},
|
|
42
|
-
multipleLimit: {
|
|
43
|
-
type: Number,
|
|
44
|
-
default: 0
|
|
45
|
-
},
|
|
46
|
-
id: String,
|
|
47
|
-
name: String,
|
|
48
|
-
effect: {
|
|
49
|
-
type: String,
|
|
50
|
-
default: "light"
|
|
51
|
-
},
|
|
52
|
-
autocomplete: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: "off"
|
|
55
|
-
},
|
|
56
|
-
placeholder: String,
|
|
57
|
-
filterable: {
|
|
58
|
-
type: Boolean,
|
|
59
|
-
default: !1
|
|
60
|
-
},
|
|
61
|
-
allowCreate: {
|
|
62
|
-
type: Boolean,
|
|
63
|
-
default: !1
|
|
64
|
-
},
|
|
65
|
-
filterMethod: Function,
|
|
66
|
-
remote: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: !1
|
|
69
|
-
},
|
|
70
|
-
debounce: {
|
|
71
|
-
type: Number,
|
|
72
|
-
default: 300
|
|
73
|
-
},
|
|
74
|
-
remoteMethod: Function,
|
|
75
|
-
remoteShowSuffix: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: !1
|
|
78
|
-
},
|
|
79
|
-
loading: {
|
|
80
|
-
type: Boolean,
|
|
81
|
-
default: !1
|
|
82
|
-
},
|
|
83
|
-
loadingText: String,
|
|
84
|
-
noMatchText: String,
|
|
85
|
-
noDataText: String,
|
|
86
|
-
popperClass: {
|
|
87
|
-
type: String,
|
|
88
|
-
default: ""
|
|
89
|
-
},
|
|
90
|
-
popperStyle: [String, Object],
|
|
91
|
-
reserveKeyword: {
|
|
92
|
-
type: Boolean,
|
|
93
|
-
default: !0
|
|
94
|
-
},
|
|
95
|
-
defaultFirstOption: {
|
|
96
|
-
type: Boolean,
|
|
97
|
-
default: !1
|
|
98
|
-
},
|
|
99
|
-
teleported: {
|
|
100
|
-
type: Boolean,
|
|
101
|
-
default: !0
|
|
102
|
-
},
|
|
103
|
-
appendTo: [String, Object],
|
|
104
|
-
persistent: {
|
|
105
|
-
type: Boolean,
|
|
106
|
-
default: !0
|
|
107
|
-
},
|
|
108
|
-
automaticDropdown: {
|
|
109
|
-
type: Boolean,
|
|
110
|
-
default: !1
|
|
111
|
-
},
|
|
112
|
-
clearIcon: [String, Object],
|
|
113
|
-
fitInputWidth: {
|
|
114
|
-
type: Boolean,
|
|
115
|
-
default: !1
|
|
116
|
-
},
|
|
117
|
-
suffixIcon: [String, Object],
|
|
118
|
-
tagType: {
|
|
119
|
-
type: String,
|
|
120
|
-
default: "info"
|
|
121
|
-
},
|
|
122
|
-
tagEffect: {
|
|
123
|
-
type: String,
|
|
124
|
-
default: "light"
|
|
125
|
-
},
|
|
126
|
-
validateEvent: {
|
|
127
|
-
type: Boolean,
|
|
128
|
-
default: !0
|
|
129
|
-
},
|
|
130
|
-
offset: {
|
|
131
|
-
type: Number,
|
|
132
|
-
default: 12
|
|
133
|
-
},
|
|
134
|
-
showArrow: {
|
|
135
|
-
type: Boolean,
|
|
136
|
-
default: !0
|
|
137
|
-
},
|
|
138
|
-
placement: {
|
|
139
|
-
type: String,
|
|
140
|
-
default: "bottom-start"
|
|
141
|
-
},
|
|
142
|
-
fallbackPlacements: {
|
|
143
|
-
type: Array,
|
|
144
|
-
default: () => [
|
|
145
|
-
"bottom-start",
|
|
146
|
-
"top-start",
|
|
147
|
-
"right",
|
|
148
|
-
"left"
|
|
149
|
-
]
|
|
150
|
-
},
|
|
151
|
-
maxCollapseTags: {
|
|
152
|
-
type: Number,
|
|
153
|
-
default: 1
|
|
154
|
-
},
|
|
155
|
-
popperOptions: {
|
|
156
|
-
type: Object,
|
|
157
|
-
default: () => ({})
|
|
158
|
-
},
|
|
159
|
-
ariaLabel: String,
|
|
160
|
-
emptyValues: Array,
|
|
161
|
-
valueOnClear: [
|
|
162
|
-
String,
|
|
163
|
-
Number,
|
|
164
|
-
Boolean,
|
|
165
|
-
Function
|
|
166
|
-
],
|
|
167
|
-
suffixTransition: {
|
|
168
|
-
type: Boolean,
|
|
169
|
-
default: !0
|
|
170
|
-
},
|
|
171
|
-
tabindex: [String, Number]
|
|
172
|
-
}, l = {
|
|
173
|
-
modelValue: !0,
|
|
174
|
-
emptyValues: !0,
|
|
175
|
-
valueOnClear: !0
|
|
176
|
-
}, u = [
|
|
177
|
-
"change",
|
|
178
|
-
"visible-change",
|
|
179
|
-
"remove-tag",
|
|
180
|
-
"clear",
|
|
181
|
-
"blur",
|
|
182
|
-
"focus",
|
|
183
|
-
"popup-scroll"
|
|
184
|
-
], d = (e) => n[e] === void 0 && l[e] !== !0, f = {
|
|
185
|
-
name: "FormSelect",
|
|
186
|
-
inheritAttrs: !1,
|
|
187
|
-
props: { ...c },
|
|
188
|
-
emits: {
|
|
189
|
-
...t,
|
|
190
|
-
change: null,
|
|
191
|
-
"visible-change": null,
|
|
192
|
-
"remove-tag": null,
|
|
193
|
-
clear: null,
|
|
194
|
-
blur: null,
|
|
195
|
-
focus: null,
|
|
196
|
-
"popup-scroll": null
|
|
197
|
-
},
|
|
198
|
-
setup(t, { emit: n, slots: c, attrs: l }) {
|
|
199
|
-
let f = a(t, "modelValue"), { render: p, placeholder: m, disabled: h, autoBind: g } = e(t, {
|
|
200
|
-
emit: n,
|
|
201
|
-
slots: c,
|
|
202
|
-
attrs: l,
|
|
203
|
-
events: u,
|
|
204
|
-
predicate: d,
|
|
205
|
-
messagePrefix: "请选择"
|
|
206
|
-
});
|
|
207
|
-
return () => p({ vNodes: r(s, i(g.value, {
|
|
208
|
-
modelValue: f.value,
|
|
209
|
-
"onUpdate:modelValue": (e) => f.value = e,
|
|
210
|
-
disabled: h.value,
|
|
211
|
-
placeholder: m.value
|
|
212
|
-
}), {
|
|
213
|
-
...c,
|
|
214
|
-
default: c.default || (() => {
|
|
215
|
-
var e;
|
|
216
|
-
return (e = t.options) == null ? void 0 : e.map(({ value: e, label: t }) => r(o, {
|
|
217
|
-
key: e,
|
|
218
|
-
label: t,
|
|
219
|
-
value: e
|
|
220
|
-
}, null));
|
|
221
|
-
})
|
|
222
|
-
}) });
|
|
223
|
-
}
|
|
224
|
-
};
|
|
225
|
-
//#endregion
|
|
226
|
-
export { f as t };
|
package/chunks/dM-icPM8.mjs
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
import { hasAuthority as e } from "../api/index.mjs";
|
|
2
|
-
import { toolbarContextKey as t } from "../constants/index.mjs";
|
|
3
|
-
import { isArray as n, isFunction as r } from "@web-utils/core";
|
|
4
|
-
import { computed as i, createVNode as a, defineComponent as o, getCurrentInstance as s, inject as c, ref as l } from "vue";
|
|
5
|
-
import { ElMessage as u, ElMessageBox as d } from "element-plus";
|
|
6
|
-
import { ElButton as f } from "element-plus/es";
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/components/toolbar/ToolbarButton.vue
|
|
9
|
-
var p = /* @__PURE__ */ o({
|
|
10
|
-
name: "ToolbarButton",
|
|
11
|
-
inheritAttrs: !1,
|
|
12
|
-
props: {
|
|
13
|
-
label: String,
|
|
14
|
-
icon: String,
|
|
15
|
-
type: String,
|
|
16
|
-
size: { type: String },
|
|
17
|
-
loadable: Boolean,
|
|
18
|
-
disabled: Boolean,
|
|
19
|
-
footer: Boolean,
|
|
20
|
-
circle: Boolean,
|
|
21
|
-
plain: Boolean,
|
|
22
|
-
round: Boolean,
|
|
23
|
-
primary: Boolean,
|
|
24
|
-
warning: Boolean,
|
|
25
|
-
nativeType: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: "button"
|
|
28
|
-
},
|
|
29
|
-
privilege: String,
|
|
30
|
-
condition: { type: [
|
|
31
|
-
Array,
|
|
32
|
-
Function,
|
|
33
|
-
Boolean
|
|
34
|
-
] },
|
|
35
|
-
conditionTips: String,
|
|
36
|
-
confirm: Boolean,
|
|
37
|
-
confirmTips: String,
|
|
38
|
-
beforeExecute: Function,
|
|
39
|
-
afterExecute: Function,
|
|
40
|
-
route: [String, Object],
|
|
41
|
-
title: String,
|
|
42
|
-
cancelButtonText: String,
|
|
43
|
-
confirmButtonText: String
|
|
44
|
-
},
|
|
45
|
-
setup(o, { attrs: p, slots: m }) {
|
|
46
|
-
let h = s(), g = c(t, null), _ = l(!1), v = i(() => o.privilege ? e(o.privilege) : !0), y = async (e) => {
|
|
47
|
-
try {
|
|
48
|
-
if (r(o.beforeExecute) && await o.beforeExecute() === !1) return;
|
|
49
|
-
if (o.conditionTips) {
|
|
50
|
-
let e;
|
|
51
|
-
if (e = n(o.condition) ? o.condition.length <= 0 : r(o.condition) ? !o.condition() : !o.condition, e) {
|
|
52
|
-
u.warning(o.conditionTips);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
if (o.confirm || o.confirmTips) try {
|
|
57
|
-
await d.confirm(o.confirmTips || "你确定要删除该记录吗?", "系统提示", {
|
|
58
|
-
type: "warning",
|
|
59
|
-
distinguishCancelAndClose: !0,
|
|
60
|
-
cancelButtonText: o.cancelButtonText,
|
|
61
|
-
confirmButtonText: o.confirmButtonText
|
|
62
|
-
});
|
|
63
|
-
} catch (e) {
|
|
64
|
-
if (e === "cancel") {
|
|
65
|
-
let { onCancel: t } = p;
|
|
66
|
-
r(t) && await t(e);
|
|
67
|
-
} else if (e === "close") {
|
|
68
|
-
let { onClose: t } = p;
|
|
69
|
-
r(t) && await t(e);
|
|
70
|
-
}
|
|
71
|
-
return;
|
|
72
|
-
}
|
|
73
|
-
_.value = !0;
|
|
74
|
-
let i;
|
|
75
|
-
if (o.route) {
|
|
76
|
-
var t;
|
|
77
|
-
await ((t = h.proxy.$router) == null ? void 0 : t.push(o.route));
|
|
78
|
-
} else {
|
|
79
|
-
let { onClick: t } = p;
|
|
80
|
-
if (r(t)) try {
|
|
81
|
-
i = await t(e);
|
|
82
|
-
} catch {}
|
|
83
|
-
}
|
|
84
|
-
_.value = !1, r(o.afterExecute) && await o.afterExecute(i);
|
|
85
|
-
} catch {}
|
|
86
|
-
};
|
|
87
|
-
return () => v.value ? a(f, {
|
|
88
|
-
title: o.footer || g != null && g.footer ? null : o.title,
|
|
89
|
-
disabled: o.disabled || _.value,
|
|
90
|
-
plain: o.plain,
|
|
91
|
-
size: o.size,
|
|
92
|
-
nativeType: o.nativeType,
|
|
93
|
-
circle: o.circle,
|
|
94
|
-
loading: o.loadable ? _.value : !1,
|
|
95
|
-
type: o.primary ? "primary" : o.warning ? "warning" : o.type,
|
|
96
|
-
round: o.round,
|
|
97
|
-
class: p.class,
|
|
98
|
-
style: p.style,
|
|
99
|
-
onClick: y
|
|
100
|
-
}, {
|
|
101
|
-
default: !o.circle && (o.label || m.default) ? () => m.default ? m.default() : o.label : null,
|
|
102
|
-
icon: o.icon ? () => a("i", { class: o.icon }, null) : null
|
|
103
|
-
}) : null;
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
//#endregion
|
|
107
|
-
export { p as t };
|
package/chunks/pxFLMMUm.mjs
DELETED
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import e from "../empty-view/index.mjs";
|
|
2
|
-
import { formItemGroupContextKey as t, formViewContextKey as n } from "../constants/index.mjs";
|
|
3
|
-
import { Fragment as r, computed as i, createTextVNode as a, createVNode as o, h as s, inject as c, isVNode as l, onBeforeUnmount as u, onMounted as d, provide as f, reactive as p, ref as m, toRef as h, useTemplateRef as g, vShow as _, watchEffect as v, withDirectives as y } from "vue";
|
|
4
|
-
import { ElCol as b, ElCollapseTransition as x } from "element-plus";
|
|
5
|
-
import { ElRow as S } from "element-plus/es";
|
|
6
|
-
//#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
|
|
7
|
-
function C(e) {
|
|
8
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
|
|
9
|
-
}
|
|
10
|
-
//#endregion
|
|
11
|
-
//#region src/components/form/FormItemGroup.vue
|
|
12
|
-
var w = {
|
|
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(l, { expose: w, slots: T }) {
|
|
55
|
-
let E = c(n, null), D = g("root"), O = m(!0), k = h(() => l.enabled), A = h(() => l.disabled), j = i(() => l.enabled === !0 ? !1 : l.disabled === !0), M = i(() => l.tag === "ElCol"), N = () => O.value = !O.value, P = p({
|
|
56
|
-
el: i(() => M.value ? D.value.$el : D.value),
|
|
57
|
-
disabled: A,
|
|
58
|
-
enabled: k,
|
|
59
|
-
isDisabled: j,
|
|
60
|
-
size: h(() => l.size)
|
|
61
|
-
});
|
|
62
|
-
return v(() => {
|
|
63
|
-
O.value = !l.collapse;
|
|
64
|
-
}), f(t, P), d(() => {
|
|
65
|
-
if (!l.notDispatch) {
|
|
66
|
-
var e;
|
|
67
|
-
E == null || (e = E.addGroup) == null || e.call(E, this);
|
|
68
|
-
}
|
|
69
|
-
}), u(() => {
|
|
70
|
-
if (!l.notDispatch) {
|
|
71
|
-
var e;
|
|
72
|
-
E == null || (e = E.removeGroup) == null || e.call(E, this);
|
|
73
|
-
}
|
|
74
|
-
}), w(P), () => {
|
|
75
|
-
let t = () => {
|
|
76
|
-
var t;
|
|
77
|
-
return o(r, null, [y(o("div", {
|
|
78
|
-
class: "form-item-group-title",
|
|
79
|
-
onClick: N
|
|
80
|
-
}, [o("span", {
|
|
81
|
-
class: "flex-item",
|
|
82
|
-
style: "flex: 1"
|
|
83
|
-
}, [
|
|
84
|
-
T.title ? T.title() : l.blockTitle,
|
|
85
|
-
T.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
|
|
86
|
-
a("("),
|
|
87
|
-
T.tips ? T.tips() : l.tips,
|
|
88
|
-
a(")")
|
|
89
|
-
]) : null,
|
|
90
|
-
(t = T["title-right"]) == null ? void 0 : t.call(T)
|
|
91
|
-
]), o("i", { class: O.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[_, l.showTitle]]), o(x, null, { default: () => {
|
|
92
|
-
let t;
|
|
93
|
-
return T.default ? l.wrapRow ? y(o(S, { gutter: l.gutter }, C(t = T.default()) ? t : { default: () => [t] }), [[_, O.value]]) : y(o("div", null, [T.default()]), [[_, O.value]]) : y(o(e, {
|
|
94
|
-
"font-size": "14px",
|
|
95
|
-
"empty-tips": "暂无信息"
|
|
96
|
-
}, null), [[_, O.value]]);
|
|
97
|
-
} })]);
|
|
98
|
-
}, n = {
|
|
99
|
-
ref: "root",
|
|
100
|
-
class: ["form-item-group", {
|
|
101
|
-
"default-active": l.active,
|
|
102
|
-
"is-disabled": j.value
|
|
103
|
-
}]
|
|
104
|
-
};
|
|
105
|
-
return M.value && (n.span = l.block ? 24 : l.span), s(M.value ? b : "div", n, M.value ? t : t());
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
//#endregion
|
|
110
|
-
export { w as t };
|
package/chunks/q1SlJP1y.mjs
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { i as e, n as t } from "./Br4i8stg.mjs";
|
|
2
|
-
import { n } from "./CsfgUCe9.mjs";
|
|
3
|
-
import { computed as r, createVNode as i, mergeProps as a } from "vue";
|
|
4
|
-
import { ElDatePicker as o } from "element-plus/es";
|
|
5
|
-
//#region src/components/form/props/date.ts
|
|
6
|
-
var s = {
|
|
7
|
-
...n,
|
|
8
|
-
modelValue: [
|
|
9
|
-
Number,
|
|
10
|
-
String,
|
|
11
|
-
Date,
|
|
12
|
-
Array
|
|
13
|
-
],
|
|
14
|
-
readonly: {
|
|
15
|
-
type: Boolean,
|
|
16
|
-
default: !1
|
|
17
|
-
},
|
|
18
|
-
size: String,
|
|
19
|
-
editable: {
|
|
20
|
-
type: Boolean,
|
|
21
|
-
default: !0
|
|
22
|
-
},
|
|
23
|
-
clearable: {
|
|
24
|
-
type: Boolean,
|
|
25
|
-
default: !0
|
|
26
|
-
},
|
|
27
|
-
placeholder: {
|
|
28
|
-
type: String,
|
|
29
|
-
default: ""
|
|
30
|
-
},
|
|
31
|
-
startPlaceholder: String,
|
|
32
|
-
endPlaceholder: String,
|
|
33
|
-
type: {
|
|
34
|
-
type: String,
|
|
35
|
-
default: "date"
|
|
36
|
-
},
|
|
37
|
-
format: {
|
|
38
|
-
type: String,
|
|
39
|
-
default: "YYYY-MM-DD"
|
|
40
|
-
},
|
|
41
|
-
popperClass: String,
|
|
42
|
-
popperStyle: [String, Object],
|
|
43
|
-
popperOptions: {
|
|
44
|
-
type: Object,
|
|
45
|
-
default: () => ({})
|
|
46
|
-
},
|
|
47
|
-
rangeSeparator: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: "-"
|
|
50
|
-
},
|
|
51
|
-
defaultValue: Object,
|
|
52
|
-
defaultTime: Object,
|
|
53
|
-
valueFormat: String,
|
|
54
|
-
id: [String, Array],
|
|
55
|
-
name: {
|
|
56
|
-
type: [String, Array],
|
|
57
|
-
default: ""
|
|
58
|
-
},
|
|
59
|
-
unlinkPanels: {
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: !1
|
|
62
|
-
},
|
|
63
|
-
prefixIcon: [String, Object],
|
|
64
|
-
clearIcon: [String, Object],
|
|
65
|
-
validateEvent: {
|
|
66
|
-
type: Boolean,
|
|
67
|
-
default: !0
|
|
68
|
-
},
|
|
69
|
-
disabledDate: Function,
|
|
70
|
-
shortcuts: {
|
|
71
|
-
type: Array,
|
|
72
|
-
default: () => []
|
|
73
|
-
},
|
|
74
|
-
cellClassName: Function,
|
|
75
|
-
teleported: {
|
|
76
|
-
type: Boolean,
|
|
77
|
-
default: !0
|
|
78
|
-
},
|
|
79
|
-
emptyValues: Array,
|
|
80
|
-
valueOnClear: [
|
|
81
|
-
String,
|
|
82
|
-
Number,
|
|
83
|
-
Boolean,
|
|
84
|
-
Function
|
|
85
|
-
],
|
|
86
|
-
fallbackPlacements: {
|
|
87
|
-
type: Array,
|
|
88
|
-
default: () => [
|
|
89
|
-
"bottom",
|
|
90
|
-
"top",
|
|
91
|
-
"right",
|
|
92
|
-
"left"
|
|
93
|
-
]
|
|
94
|
-
},
|
|
95
|
-
placement: {
|
|
96
|
-
type: String,
|
|
97
|
-
default: "bottom"
|
|
98
|
-
},
|
|
99
|
-
showFooter: {
|
|
100
|
-
type: Boolean,
|
|
101
|
-
default: !0
|
|
102
|
-
},
|
|
103
|
-
showConfirm: {
|
|
104
|
-
type: Boolean,
|
|
105
|
-
default: !0
|
|
106
|
-
},
|
|
107
|
-
showWeekNumber: {
|
|
108
|
-
type: Boolean,
|
|
109
|
-
default: !1
|
|
110
|
-
},
|
|
111
|
-
automaticDropdown: {
|
|
112
|
-
type: Boolean,
|
|
113
|
-
default: !0
|
|
114
|
-
},
|
|
115
|
-
split: Boolean,
|
|
116
|
-
startDate: String,
|
|
117
|
-
endDate: String
|
|
118
|
-
}, c = {
|
|
119
|
-
modelValue: !0,
|
|
120
|
-
name: !0,
|
|
121
|
-
emptyValues: !0,
|
|
122
|
-
valueOnClear: !0
|
|
123
|
-
}, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
|
|
124
|
-
name: "FormDatePicker",
|
|
125
|
-
inheritAttrs: !1,
|
|
126
|
-
props: { ...s },
|
|
127
|
-
emits: {
|
|
128
|
-
...t,
|
|
129
|
-
"update:startDate": null,
|
|
130
|
-
"update:endDate": null
|
|
131
|
-
},
|
|
132
|
-
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
133
|
-
let { emitInput: d, render: f, placeholder: p, disabled: m, autoBind: h } = e(t, {
|
|
134
|
-
emit: n,
|
|
135
|
-
slots: s,
|
|
136
|
-
attrs: c,
|
|
137
|
-
events: l,
|
|
138
|
-
predicate: u,
|
|
139
|
-
messagePrefix: "请选择"
|
|
140
|
-
}), g = r(() => {
|
|
141
|
-
switch (t.type) {
|
|
142
|
-
case "date":
|
|
143
|
-
case "daterange": return "YYYY-MM-DD";
|
|
144
|
-
case "datetime":
|
|
145
|
-
case "datetimerange": return "YYYY-MM-DD HH:mm:ss";
|
|
146
|
-
default: return "";
|
|
147
|
-
}
|
|
148
|
-
}), _ = r(() => t.split && t.type.indexOf("range") > -1), v = (e, t) => {
|
|
149
|
-
n("update:startDate", e), n("update:endDate", t);
|
|
150
|
-
}, y = (e) => {
|
|
151
|
-
_.value ? e ? v(e[0], e[1]) : v(null, null) : d(e);
|
|
152
|
-
}, b = r(() => _.value ? [t.startDate, t.endDate] : t.modelValue);
|
|
153
|
-
return () => f({ vNodes: i(o, a({ style: "width: 100%" }, h.value, {
|
|
154
|
-
modelValue: b.value,
|
|
155
|
-
disabled: m.value,
|
|
156
|
-
placeholder: p.value,
|
|
157
|
-
format: g.value,
|
|
158
|
-
"value-format": g.value,
|
|
159
|
-
"onUpdate:modelValue": y
|
|
160
|
-
}), {
|
|
161
|
-
default: s.default,
|
|
162
|
-
"range-separator": s["range-separator"],
|
|
163
|
-
"pre-month": s["pre-month"],
|
|
164
|
-
"next-month": s["next-month"],
|
|
165
|
-
"pre-year": s["pre-year"],
|
|
166
|
-
"next-year": s["next-year"]
|
|
167
|
-
}) });
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
//#endregion
|
|
171
|
-
export { d as t };
|
|
File without changes
|
|
File without changes
|