@web-utils/form-ui 1.0.0-beta15 → 1.0.0-beta17
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/1BaFmq0z.mjs +168 -0
- package/chunks/3ItTydl6.mjs +100 -0
- package/chunks/B5B9au3z.mjs +180 -0
- package/chunks/Bh_CMUlo.mjs +12 -0
- package/chunks/CEWLi7G1.mjs +222 -0
- package/chunks/CH_v7XkN.mjs +53 -0
- package/chunks/CQTt0Oq1.mjs +17 -0
- package/chunks/CbGBSOlX.mjs +26 -0
- package/chunks/CqgD2b0r.mjs +106 -0
- package/chunks/CrWDXTno.mjs +108 -0
- package/chunks/D0EeP-eB.mjs +41 -0
- package/chunks/D9GcEl6r.mjs +8 -0
- package/chunks/DCKxvrCR.mjs +189 -0
- package/chunks/DFuF0u2g.mjs +51 -0
- package/chunks/DQDBsEel.mjs +26 -0
- package/chunks/DUBc-1s4.mjs +108 -0
- package/chunks/DX4Wq2Fb.mjs +73 -0
- package/chunks/Do5h5GzH.mjs +98 -0
- package/chunks/DsBWDK1-.mjs +222 -0
- package/chunks/Du6wl65y.mjs +88 -0
- package/chunks/Lnj54GAG.mjs +95 -0
- package/chunks/f-CM5UVD.mjs +26 -0
- package/chunks/uWRsKwOO.mjs +76 -0
- package/chunks/wfL1FAwc.mjs +1360 -0
- package/constants.d.ts +21 -2
- package/element-dialog/index.d.ts +58 -15
- package/element-dialog/index.mjs +2 -91
- package/form-cascader/index.d.ts +2 -0
- package/form-cascader/index.mjs +10 -0
- package/form-check-box-group/index.d.ts +196 -22
- package/form-check-box-group/index.mjs +1 -1
- package/form-checkbox/index.d.ts +188 -24
- package/form-checkbox/index.mjs +1 -1
- package/form-date-picker/index.d.ts +313 -26
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.d.ts +92 -21
- package/form-holder/index.mjs +1 -1
- package/form-holder/style.css +1 -1
- package/form-image/index.d.ts +138 -20
- package/form-image/index.mjs +1 -1
- package/form-input/index.d.ts +281 -40
- package/form-input/index.mjs +1 -1
- 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 +279 -21
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.d.ts +279 -21
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.d.ts +228 -24
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.d.ts +279 -21
- package/form-input-phone-number/index.mjs +1 -1
- package/form-item-config-provider/index.d.ts +3 -1
- package/form-item-config-provider/index.mjs +1 -1
- package/form-item-x/index.d.ts +124 -15
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.d.ts +196 -22
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.d.ts +232 -18
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.d.ts +455 -22
- package/form-select/index.mjs +1 -1
- package/form-slider/index.d.ts +261 -18
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.d.ts +238 -20
- package/form-switch/index.mjs +1 -1
- package/form-text/index.d.ts +144 -20
- package/form-text/index.mjs +1 -1
- package/index.d.ts +4 -1
- package/index.mjs +37 -60
- package/month-calendar/index.mjs +312 -2
- package/month-calendar/style.css +1 -1
- package/package.json +3 -1
- 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.mjs +2 -1
- package/chunks/B5BIQCcK.mjs +0 -149
- package/chunks/BDhGvPmU.mjs +0 -32
- package/chunks/BXOvvlL2.mjs +0 -35
- package/chunks/C6tYoDfK.mjs +0 -43
- package/chunks/CAYDWMXC.mjs +0 -47
- package/chunks/CXHvVx2H.mjs +0 -54
- package/chunks/CykRgGj0.mjs +0 -90
- package/chunks/D4SiGR5u.mjs +0 -28
- package/chunks/DAEpRn3D.mjs +0 -28
- package/chunks/DK2YoEOD.mjs +0 -167
- package/chunks/DL4ovOwO.mjs +0 -36
- package/chunks/DXrQ5tWJ.mjs +0 -35
- package/chunks/Xww4oyW1.mjs +0 -47
- package/chunks/ciEWoJ1U.mjs +0 -23
- package/chunks/dwnrVqcq.mjs +0 -315
- package/chunks/jpMiw_3M.mjs +0 -74
- package/chunks/vlkluoXb.mjs +0 -32
- package/chunks/wo0ekOcp.mjs +0 -28
- /package/chunks/{CI_28Uw4.mjs → 98bTmBOR.mjs} +0 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { i as e, n as t } from "./CEWLi7G1.mjs";
|
|
2
|
+
import { n, t as r } from "./CQTt0Oq1.mjs";
|
|
3
|
+
import { ElInputNumber as i } from "element-plus/es";
|
|
4
|
+
import { computed as a, createVNode as o, mergeProps as s } from "vue";
|
|
5
|
+
import { isString as c } from "@web-utils/core";
|
|
6
|
+
//#region src/components/form/props/input-number.js
|
|
7
|
+
var l = {
|
|
8
|
+
...n,
|
|
9
|
+
...r,
|
|
10
|
+
modelValue: [Number, null],
|
|
11
|
+
min: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: -(2 ** 53 - 1)
|
|
14
|
+
},
|
|
15
|
+
max: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: 2 ** 53 - 1
|
|
18
|
+
},
|
|
19
|
+
step: {
|
|
20
|
+
type: Number,
|
|
21
|
+
default: 1
|
|
22
|
+
},
|
|
23
|
+
stepStrictly: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !1
|
|
26
|
+
},
|
|
27
|
+
precision: Number,
|
|
28
|
+
size: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "default"
|
|
31
|
+
},
|
|
32
|
+
readonly: {
|
|
33
|
+
type: Boolean,
|
|
34
|
+
default: !1
|
|
35
|
+
},
|
|
36
|
+
controls: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: !0
|
|
39
|
+
},
|
|
40
|
+
controlsPosition: String,
|
|
41
|
+
name: String,
|
|
42
|
+
ariaLabel: String,
|
|
43
|
+
placeholder: String,
|
|
44
|
+
id: String,
|
|
45
|
+
valueOnClear: [
|
|
46
|
+
Number,
|
|
47
|
+
null,
|
|
48
|
+
String
|
|
49
|
+
],
|
|
50
|
+
validateEvent: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !0
|
|
53
|
+
},
|
|
54
|
+
label: String,
|
|
55
|
+
inputmode: String,
|
|
56
|
+
align: {
|
|
57
|
+
type: String,
|
|
58
|
+
default: "left"
|
|
59
|
+
},
|
|
60
|
+
disabledScientific: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: !1
|
|
63
|
+
},
|
|
64
|
+
prefix: String,
|
|
65
|
+
suffix: String
|
|
66
|
+
}, u = {
|
|
67
|
+
readonly: !0,
|
|
68
|
+
placeholder: !0,
|
|
69
|
+
modelValue: !0,
|
|
70
|
+
prefix: !0,
|
|
71
|
+
suffix: !0
|
|
72
|
+
}, d = [
|
|
73
|
+
"change",
|
|
74
|
+
"blur",
|
|
75
|
+
"focus"
|
|
76
|
+
], f = (e) => n[e] === void 0 && u[e] !== !0, p = {
|
|
77
|
+
name: "FormInputNumber",
|
|
78
|
+
inheritAttrs: !1,
|
|
79
|
+
props: { ...l },
|
|
80
|
+
emits: {
|
|
81
|
+
...t,
|
|
82
|
+
change: null,
|
|
83
|
+
blur: null,
|
|
84
|
+
focus: null
|
|
85
|
+
},
|
|
86
|
+
setup(t, { emit: n, slots: r, attrs: l }) {
|
|
87
|
+
let { emitInput: u, render: p, placeholder: m, disabled: h, autoBind: g } = e(t, {
|
|
88
|
+
emit: n,
|
|
89
|
+
slots: r,
|
|
90
|
+
attrs: l,
|
|
91
|
+
events: d,
|
|
92
|
+
predicate: f
|
|
93
|
+
}), _ = a(() => c(t.modelValue) ? Number(t.modelValue) : t.modelValue);
|
|
94
|
+
return () => p({ vNodes: o(i, s({ style: "width: 100%" }, g.value, {
|
|
95
|
+
modelValue: _.value,
|
|
96
|
+
disabled: h.value,
|
|
97
|
+
"onUpdate:modelValue": u,
|
|
98
|
+
placeholder: m.value
|
|
99
|
+
}), {
|
|
100
|
+
prefix: r.prefix || t.prefix ? () => t.prefix : null,
|
|
101
|
+
suffix: r.suffix || t.suffix ? () => t.suffix : null,
|
|
102
|
+
"decrease-icon": r["decrease-icon"],
|
|
103
|
+
"increase-icon": r["increase-icon"]
|
|
104
|
+
}) });
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
//#endregion
|
|
108
|
+
export { p as t };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { i as e, n as t, t as n } from "./CEWLi7G1.mjs";
|
|
2
|
+
import { n as r, r as i, t as a } from "./CqgD2b0r.mjs";
|
|
3
|
+
import { ElInput as o } from "element-plus/es";
|
|
4
|
+
import { computed as s, createVNode as c, mergeProps as l, useModel as u } from "vue";
|
|
5
|
+
import { validatePhoneNum as d } from "@web-utils/core";
|
|
6
|
+
//#region src/util/form-validate.js
|
|
7
|
+
var f = (e, t, n) => t && !/^[A-Za-z0-9\u4e00-\u9fa5_-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
8
|
+
function p(e, t, n) {
|
|
9
|
+
t && !/^[1-9][0-9]{5}(18|19|(2[0-9]))[0-9]{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)[0-9]{3}[0-9Xx]$/.test(t) ? n(/* @__PURE__ */ Error("invalid")) : n();
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/components/form/FormInput.vue
|
|
13
|
+
var m = {
|
|
14
|
+
name: "FormInput",
|
|
15
|
+
inheritAttrs: !1,
|
|
16
|
+
props: { ...a },
|
|
17
|
+
emits: {
|
|
18
|
+
...t,
|
|
19
|
+
click: null,
|
|
20
|
+
blur: null,
|
|
21
|
+
focus: null,
|
|
22
|
+
change: null,
|
|
23
|
+
input: null,
|
|
24
|
+
clear: null,
|
|
25
|
+
keydown: null,
|
|
26
|
+
mouseleave: null,
|
|
27
|
+
mouseenter: null,
|
|
28
|
+
compositionstart: null,
|
|
29
|
+
compositionupdate: null,
|
|
30
|
+
compositionend: null
|
|
31
|
+
},
|
|
32
|
+
setup(t, { emit: a, slots: m, attrs: h }) {
|
|
33
|
+
let g = u(t, "modelValue"), _ = `请输入正确的${t.label}!`, { render: v, placeholder: y, disabled: b, autoBind: x } = e(t, {
|
|
34
|
+
emit: a,
|
|
35
|
+
slots: m,
|
|
36
|
+
attrs: h,
|
|
37
|
+
rules: s(() => {
|
|
38
|
+
if (!t.type || t.type === "textarea") return null;
|
|
39
|
+
let e = {
|
|
40
|
+
message: _,
|
|
41
|
+
trigger: "blur"
|
|
42
|
+
};
|
|
43
|
+
if (t.type === "email") e.validator = f;
|
|
44
|
+
else if (t.type === "idcard") e.validator = p;
|
|
45
|
+
else if (t.type === "phone") e.validator = d;
|
|
46
|
+
else return null;
|
|
47
|
+
return [e];
|
|
48
|
+
}),
|
|
49
|
+
events: r,
|
|
50
|
+
predicate: i
|
|
51
|
+
});
|
|
52
|
+
return () => v({ vNodes: c(o, l({ class: ["form-input", {
|
|
53
|
+
"is-readonly": t.readonlyGrey && t.readonly && !t.picker,
|
|
54
|
+
"el-input-cursor-pointer": t.picker && !b.value
|
|
55
|
+
}] }, x.value, {
|
|
56
|
+
modelValue: g.value,
|
|
57
|
+
"onUpdate:modelValue": (e) => g.value = e,
|
|
58
|
+
disabled: b.value,
|
|
59
|
+
placeholder: y.value,
|
|
60
|
+
readonly: t.readonly || t.picker,
|
|
61
|
+
"prefix-icon": n({ icon: t.picker ? "el-icon-search" : t.prefixIcon }),
|
|
62
|
+
"suffix-icon": n({ icon: t.suffixIcon })
|
|
63
|
+
}), {
|
|
64
|
+
prefix: m.prefix || t.prefix ? () => t.prefix : null,
|
|
65
|
+
suffix: m.suffix || t.suffix ? () => t.suffix : null,
|
|
66
|
+
"password-icon": m["password-icon"],
|
|
67
|
+
prepend: m.prepend || t.prepend ? () => t.prepend : null,
|
|
68
|
+
append: m.append || t.append ? () => t.append : null
|
|
69
|
+
}) });
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
export { m as t };
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { i as e, n as t } from "./CEWLi7G1.mjs";
|
|
2
|
+
import { n } from "./CQTt0Oq1.mjs";
|
|
3
|
+
import { ElRadio as r, ElRadioButton as i, ElRadioGroup as a } from "element-plus/es";
|
|
4
|
+
import { createVNode as o, isVNode as s, mergeProps as c, useModel as l } from "vue";
|
|
5
|
+
//#region src/components/form/props/radio-group.js
|
|
6
|
+
var u = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: [
|
|
9
|
+
String,
|
|
10
|
+
Number,
|
|
11
|
+
Boolean
|
|
12
|
+
],
|
|
13
|
+
size: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "default"
|
|
16
|
+
},
|
|
17
|
+
validateEvent: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
},
|
|
21
|
+
textColor: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "#ffffff"
|
|
24
|
+
},
|
|
25
|
+
fill: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "#409eff"
|
|
28
|
+
},
|
|
29
|
+
ariaLabel: String,
|
|
30
|
+
name: String,
|
|
31
|
+
id: String,
|
|
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: "radio"
|
|
45
|
+
}
|
|
46
|
+
}, d = {
|
|
47
|
+
modelValue: !0,
|
|
48
|
+
disabled: !0,
|
|
49
|
+
type: !0,
|
|
50
|
+
options: !0
|
|
51
|
+
}, f = ["change"], p = (e) => n[e] === void 0 && d[e] !== !0;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/components/form/FormRadioGroup.vue?vue&type=script&lang.jsx
|
|
54
|
+
function m(e) {
|
|
55
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !s(e);
|
|
56
|
+
}
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/components/form/FormRadioGroup.vue
|
|
59
|
+
var h = {
|
|
60
|
+
name: "FormRadioGroup",
|
|
61
|
+
inheritAttrs: !1,
|
|
62
|
+
props: { ...u },
|
|
63
|
+
emits: {
|
|
64
|
+
...t,
|
|
65
|
+
change: null
|
|
66
|
+
},
|
|
67
|
+
setup(t, { emit: n, slots: s, attrs: u }) {
|
|
68
|
+
let d = l(t, "modelValue"), { render: h, disabled: g, autoBind: _ } = e(t, {
|
|
69
|
+
emit: n,
|
|
70
|
+
slots: s,
|
|
71
|
+
attrs: u,
|
|
72
|
+
events: f,
|
|
73
|
+
predicate: p,
|
|
74
|
+
messagePrefix: "请选择"
|
|
75
|
+
});
|
|
76
|
+
return () => h({ vNodes: o(a, c(_.value, {
|
|
77
|
+
modelValue: d.value,
|
|
78
|
+
"onUpdate:modelValue": (e) => d.value = e,
|
|
79
|
+
disabled: g.value
|
|
80
|
+
}), {
|
|
81
|
+
...s,
|
|
82
|
+
default: s.default || (() => {
|
|
83
|
+
var e;
|
|
84
|
+
return (e = t.options) == null ? void 0 : e.map(({ value: e, label: n, disabled: a }) => t.type === "button" ? o(i, {
|
|
85
|
+
key: e,
|
|
86
|
+
value: e,
|
|
87
|
+
disabled: a
|
|
88
|
+
}, m(n) ? n : { default: () => [n] }) : o(r, {
|
|
89
|
+
key: e,
|
|
90
|
+
value: e,
|
|
91
|
+
disabled: a
|
|
92
|
+
}, m(n) ? n : { default: () => [n] }));
|
|
93
|
+
})
|
|
94
|
+
}) });
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
//#endregion
|
|
98
|
+
export { h as t };
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import { i as e, n as t } from "./CEWLi7G1.mjs";
|
|
2
|
+
import { n } from "./CQTt0Oq1.mjs";
|
|
3
|
+
import { ElOption as r, ElSelect as i } from "element-plus/es";
|
|
4
|
+
import { createVNode as a, mergeProps as o, useModel as s } from "vue";
|
|
5
|
+
//#region src/components/form/props/select.js
|
|
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: !1
|
|
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 = { modelValue: !0 }, u = [
|
|
173
|
+
"change",
|
|
174
|
+
"visible-change",
|
|
175
|
+
"remove-tag",
|
|
176
|
+
"clear",
|
|
177
|
+
"blur",
|
|
178
|
+
"focus",
|
|
179
|
+
"popup-scroll"
|
|
180
|
+
], d = (e) => n[e] === void 0 && l[e] !== !0, f = {
|
|
181
|
+
name: "FormSelect",
|
|
182
|
+
inheritAttrs: !1,
|
|
183
|
+
props: { ...c },
|
|
184
|
+
emits: {
|
|
185
|
+
...t,
|
|
186
|
+
change: null,
|
|
187
|
+
"visible-change": null,
|
|
188
|
+
"remove-tag": null,
|
|
189
|
+
clear: null,
|
|
190
|
+
blur: null,
|
|
191
|
+
focus: null,
|
|
192
|
+
"popup-scroll": null
|
|
193
|
+
},
|
|
194
|
+
setup(t, { emit: n, slots: c, attrs: l }) {
|
|
195
|
+
let f = s(t, "modelValue"), { render: p, placeholder: m, disabled: h, autoBind: g } = e(t, {
|
|
196
|
+
emit: n,
|
|
197
|
+
slots: c,
|
|
198
|
+
attrs: l,
|
|
199
|
+
events: u,
|
|
200
|
+
predicate: d,
|
|
201
|
+
messagePrefix: "请选择"
|
|
202
|
+
});
|
|
203
|
+
return () => p({ vNodes: a(i, o(g.value, {
|
|
204
|
+
modelValue: f.value,
|
|
205
|
+
"onUpdate:modelValue": (e) => f.value = e,
|
|
206
|
+
disabled: h.value,
|
|
207
|
+
placeholder: m.value
|
|
208
|
+
}), {
|
|
209
|
+
...c,
|
|
210
|
+
default: c.default || (() => {
|
|
211
|
+
var e;
|
|
212
|
+
return (e = t.options) == null ? void 0 : e.map(({ value: e, label: t }) => a(r, {
|
|
213
|
+
key: e,
|
|
214
|
+
label: t,
|
|
215
|
+
value: e
|
|
216
|
+
}, null));
|
|
217
|
+
})
|
|
218
|
+
}) });
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
//#endregion
|
|
222
|
+
export { f as t };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { i as e, n as t } from "./CEWLi7G1.mjs";
|
|
2
|
+
import { n } from "./CQTt0Oq1.mjs";
|
|
3
|
+
import { ElRate 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/rate.js
|
|
6
|
+
var s = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: Number,
|
|
9
|
+
max: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 5
|
|
12
|
+
},
|
|
13
|
+
size: String,
|
|
14
|
+
allowHalf: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
lowThreshold: {
|
|
19
|
+
type: Number,
|
|
20
|
+
default: 2
|
|
21
|
+
},
|
|
22
|
+
highThreshold: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 4
|
|
25
|
+
},
|
|
26
|
+
colors: [Array, Object],
|
|
27
|
+
voidColor: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "#c6d1de"
|
|
30
|
+
},
|
|
31
|
+
disabledVoidColor: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "#eff2f7"
|
|
34
|
+
},
|
|
35
|
+
icons: [Array, Object],
|
|
36
|
+
voidIcon: [String, Object],
|
|
37
|
+
disabledVoidIcon: [String, Object],
|
|
38
|
+
showText: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !1
|
|
41
|
+
},
|
|
42
|
+
showScore: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
textColor: String,
|
|
47
|
+
texts: {
|
|
48
|
+
type: Array,
|
|
49
|
+
default: () => [
|
|
50
|
+
"Extremely bad",
|
|
51
|
+
"Disappointed",
|
|
52
|
+
"Fair",
|
|
53
|
+
"Satisfied",
|
|
54
|
+
"Surprise"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
scoreTemplate: String,
|
|
58
|
+
clearable: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
id: String,
|
|
63
|
+
ariaLabel: String
|
|
64
|
+
}, c = { modelValue: !0 }, l = ["change"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
|
|
65
|
+
name: "FormRate",
|
|
66
|
+
inheritAttrs: !1,
|
|
67
|
+
props: { ...s },
|
|
68
|
+
emits: {
|
|
69
|
+
...t,
|
|
70
|
+
change: null
|
|
71
|
+
},
|
|
72
|
+
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
73
|
+
let d = o(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
|
|
74
|
+
emit: n,
|
|
75
|
+
slots: s,
|
|
76
|
+
attrs: c,
|
|
77
|
+
events: l,
|
|
78
|
+
predicate: u
|
|
79
|
+
});
|
|
80
|
+
return () => f({ vNodes: i(r, a(m.value, {
|
|
81
|
+
modelValue: d.value,
|
|
82
|
+
"onUpdate:modelValue": (e) => d.value = e,
|
|
83
|
+
disabled: p.value
|
|
84
|
+
}), null) });
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
//#endregion
|
|
88
|
+
export { d as t };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { i as e, n as t } from "./CEWLi7G1.mjs";
|
|
2
|
+
import { n } from "./CQTt0Oq1.mjs";
|
|
3
|
+
import { ElSlider 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/slide.js
|
|
6
|
+
var s = {
|
|
7
|
+
...n,
|
|
8
|
+
modelValue: [Number, Array],
|
|
9
|
+
min: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: 0
|
|
12
|
+
},
|
|
13
|
+
max: {
|
|
14
|
+
type: Number,
|
|
15
|
+
default: 100
|
|
16
|
+
},
|
|
17
|
+
step: [Number, String],
|
|
18
|
+
showInput: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
showInputControls: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !0
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: "default"
|
|
29
|
+
},
|
|
30
|
+
inputSize: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: "default"
|
|
33
|
+
},
|
|
34
|
+
showStops: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: !1
|
|
37
|
+
},
|
|
38
|
+
showTooltip: {
|
|
39
|
+
type: Boolean,
|
|
40
|
+
default: !0
|
|
41
|
+
},
|
|
42
|
+
formatTooltip: Function,
|
|
43
|
+
range: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !1
|
|
46
|
+
},
|
|
47
|
+
vertical: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
50
|
+
},
|
|
51
|
+
height: String,
|
|
52
|
+
ariaLabel: String,
|
|
53
|
+
rangeStartLabel: String,
|
|
54
|
+
rangeEndLabel: String,
|
|
55
|
+
formatValueText: Function,
|
|
56
|
+
tooltipClass: String,
|
|
57
|
+
placement: {
|
|
58
|
+
type: String,
|
|
59
|
+
default: "top"
|
|
60
|
+
},
|
|
61
|
+
marks: Object,
|
|
62
|
+
validateEvent: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: !0
|
|
65
|
+
},
|
|
66
|
+
persistent: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: !0
|
|
69
|
+
}
|
|
70
|
+
}, c = { modelValue: !0 }, l = ["change", "input"], u = (e) => n[e] === void 0 && c[e] !== !0, d = {
|
|
71
|
+
name: "FormSlider",
|
|
72
|
+
inheritAttrs: !1,
|
|
73
|
+
props: { ...s },
|
|
74
|
+
emits: {
|
|
75
|
+
...t,
|
|
76
|
+
change: null,
|
|
77
|
+
input: null
|
|
78
|
+
},
|
|
79
|
+
setup(t, { emit: n, slots: s, attrs: c }) {
|
|
80
|
+
let d = o(t, "modelValue"), { render: f, disabled: p, autoBind: m } = e(t, {
|
|
81
|
+
emit: n,
|
|
82
|
+
slots: s,
|
|
83
|
+
events: l,
|
|
84
|
+
predicate: u,
|
|
85
|
+
attrs: c
|
|
86
|
+
});
|
|
87
|
+
return () => f({ vNodes: i(r, a(m.value, {
|
|
88
|
+
modelValue: d.value,
|
|
89
|
+
"onUpdate:modelValue": (e) => d.value = e,
|
|
90
|
+
disabled: p.value
|
|
91
|
+
}), null) });
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
//#endregion
|
|
95
|
+
export { d as t };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { n as e } from "./CEWLi7G1.mjs";
|
|
2
|
+
import { t } from "./DX4Wq2Fb.mjs";
|
|
3
|
+
import { t as n } from "./CqgD2b0r.mjs";
|
|
4
|
+
import { createVNode as r, isVNode as i, mergeProps as a, useModel as o } from "vue";
|
|
5
|
+
//#region src/components/form/FormInputEmail.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/FormInputEmail.vue
|
|
11
|
+
var c = {
|
|
12
|
+
name: "FormInputEmail",
|
|
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: "email"
|
|
22
|
+
}), s(n) ? n : { default: () => [n] });
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { c as t };
|