@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
|
@@ -1,13 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as e, u as t } from "./BX-cVxlK.mjs";
|
|
2
2
|
import { getDictLabel as n } from "../helper/dictionary.mjs";
|
|
3
3
|
import { pageableTableContextKey as r } from "../constants/index.mjs";
|
|
4
4
|
import i from "../resize-observer/index.mjs";
|
|
5
|
-
import { t as a } from "./
|
|
5
|
+
import { t as a } from "./bTej_00x.mjs";
|
|
6
6
|
import { useVisibilityChange as o } from "../hook/useVisibilityChange.mjs";
|
|
7
7
|
import { hasOwn as s } from "@web-utils/core";
|
|
8
8
|
import { Fragment as c, computed as l, createBlock as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, mergeModels as h, mergeProps as g, nextTick as ee, onBeforeUpdate as _, onUpdated as te, openBlock as v, provide as y, reactive as b, ref as x, toDisplayString as S, useModel as C, watch as w, withCtx as T } from "vue";
|
|
9
9
|
import { ElMessage as ne } from "element-plus";
|
|
10
10
|
import { ElButton as re, ElCheckbox as E, ElDrawer as D, ElEmpty as O, ElPagination as k, ElRadio as A, ElTable as j, ElTableColumn as M } from "element-plus/es";
|
|
11
|
+
import "element-plus/es/components/base/style/css";
|
|
12
|
+
import "element-plus/es/components/button/style/css";
|
|
13
|
+
import "element-plus/es/components/checkbox/style/css";
|
|
14
|
+
import "element-plus/es/components/radio/style/css";
|
|
15
|
+
import "element-plus/es/components/drawer/style/css";
|
|
16
|
+
import "element-plus/es/components/table/style/css";
|
|
17
|
+
import "element-plus/es/components/table-column/style/css";
|
|
18
|
+
import "element-plus/es/components/pagination/style/css";
|
|
19
|
+
import "element-plus/es/components/empty/style/css";
|
|
11
20
|
import { useEventBus as ie } from "@web-utils/vue/hooks/useEventBus";
|
|
12
21
|
//#region src/components/table/components/TableColumnFilter.vue
|
|
13
22
|
var ae = {
|
|
@@ -381,7 +390,7 @@ var I = {
|
|
|
381
390
|
L.value = t, R.value = e;
|
|
382
391
|
}, le = () => {
|
|
383
392
|
me(L.value, R.value);
|
|
384
|
-
}, ue = (
|
|
393
|
+
}, ue = (t) => e(F(t)), de = ({ prop: e, order: t }) => {
|
|
385
394
|
a.payloadStyle === "body" ? (P.value.ascs = t === "ascending" ? [e] : a.ascs, P.value.descs = t === "descending" ? [e] : a.descs) : (P.value.ascs = t === "ascending" ? e : "", P.value.descs = t === "descending" ? e : "");
|
|
386
395
|
}, fe = (e) => {
|
|
387
396
|
$(e) && (E.value = e);
|
|
@@ -498,7 +507,7 @@ var I = {
|
|
|
498
507
|
toggleRowSelection: Z,
|
|
499
508
|
toggleSettings: Q
|
|
500
509
|
});
|
|
501
|
-
let ge =
|
|
510
|
+
let ge = t(a, {
|
|
502
511
|
emit: u,
|
|
503
512
|
events: se,
|
|
504
513
|
predicate: ce
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { n as t, t as n } from "./
|
|
1
|
+
import { n as e } from "./DPO-hveW.mjs";
|
|
2
|
+
import { n as t, t as n } from "./BINk6iM9.mjs";
|
|
3
3
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormInputIdCard.vue?vue&type=script&lang.jsx
|
|
5
5
|
function s(e) {
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { i as e, n as t } from "./DPO-hveW.mjs";
|
|
2
|
+
import { n } from "./CMMPk7_3.mjs";
|
|
3
|
+
import { useDictionary as r } from "../hook/useDictionary.mjs";
|
|
4
|
+
import { t as i } from "./BINk6iM9.mjs";
|
|
5
|
+
import { computed as a, createVNode as o, defineComponent as s, isVNode as c, mergeProps as l, useModel as u } from "vue";
|
|
6
|
+
import { ElCheckbox as d, ElCheckboxButton as f, ElCheckboxGroup as p } from "element-plus/es";
|
|
7
|
+
import "element-plus/es/components/base/style/css";
|
|
8
|
+
import "element-plus/es/components/checkbox/style/css";
|
|
9
|
+
import "element-plus/es/components/checkbox-button/style/css";
|
|
10
|
+
import "element-plus/es/components/checkbox-group/style/css";
|
|
11
|
+
//#region src/components/form/props/checkbox-group.ts
|
|
12
|
+
var m = {
|
|
13
|
+
...n,
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: [Array, String],
|
|
16
|
+
default: () => []
|
|
17
|
+
},
|
|
18
|
+
size: String,
|
|
19
|
+
min: Number,
|
|
20
|
+
max: Number,
|
|
21
|
+
ariaLabel: String,
|
|
22
|
+
textColor: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: "#ffffff"
|
|
25
|
+
},
|
|
26
|
+
fill: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "#409eff"
|
|
29
|
+
},
|
|
30
|
+
tag: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "div"
|
|
33
|
+
},
|
|
34
|
+
validateEvent: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !0
|
|
37
|
+
},
|
|
38
|
+
options: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default: () => []
|
|
41
|
+
},
|
|
42
|
+
props: {
|
|
43
|
+
type: Object,
|
|
44
|
+
default: () => ({
|
|
45
|
+
value: "value",
|
|
46
|
+
label: "label",
|
|
47
|
+
disabled: "disabled"
|
|
48
|
+
})
|
|
49
|
+
},
|
|
50
|
+
type: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "checkbox"
|
|
53
|
+
},
|
|
54
|
+
stringMode: Boolean,
|
|
55
|
+
delimiter: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: ","
|
|
58
|
+
},
|
|
59
|
+
other: [String],
|
|
60
|
+
otherVal: [String],
|
|
61
|
+
otherProp: String,
|
|
62
|
+
otherPlaceholder: String,
|
|
63
|
+
otherLabel: String,
|
|
64
|
+
otherWidth: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: "200px"
|
|
67
|
+
},
|
|
68
|
+
otherMaxLength: String,
|
|
69
|
+
gender: Boolean,
|
|
70
|
+
confirm: Boolean,
|
|
71
|
+
labelProp: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: "name"
|
|
74
|
+
},
|
|
75
|
+
valueProp: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: "code"
|
|
78
|
+
},
|
|
79
|
+
split: Boolean,
|
|
80
|
+
sort: Boolean,
|
|
81
|
+
classic: Boolean,
|
|
82
|
+
fillRow: Boolean,
|
|
83
|
+
ellipsis: Boolean,
|
|
84
|
+
dictType: String
|
|
85
|
+
}, h = {
|
|
86
|
+
modelValue: !0,
|
|
87
|
+
type: !0,
|
|
88
|
+
options: !0
|
|
89
|
+
}, g = ["change"], _ = (e) => n[e] === void 0 && h[e] !== !0;
|
|
90
|
+
//#endregion
|
|
91
|
+
//#region src/components/form/FormCheckBoxGroup.vue?vue&type=script&lang.jsx
|
|
92
|
+
function v(e) {
|
|
93
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !c(e);
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/components/form/FormCheckBoxGroup.vue
|
|
97
|
+
var y = /* @__PURE__ */ s({
|
|
98
|
+
name: "FormCheckBoxGroup",
|
|
99
|
+
inheritAttrs: !1,
|
|
100
|
+
props: { ...m },
|
|
101
|
+
emits: {
|
|
102
|
+
...t,
|
|
103
|
+
"update:other": null,
|
|
104
|
+
change: null
|
|
105
|
+
},
|
|
106
|
+
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
107
|
+
let m = u(t, "other"), { emitInput: h, render: y, disabled: b, autoBind: x } = e(t, {
|
|
108
|
+
emit: n,
|
|
109
|
+
slots: s,
|
|
110
|
+
attrs: c,
|
|
111
|
+
events: g,
|
|
112
|
+
predicate: _,
|
|
113
|
+
messagePrefix: "请选择",
|
|
114
|
+
class: a(() => ["form-checkbox-group", {
|
|
115
|
+
"form-checkbox-group-row": t.fillRow,
|
|
116
|
+
"form-checkbox-group-row-break-word": t.fillRow,
|
|
117
|
+
"form-checkbox-group-row-ellipsis": t.ellipsis
|
|
118
|
+
}])
|
|
119
|
+
}), S = (e) => {
|
|
120
|
+
let n = e;
|
|
121
|
+
t.sort && (n = e.sort()), t.stringMode || t.split ? h(n.join(",")) : h(n);
|
|
122
|
+
}, C = a(() => {
|
|
123
|
+
if (t.stringMode || t.split) {
|
|
124
|
+
var e;
|
|
125
|
+
return Array.isArray(t.modelValue) ? t.modelValue.filter((e) => e) : ((e = t.modelValue) == null ? void 0 : e.split(t.delimiter).filter((e) => e)) ?? [];
|
|
126
|
+
}
|
|
127
|
+
return t.modelValue || [];
|
|
128
|
+
}), w = a(() => t.classic ? "label" : t.labelProp), T = a(() => t.classic ? "value" : t.valueProp), { dictItems: E } = r(t), D = a(() => t.dictType ? E.value : t.gender ? [{
|
|
129
|
+
[w.value]: "男",
|
|
130
|
+
[T.value]: "男"
|
|
131
|
+
}, {
|
|
132
|
+
[w.value]: "女",
|
|
133
|
+
[T.value]: "女"
|
|
134
|
+
}] : t.confirm ? [{
|
|
135
|
+
[w.value]: "是",
|
|
136
|
+
[T.value]: "是"
|
|
137
|
+
}, {
|
|
138
|
+
[w.value]: "否",
|
|
139
|
+
[T.value]: "否"
|
|
140
|
+
}] : t.options);
|
|
141
|
+
return () => y({ vNodes: [o(p, l(x.value, {
|
|
142
|
+
modelValue: C.value,
|
|
143
|
+
disabled: b.value,
|
|
144
|
+
"onUpdate:modelValue": S
|
|
145
|
+
}), {
|
|
146
|
+
...s,
|
|
147
|
+
default: s.default || (() => {
|
|
148
|
+
var e;
|
|
149
|
+
return (e = D.value) == null ? void 0 : e.map(({ value: e, label: n, disabled: r }) => t.type === "button" ? o(f, {
|
|
150
|
+
key: e,
|
|
151
|
+
value: e,
|
|
152
|
+
disabled: r
|
|
153
|
+
}, v(n) ? n : { default: () => [n] }) : o(d, {
|
|
154
|
+
key: e,
|
|
155
|
+
value: e,
|
|
156
|
+
disabled: r
|
|
157
|
+
}, v(n) ? n : { default: () => [n] }));
|
|
158
|
+
})
|
|
159
|
+
}), C.value.includes(t.otherVal) ? o(i, {
|
|
160
|
+
"wrap-col": !1,
|
|
161
|
+
class: "form-checkbox-group-other",
|
|
162
|
+
"hide-label": !0,
|
|
163
|
+
"label-width": "0",
|
|
164
|
+
prop: t.otherProp,
|
|
165
|
+
disabled: b.value,
|
|
166
|
+
required: !!t.otherProp,
|
|
167
|
+
placeholder: t.otherPlaceholder,
|
|
168
|
+
label: t.otherLabel,
|
|
169
|
+
"show-message": !!t.otherLabel,
|
|
170
|
+
style: t.otherLabel ? { width: t.otherWidth } : {
|
|
171
|
+
marginBottom: 0,
|
|
172
|
+
width: t.otherWidth
|
|
173
|
+
},
|
|
174
|
+
modelValue: m.value,
|
|
175
|
+
"onUpdate:modelValue": (e) => m.value = e,
|
|
176
|
+
"max-length": t.otherMaxLength
|
|
177
|
+
}, null) : null] });
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
//#endregion
|
|
181
|
+
export { y as t };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as t, r as n } from "./
|
|
3
|
-
import { n as r } from "./
|
|
1
|
+
import { u as e } from "./BX-cVxlK.mjs";
|
|
2
|
+
import { o as t, r as n } from "./DPO-hveW.mjs";
|
|
3
|
+
import { n as r } from "./CMMPk7_3.mjs";
|
|
4
4
|
import { createVNode as i, isVNode as a, mergeProps as o } from "vue";
|
|
5
5
|
import { ElImage as s } from "element-plus/es";
|
|
6
|
+
import "element-plus/es/components/base/style/css";
|
|
7
|
+
import "element-plus/es/components/image/style/css";
|
|
6
8
|
//#region src/components/form/props/image.ts
|
|
7
9
|
var c = {
|
|
8
10
|
...r,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./
|
|
1
|
+
import { t as e } from "./B1MSrc6f.mjs";
|
|
2
2
|
import { Fragment as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createStaticVNode as a, createVNode as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderList as u, toDisplayString as d, withModifiers as f } from "vue";
|
|
3
3
|
import p from "dayjs";
|
|
4
4
|
//#region src/components/material-year-calendar/MonthCalendar.vue
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { a as e } from "./BX-cVxlK.mjs";
|
|
2
|
+
import { formHolderContextKey as t, formItemConfigProviderContextKey as n, formItemGroupContextKey as r } from "../constants/index.mjs";
|
|
3
|
+
import { isArray as i, isPlainObject as a, isString as o } from "@web-utils/core";
|
|
4
|
+
import { computed as s, createVNode as c, h as l, inject as u, mergeProps as d, nextTick as f, unref as p, useTemplateRef as m } from "vue";
|
|
5
|
+
import { ElCol as h, rowContextKey as g } from "element-plus";
|
|
6
|
+
import { ElCol as _, ElFormItem as v, ElTooltip as y } from "element-plus/es";
|
|
7
|
+
import "element-plus/es/components/base/style/css";
|
|
8
|
+
import "element-plus/es/components/col/style/css";
|
|
9
|
+
import "element-plus/es/components/form-item/style/css";
|
|
10
|
+
import "element-plus/es/components/tooltip/style/css";
|
|
11
|
+
//#region src/components/form/props/form-item.ts
|
|
12
|
+
var b = {
|
|
13
|
+
prop: [String, Array],
|
|
14
|
+
label: String,
|
|
15
|
+
labelPosition: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
labelWidth: [String, Number],
|
|
20
|
+
required: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !1
|
|
23
|
+
},
|
|
24
|
+
rules: Object,
|
|
25
|
+
error: String,
|
|
26
|
+
showMessage: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !0
|
|
29
|
+
},
|
|
30
|
+
inlineMessage: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
size: String,
|
|
35
|
+
for: String,
|
|
36
|
+
validateStatus: String,
|
|
37
|
+
messagePrefix: String,
|
|
38
|
+
message: String,
|
|
39
|
+
wrapCol: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: !0
|
|
42
|
+
},
|
|
43
|
+
fixedSpan: Number,
|
|
44
|
+
block: Boolean,
|
|
45
|
+
unwrap: Boolean,
|
|
46
|
+
half: Boolean,
|
|
47
|
+
formItemClass: String,
|
|
48
|
+
hideLabel: Boolean,
|
|
49
|
+
tips: { type: String },
|
|
50
|
+
tipsAfterLabel: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
54
|
+
labelColspan: [Number, String],
|
|
55
|
+
inputColspan: [Number, String],
|
|
56
|
+
labelRowspan: [Number, String],
|
|
57
|
+
inputRowspan: [Number, String]
|
|
58
|
+
}, x = {
|
|
59
|
+
required: !0,
|
|
60
|
+
rules: !0,
|
|
61
|
+
messagePrefix: !0,
|
|
62
|
+
message: !0,
|
|
63
|
+
wrapCol: !0,
|
|
64
|
+
fixedSpan: !0,
|
|
65
|
+
block: !0,
|
|
66
|
+
unwrap: !0,
|
|
67
|
+
half: !0,
|
|
68
|
+
formItemClass: !0,
|
|
69
|
+
hideLabel: !0,
|
|
70
|
+
tips: !0,
|
|
71
|
+
tipsAfterLabel: !0,
|
|
72
|
+
labelColspan: !0,
|
|
73
|
+
inputColspan: !0,
|
|
74
|
+
labelRowspan: !0,
|
|
75
|
+
inputRowspan: !0
|
|
76
|
+
}, S = (e) => b[e] !== void 0 && x[e] !== !0, C = (t, { emit: n, events: r, predicate: i }) => s(() => e(t, i, r, n)), w = {
|
|
77
|
+
span: {
|
|
78
|
+
type: Number,
|
|
79
|
+
default: 12
|
|
80
|
+
},
|
|
81
|
+
offset: {
|
|
82
|
+
type: Number,
|
|
83
|
+
default: 0
|
|
84
|
+
},
|
|
85
|
+
push: {
|
|
86
|
+
type: Number,
|
|
87
|
+
default: 0
|
|
88
|
+
},
|
|
89
|
+
pull: {
|
|
90
|
+
type: Number,
|
|
91
|
+
default: 0
|
|
92
|
+
},
|
|
93
|
+
xs: { type: [Number, Object] },
|
|
94
|
+
sm: { type: [Number, Object] },
|
|
95
|
+
md: { type: [Number, Object] },
|
|
96
|
+
lg: { type: [Number, Object] },
|
|
97
|
+
xl: { type: [Number, Object] },
|
|
98
|
+
tag: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: "div"
|
|
101
|
+
}
|
|
102
|
+
}, T = { span: !0 }, E = (e) => w[e] !== void 0 && T[e] !== !0, D = (t, { emit: n, events: r, predicate: i }) => s(() => e(t, i, r, n)), O = (e) => {
|
|
103
|
+
let n = u(t, null);
|
|
104
|
+
return s(() => e.required === !0 ? !0 : (n == null ? void 0 : n.requiredFieldsMap[e.prop]) === !0);
|
|
105
|
+
}, k = (e, t) => {
|
|
106
|
+
let n = p(t);
|
|
107
|
+
o(n) ? e.push(n) : i(n) ? e.push(...n) : a(n) && e.push(n);
|
|
108
|
+
}, A = (e, { rules: t, attrs: n, messagePrefix: r, message: i, ...a } = {}) => {
|
|
109
|
+
let o = O(e);
|
|
110
|
+
return s(() => {
|
|
111
|
+
let s = { message: i }, c = p(t);
|
|
112
|
+
Object.keys({
|
|
113
|
+
...b,
|
|
114
|
+
...w
|
|
115
|
+
}).forEach((t) => {
|
|
116
|
+
t === "rules" ? e[t] && c ? s[t] = [...e[t], ...c] : e[t] ? s[t] = e[t] : c && (s[t] = c) : t === "messagePrefix" ? s[t] = e.messagePrefix || r : s[t] = e[t];
|
|
117
|
+
});
|
|
118
|
+
let l = [];
|
|
119
|
+
return k(l, n == null ? void 0 : n.class), k(l, a == null ? void 0 : a.class), s.required = o.value, s.class = l, s.style = n == null ? void 0 : n.style, s;
|
|
120
|
+
});
|
|
121
|
+
}, j = {
|
|
122
|
+
name: "FormItemX",
|
|
123
|
+
inheritAttrs: !1,
|
|
124
|
+
props: {
|
|
125
|
+
...b,
|
|
126
|
+
...w
|
|
127
|
+
},
|
|
128
|
+
setup(e, { attrs: r, slots: i, expose: a }) {
|
|
129
|
+
let o = u(g, null), l = u(n, null), p = u(t, null), h = r.embed ? s(() => r.disabled) : N(e), b = C(e, { predicate: S }), x = D(e, { predicate: E }), w = s(() => (l == null ? void 0 : l.reactive) === !0 && l.block === !1 && e.fixedSpan === void 0 && !e.half), T = O(e), k = m("formItem"), A = s(() => (l == null ? void 0 : l.wrapCol) === !1 ? !1 : !!o && e.wrapCol), j = s(() => p != null && p.tableForm ? "" : l != null && l.block ? "100%" : e.half && A.value ? `calc(50% - ${o.gutter.value / 2}px)` : ""), M = s(() => (l == null ? void 0 : l.block) === !0 || e.block || e.half ? 24 : e.span), P = s(() => {
|
|
130
|
+
if (h.value) return [];
|
|
131
|
+
if (T.value) {
|
|
132
|
+
let t = {
|
|
133
|
+
required: !0,
|
|
134
|
+
message: e.message || `${e.messagePrefix || "请输入"}${e.label}`
|
|
135
|
+
};
|
|
136
|
+
return e.rules ? [...e.rules, t] : [t];
|
|
137
|
+
}
|
|
138
|
+
return e.rules;
|
|
139
|
+
});
|
|
140
|
+
return a({
|
|
141
|
+
clearValidate: async () => {
|
|
142
|
+
var e;
|
|
143
|
+
await f(), (e = k.value) == null || e.clearValidate();
|
|
144
|
+
},
|
|
145
|
+
validate: async () => {
|
|
146
|
+
var e;
|
|
147
|
+
await f(), (e = k.value) == null || e.validate();
|
|
148
|
+
}
|
|
149
|
+
}), () => {
|
|
150
|
+
var t;
|
|
151
|
+
let n = i.tips || e.tips, a = n ? c(y, {
|
|
152
|
+
effect: "light",
|
|
153
|
+
content: e.tips,
|
|
154
|
+
offset: 4
|
|
155
|
+
}, {
|
|
156
|
+
default: () => c("i", { class: "el-icon-info form-item-input-info" }, null),
|
|
157
|
+
content: i.tips ? i.tips : null
|
|
158
|
+
}) : null, o = c(v, d(b.value, r, {
|
|
159
|
+
ref: "formItem",
|
|
160
|
+
style: { width: j.value },
|
|
161
|
+
class: [
|
|
162
|
+
"form-item",
|
|
163
|
+
e.formItemClass,
|
|
164
|
+
{
|
|
165
|
+
"form-item-hide-label": e.hideLabel,
|
|
166
|
+
"with-tips": !e.tipsAfterLabel && n,
|
|
167
|
+
required: h.value === !1 && T.value
|
|
168
|
+
}
|
|
169
|
+
],
|
|
170
|
+
rules: P.value
|
|
171
|
+
}), {
|
|
172
|
+
...i,
|
|
173
|
+
default: () => {
|
|
174
|
+
var t;
|
|
175
|
+
return [(t = i.default) == null ? void 0 : t.call(i, {
|
|
176
|
+
disabled: h.value,
|
|
177
|
+
required: T.value
|
|
178
|
+
}), n && !e.tipsAfterLabel ? a : null];
|
|
179
|
+
},
|
|
180
|
+
label: () => [i.label ? i.label() : e.label, e.tipsAfterLabel ? a : null]
|
|
181
|
+
}), s = [o, (t = i.below) == null ? void 0 : t.call(i)];
|
|
182
|
+
return e.unwrap ? s : A.value ? c(_, d(x.value, w.value ? {
|
|
183
|
+
xs: 24,
|
|
184
|
+
sm: 12,
|
|
185
|
+
md: 12,
|
|
186
|
+
lg: 8,
|
|
187
|
+
xl: 6
|
|
188
|
+
} : {}, { span: M.value }), { default: () => s }) : o;
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
}, M = "update:modelValue", N = (e) => {
|
|
192
|
+
let n = u(t, null), i = u(r, null);
|
|
193
|
+
return s(() => {
|
|
194
|
+
if (e.disabled !== void 0) return e.disabled;
|
|
195
|
+
if (n) {
|
|
196
|
+
if (n.requiredFieldsMap[e.prop] === !0 || n.enabledFieldsMap[e.prop] === !0) return !1;
|
|
197
|
+
if (n.disabledFieldsMap[e.prop] === !0) return !0;
|
|
198
|
+
}
|
|
199
|
+
return (i == null ? void 0 : i.enabled) === !0 ? !1 : (i == null ? void 0 : i.disabled) === !0 ? !0 : (n == null ? void 0 : n.disabled) === !0;
|
|
200
|
+
});
|
|
201
|
+
}, P = { [M]: null }, F = (e, t) => e(M, t), I = (e, { vNodes: t, formItemProps: n, slots: r, disabled: i }) => e.wrapFormItem ? l(j, {
|
|
202
|
+
...n.value,
|
|
203
|
+
embed: !0,
|
|
204
|
+
disabled: i == null ? void 0 : i.value
|
|
205
|
+
}, {
|
|
206
|
+
default: () => t,
|
|
207
|
+
label: r.label,
|
|
208
|
+
error: r.error,
|
|
209
|
+
tips: r.tips,
|
|
210
|
+
below: r.below
|
|
211
|
+
}) : t, L = (t, { emit: n, slots: r, attrs: i, rules: a, events: o, predicate: c, messagePrefix: u = "请输入", ...d }) => {
|
|
212
|
+
let f = N(t), p = s(() => f.value ? "" : `${u}${t.label}`), m = A(t, {
|
|
213
|
+
rules: a,
|
|
214
|
+
attrs: i,
|
|
215
|
+
message: p.value,
|
|
216
|
+
...d
|
|
217
|
+
}), g = (e) => F(n, e), _ = (e) => t.col ? l(h, { span: t.block ? 24 : t.span }, { default: () => e }) : e;
|
|
218
|
+
return {
|
|
219
|
+
emitInput: g,
|
|
220
|
+
render: ({ vNodes: e }) => I(t, {
|
|
221
|
+
vNodes: _(e),
|
|
222
|
+
formItemProps: m,
|
|
223
|
+
slots: r,
|
|
224
|
+
disabled: f
|
|
225
|
+
}),
|
|
226
|
+
placeholder: p,
|
|
227
|
+
disabled: f,
|
|
228
|
+
formItemProps: m,
|
|
229
|
+
autoBind: s(() => e(t, c, o, n))
|
|
230
|
+
};
|
|
231
|
+
}, R = (e) => e.icon ? l("i", { class: e.icon }) : null;
|
|
232
|
+
//#endregion
|
|
233
|
+
export { j as a, b as c, L as i, P as n, A as o, I as r, w as s, R as t };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n } from "./
|
|
1
|
+
import { i as e, n as t } from "./DPO-hveW.mjs";
|
|
2
|
+
import { n } from "./CMMPk7_3.mjs";
|
|
3
3
|
import { createVNode as r, mergeProps as i, useModel as a } from "vue";
|
|
4
4
|
import { ElSlider as o } from "element-plus/es";
|
|
5
|
+
import "element-plus/es/components/base/style/css";
|
|
6
|
+
import "element-plus/es/components/slider/style/css";
|
|
5
7
|
//#region src/components/form/props/slide.ts
|
|
6
8
|
var s = {
|
|
7
9
|
...n,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./
|
|
2
|
-
import { n as t, t as n } from "./
|
|
1
|
+
import { n as e } from "./DPO-hveW.mjs";
|
|
2
|
+
import { n as t, t as n } from "./BINk6iM9.mjs";
|
|
3
3
|
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
4
4
|
//#region src/components/form/FormInputPhoneNumber.vue?vue&type=script&lang.jsx
|
|
5
5
|
function s(e) {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { i as e, n as t } from "./
|
|
2
|
-
import { n, t as r } from "./
|
|
3
|
-
import { t as i } from "./
|
|
1
|
+
import { i as e, n as t } from "./DPO-hveW.mjs";
|
|
2
|
+
import { n, t as r } from "./CMMPk7_3.mjs";
|
|
3
|
+
import { t as i } from "./b5HOxD60.mjs";
|
|
4
4
|
import { createVNode as a, mergeProps as o, ref as s } from "vue";
|
|
5
5
|
import { ElInput as c, ElPopover as l } from "element-plus/es";
|
|
6
|
+
import "element-plus/es/components/base/style/css";
|
|
7
|
+
import "element-plus/es/components/input/style/css";
|
|
8
|
+
import "element-plus/es/components/popover/style/css";
|
|
6
9
|
//#region src/components/form/props/input-cron.ts
|
|
7
10
|
var u = {
|
|
8
11
|
...n,
|
|
@@ -38,8 +41,8 @@ var u = {
|
|
|
38
41
|
return () => h({ vNodes: a("div", { class: "cron" }, [a(l, {
|
|
39
42
|
placement: "bottom-start",
|
|
40
43
|
disabled: _.value,
|
|
41
|
-
|
|
42
|
-
"onUpdate:
|
|
44
|
+
visible: d.value,
|
|
45
|
+
"onUpdate:visible": (e) => d.value = e,
|
|
43
46
|
"popper-class": "cron-popover"
|
|
44
47
|
}, {
|
|
45
48
|
default: () => a(i, o(v.value, {
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { u as e } from "./BX-cVxlK.mjs";
|
|
2
2
|
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createSlots as o, getCurrentInstance as s, mergeModels as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, unref as h, useModel as g, useTemplateRef as _, withCtx as v, withModifiers as y } from "vue";
|
|
3
3
|
import { ElDialog as b } from "element-plus/es";
|
|
4
|
+
import "element-plus/es/components/base/style/css";
|
|
5
|
+
import "element-plus/es/components/dialog/style/css";
|
|
4
6
|
//#region src/components/dialog/props.ts
|
|
5
7
|
var x = {
|
|
6
8
|
modelValue: {
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { formItemGroupContextKey as e, formViewContextKey as t } from "../constants/index.mjs";
|
|
2
|
+
import n from "../empty-view/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, toRefs as g, useTemplateRef as _, vShow as v, watchEffect as y, withDirectives as b } from "vue";
|
|
4
|
+
import { ElCol as x, ElCollapseTransition as S } from "element-plus";
|
|
5
|
+
import { ElRow as C } from "element-plus/es";
|
|
6
|
+
import "element-plus/es/components/base/style/css";
|
|
7
|
+
import "element-plus/es/components/row/style/css";
|
|
8
|
+
//#region src/components/form/FormItemGroup.vue?vue&type=script&lang.jsx
|
|
9
|
+
function w(e) {
|
|
10
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !l(e);
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/components/form/FormItemGroup.vue
|
|
14
|
+
var T = {
|
|
15
|
+
name: "FormItemGroup",
|
|
16
|
+
props: {
|
|
17
|
+
blockTitle: String,
|
|
18
|
+
tips: String,
|
|
19
|
+
active: Boolean,
|
|
20
|
+
enabled: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: void 0
|
|
23
|
+
},
|
|
24
|
+
disabled: {
|
|
25
|
+
type: Boolean,
|
|
26
|
+
default: void 0
|
|
27
|
+
},
|
|
28
|
+
tag: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "ElCol"
|
|
31
|
+
},
|
|
32
|
+
span: {
|
|
33
|
+
type: Number,
|
|
34
|
+
default: 24
|
|
35
|
+
},
|
|
36
|
+
block: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !0
|
|
39
|
+
},
|
|
40
|
+
wrapRow: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: !0
|
|
43
|
+
},
|
|
44
|
+
gutter: {
|
|
45
|
+
type: Number,
|
|
46
|
+
default: 20
|
|
47
|
+
},
|
|
48
|
+
collapse: Boolean,
|
|
49
|
+
showTitle: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: !0
|
|
52
|
+
},
|
|
53
|
+
notDispatch: Boolean
|
|
54
|
+
},
|
|
55
|
+
setup(l, { expose: T, slots: E }) {
|
|
56
|
+
let D = c(t, null), O = _("root"), k = m(!0), A = h(() => l.enabled), j = h(() => l.disabled), M = i(() => l.enabled === !0 ? !1 : l.disabled === !0), N = i(() => l.tag === "ElCol"), P = () => k.value = !k.value, F = p({
|
|
57
|
+
el: h(() => N.value ? O.value.$el : O.value),
|
|
58
|
+
disabled: j,
|
|
59
|
+
enabled: A,
|
|
60
|
+
isDisabled: M,
|
|
61
|
+
open: () => {
|
|
62
|
+
k.value = !0;
|
|
63
|
+
},
|
|
64
|
+
expand: k,
|
|
65
|
+
...g(l)
|
|
66
|
+
});
|
|
67
|
+
return y(() => {
|
|
68
|
+
k.value = !l.collapse;
|
|
69
|
+
}), f(e, F), d(() => {
|
|
70
|
+
if (!l.notDispatch) {
|
|
71
|
+
var e;
|
|
72
|
+
D == null || (e = D.addGroup) == null || e.call(D, F);
|
|
73
|
+
}
|
|
74
|
+
}), u(() => {
|
|
75
|
+
if (!l.notDispatch) {
|
|
76
|
+
var e;
|
|
77
|
+
D == null || (e = D.removeGroup) == null || e.call(D, F);
|
|
78
|
+
}
|
|
79
|
+
}), T(F), () => {
|
|
80
|
+
let e = () => {
|
|
81
|
+
var e;
|
|
82
|
+
return o(r, null, [b(o("div", {
|
|
83
|
+
class: "form-item-group-title",
|
|
84
|
+
onClick: P
|
|
85
|
+
}, [o("span", {
|
|
86
|
+
class: "flex-item",
|
|
87
|
+
style: "flex: 1"
|
|
88
|
+
}, [
|
|
89
|
+
E.title ? E.title() : l.blockTitle,
|
|
90
|
+
E.tips || l.tips ? o("span", { style: "color: #ff0000; font-size: 14px" }, [
|
|
91
|
+
a("("),
|
|
92
|
+
E.tips ? E.tips() : l.tips,
|
|
93
|
+
a(")")
|
|
94
|
+
]) : null,
|
|
95
|
+
(e = E["title-right"]) == null ? void 0 : e.call(E)
|
|
96
|
+
]), o("i", { class: k.value ? "el-icon-arrow-down" : "el-icon-arrow-right" }, null)]), [[v, l.showTitle]]), o(S, null, { default: () => {
|
|
97
|
+
let e;
|
|
98
|
+
return E.default ? l.wrapRow ? b(o(C, { gutter: l.gutter }, w(e = E.default()) ? e : { default: () => [e] }), [[v, k.value]]) : b(o("div", null, [E.default()]), [[v, k.value]]) : b(o(n, {
|
|
99
|
+
"font-size": "14px",
|
|
100
|
+
"empty-tips": "暂无信息"
|
|
101
|
+
}, null), [[v, k.value]]);
|
|
102
|
+
} })]);
|
|
103
|
+
}, t = {
|
|
104
|
+
ref: "root",
|
|
105
|
+
class: ["form-item-group", {
|
|
106
|
+
"default-active": l.active,
|
|
107
|
+
"is-disabled": M.value
|
|
108
|
+
}]
|
|
109
|
+
};
|
|
110
|
+
return N.value && (t.span = l.block ? 24 : l.span), s(N.value ? x : "div", t, N.value ? e : e());
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
export { T as t };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { o as t, r as n } from "./
|
|
3
|
-
import { n as r } from "./
|
|
1
|
+
import { u as e } from "./BX-cVxlK.mjs";
|
|
2
|
+
import { o as t, r as n } from "./DPO-hveW.mjs";
|
|
3
|
+
import { n as r } from "./CMMPk7_3.mjs";
|
|
4
4
|
import { createVNode as i, mergeProps as a } from "vue";
|
|
5
5
|
import { ElText as o } from "element-plus/es";
|
|
6
|
+
import "element-plus/es/components/base/style/css";
|
|
7
|
+
import "element-plus/es/components/text/style/css";
|
|
6
8
|
//#region src/components/form/props/text.ts
|
|
7
9
|
var s = {
|
|
8
10
|
...r,
|