@web-utils/component 4.0.4 → 4.0.6
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/configComponents.BHkQi547.mjs +45 -0
- package/chunks/{confirmable-mixin.D9aKzKZ9.mjs → confirmable-mixin.B2TtLAdk.mjs} +23 -22
- package/chunks/dictionary.D9gKwItv.mjs +68 -0
- package/chunks/{form-input.BsT_5fuJ.mjs → form-input.CvFdwlEV.mjs} +2 -2
- package/chunks/{form-item.CLZf7hCo.mjs → form-item.LWjePsPa.mjs} +16 -16
- package/chunks/{index.d3MV3Wq2.mjs → index.B2TRddqf.mjs} +30 -27
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/editable-tree/index.mjs +1 -1
- package/element-dialog/index.mjs +17 -16
- package/form-cascader/index.mjs +24 -24
- package/form-checkbox/index.mjs +15 -15
- package/form-checkbox-group/index.mjs +14 -14
- package/form-date-picker/index.mjs +2 -2
- package/form-holder/index.mjs +1 -1
- package/form-input/index.mjs +11 -11
- package/form-input-cron-expression/index.mjs +11 -11
- package/form-input-email/index.mjs +13 -13
- package/form-input-id-card/index.mjs +12 -12
- package/form-input-number/index.mjs +2 -2
- package/form-input-phone-number/index.mjs +22 -22
- package/form-input-tag/index.mjs +2 -2
- package/form-input-time/index.mjs +15 -15
- package/form-item/index.mjs +1 -1
- package/form-radio-group/index.mjs +26 -26
- package/form-select/index.mjs +17 -17
- package/form-switch/index.mjs +13 -13
- package/form-table/index.mjs +6 -6
- package/form-table-plus/index.mjs +4 -4
- package/form-textarea/index.mjs +13 -13
- package/form-tree-select/index.mjs +8 -8
- package/form-tree-select-multiple/index.mjs +2 -2
- package/index.mjs +408 -406
- package/package.json +1 -1
- package/pageable-table/index.mjs +48 -48
- package/pageable-view/index.mjs +1 -1
- package/picker-table-view/index.mjs +25 -24
- package/table-column/index.mjs +1 -1
- package/table-view/index.mjs +35 -36
- package/tabs-view/index.mjs +2 -2
- package/toolbar/index.mjs +52 -53
- package/toolbar-button/index.mjs +2 -2
- package/web-types.json +1 -1
- package/chunks/configComponents.BDhlZU8F.mjs +0 -23
- package/chunks/dictionary.DsN-2ukC.mjs +0 -70
package/form-checkbox/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { f as a } from "../chunks/form-input.
|
|
2
|
-
import
|
|
3
|
-
import { v as s,
|
|
4
|
-
import { n as
|
|
5
|
-
const
|
|
1
|
+
import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import l from "element-ui/lib/checkbox";
|
|
3
|
+
import { c as n, v as s, d as i, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const c = n(l).filter((r) => !["value", "placeholder", "disabled", "suffixIcon"].includes(r)), d = {
|
|
6
6
|
name: "FormCheckbox",
|
|
7
7
|
mixins: [a],
|
|
8
8
|
props: {
|
|
@@ -28,7 +28,7 @@ const p = Object.keys(o.props || o.default.props).filter((r) => !["value", "plac
|
|
|
28
28
|
},
|
|
29
29
|
computed: {
|
|
30
30
|
inputProps() {
|
|
31
|
-
return
|
|
31
|
+
return i({ ...u(this.$attrs), ...this.$props }, c);
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
watch: {
|
|
@@ -42,30 +42,30 @@ const p = Object.keys(o.props || o.default.props).filter((r) => !["value", "plac
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
var
|
|
45
|
+
var f = function() {
|
|
46
46
|
var e = this, t = e._self._c;
|
|
47
47
|
return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
48
48
|
return [e._t("default", function() {
|
|
49
49
|
return [t("ElCheckbox", e._g(e._b({ ref: "input", class: { "is-readonly": e.readonlyGrey && e.readonly && !e.picker, "el-input-cursor-pointer": e.picker && !e.inputDisabled }, attrs: { value: e.value, readonly: e.readonly || e.picker, "true-label": e.trueLabel, "false-label": e.falseLabel, disabled: e.inputDisabled, placeholder: e.inputDisabled ? "" : e.computePlaceholder }, on: { input: e.emitInput } }, "ElCheckbox", e.inputProps, !1), e.listeners)), e.isValidValue && e.$slots.warn ? t("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
|
|
50
50
|
})];
|
|
51
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
52
|
-
return [e.$scopedSlots.error && e.$scopedSlots.error(
|
|
53
|
-
return [e._v(e._s(
|
|
54
|
-
}, { error:
|
|
51
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: o }) {
|
|
52
|
+
return [e.$scopedSlots.error && e.$scopedSlots.error(o) ? t("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
|
|
53
|
+
return [e._v(e._s(o))];
|
|
54
|
+
}, { error: o })], 2) : e._e()];
|
|
55
55
|
} }, { key: "label", fn: function() {
|
|
56
56
|
return [e._t("label")];
|
|
57
57
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
58
58
|
return [e._t("tips")];
|
|
59
59
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
60
|
-
},
|
|
61
|
-
c,
|
|
60
|
+
}, m = [], _ = /* @__PURE__ */ p(
|
|
62
61
|
d,
|
|
63
62
|
f,
|
|
63
|
+
m,
|
|
64
64
|
!1,
|
|
65
65
|
null,
|
|
66
66
|
null
|
|
67
67
|
);
|
|
68
|
-
const
|
|
68
|
+
const k = _.exports;
|
|
69
69
|
export {
|
|
70
|
-
|
|
70
|
+
k as default
|
|
71
71
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { f as
|
|
3
|
-
import { d as
|
|
4
|
-
import { c as a, n as u } from "../chunks/index.
|
|
5
|
-
import
|
|
6
|
-
import { n as
|
|
7
|
-
const
|
|
1
|
+
import { f as l } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { f as i } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
|
+
import { d as s } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
4
|
+
import { c as n, d as a, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import p from "element-ui/lib/checkbox-group";
|
|
6
|
+
import { n as h } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
+
const c = n(p).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
|
|
8
8
|
name: "FormCheckboxGroup",
|
|
9
|
-
mixins: [i, s
|
|
9
|
+
mixins: [l, i, s],
|
|
10
10
|
props: {
|
|
11
11
|
options: {
|
|
12
12
|
type: Array,
|
|
@@ -50,7 +50,7 @@ const h = Object.keys(l.props || l.default.props).filter((t) => !["value", "plac
|
|
|
50
50
|
return this.classic ? "value" : this.valueProp;
|
|
51
51
|
},
|
|
52
52
|
inputProps() {
|
|
53
|
-
return a({ ...u(this.$attrs), ...this.$props },
|
|
53
|
+
return a({ ...u(this.$attrs), ...this.$props }, c);
|
|
54
54
|
},
|
|
55
55
|
innerOptions() {
|
|
56
56
|
return this.dictType ? this.dictItems : this.gender ? [
|
|
@@ -100,15 +100,15 @@ var f = function() {
|
|
|
100
100
|
}, proxy: !0 }, { key: "below", fn: function() {
|
|
101
101
|
return [e._t("below")];
|
|
102
102
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
103
|
-
},
|
|
104
|
-
c,
|
|
105
|
-
f,
|
|
103
|
+
}, d = [], b = /* @__PURE__ */ h(
|
|
106
104
|
m,
|
|
105
|
+
f,
|
|
106
|
+
d,
|
|
107
107
|
!1,
|
|
108
108
|
null,
|
|
109
109
|
null
|
|
110
110
|
);
|
|
111
|
-
const
|
|
111
|
+
const P = b.exports;
|
|
112
112
|
export {
|
|
113
|
-
|
|
113
|
+
P as default
|
|
114
114
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { f as n } from "../chunks/form-input.
|
|
1
|
+
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { f as s } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
3
|
import { toDate as a } from "@web-utils/integrations/dayjs";
|
|
4
|
-
import {
|
|
4
|
+
import { d as l, n as o } from "../chunks/index.B2TRddqf.mjs";
|
|
5
5
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
6
|
const u = [
|
|
7
7
|
"type",
|
package/form-holder/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { animate as o, warning as l } from "@web-utils/core";
|
|
2
|
-
import {
|
|
2
|
+
import { e as a } from "../chunks/index.B2TRddqf.mjs";
|
|
3
3
|
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
4
|
const s = {
|
|
5
5
|
name: "FormHolder",
|
package/form-input/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import o from "element-ui/lib/input";
|
|
3
|
+
import { c as a, v as s, d as l, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
const
|
|
5
|
+
const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"].includes(t)), d = {
|
|
6
6
|
name: "FormInput",
|
|
7
|
-
mixins: [
|
|
7
|
+
mixins: [i],
|
|
8
8
|
props: {
|
|
9
9
|
value: [String, Number],
|
|
10
10
|
readonlyGrey: {
|
|
@@ -28,12 +28,12 @@ const u = Object.keys(i.props || i.default.props).filter((t) => !["value", "plac
|
|
|
28
28
|
},
|
|
29
29
|
computed: {
|
|
30
30
|
inputProps() {
|
|
31
|
-
return
|
|
31
|
+
return l({ ...u(this.$attrs), ...this.$props }, c);
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
watch: {
|
|
35
35
|
async value(t) {
|
|
36
|
-
this.isValidValue = await
|
|
36
|
+
this.isValidValue = await s(this.prop, t, this.computeRules);
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
39
|
methods: {
|
|
@@ -48,7 +48,7 @@ const u = Object.keys(i.props || i.default.props).filter((t) => !["value", "plac
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
var
|
|
51
|
+
var f = function() {
|
|
52
52
|
var e = this, n = e._self._c;
|
|
53
53
|
return n("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
54
54
|
return [e._t("default", function() {
|
|
@@ -73,15 +73,15 @@ var d = function() {
|
|
|
73
73
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
74
74
|
return [e._t("tips")];
|
|
75
75
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
76
|
-
},
|
|
77
|
-
c,
|
|
76
|
+
}, m = [], _ = /* @__PURE__ */ p(
|
|
78
77
|
d,
|
|
79
78
|
f,
|
|
79
|
+
m,
|
|
80
80
|
!1,
|
|
81
81
|
null,
|
|
82
82
|
null
|
|
83
83
|
);
|
|
84
|
-
const k =
|
|
84
|
+
const k = _.exports;
|
|
85
85
|
export {
|
|
86
86
|
k as default
|
|
87
87
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import s from "element-ui/lib/input";
|
|
3
|
+
import { c as a, v as l, d as u, n as i } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
const
|
|
5
|
+
const c = a(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)), d = {
|
|
6
6
|
name: "FormInputCronExpression",
|
|
7
|
-
mixins: [
|
|
7
|
+
mixins: [n],
|
|
8
8
|
props: {
|
|
9
9
|
value: [String, Number],
|
|
10
10
|
readonlyGrey: {
|
|
@@ -24,12 +24,12 @@ const i = Object.keys(n.props || n.default.props).filter((o) => !["value", "plac
|
|
|
24
24
|
},
|
|
25
25
|
computed: {
|
|
26
26
|
inputProps() {
|
|
27
|
-
return
|
|
27
|
+
return u({ ...i(this.$attrs), ...this.$props }, c);
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
watch: {
|
|
31
31
|
async value(o) {
|
|
32
|
-
this.isValidValue = await
|
|
32
|
+
this.isValidValue = await l(this.prop, o, this.computeRules);
|
|
33
33
|
}
|
|
34
34
|
},
|
|
35
35
|
methods: {
|
|
@@ -38,7 +38,7 @@ const i = Object.keys(n.props || n.default.props).filter((o) => !["value", "plac
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
|
-
var
|
|
41
|
+
var f = function() {
|
|
42
42
|
var e = this, r = e._self._c;
|
|
43
43
|
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled, "validate-status": "" }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
44
44
|
return [e._t("default", function() {
|
|
@@ -63,15 +63,15 @@ var d = function() {
|
|
|
63
63
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
64
64
|
return [e._t("tips")];
|
|
65
65
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
66
|
-
},
|
|
67
|
-
c,
|
|
66
|
+
}, m = [], _ = /* @__PURE__ */ p(
|
|
68
67
|
d,
|
|
69
68
|
f,
|
|
69
|
+
m,
|
|
70
70
|
!1,
|
|
71
71
|
null,
|
|
72
72
|
null
|
|
73
73
|
);
|
|
74
|
-
const x =
|
|
74
|
+
const x = _.exports;
|
|
75
75
|
export {
|
|
76
76
|
x as default
|
|
77
77
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { v as
|
|
3
|
-
import
|
|
4
|
-
import { c as s,
|
|
5
|
-
import { n as
|
|
6
|
-
const
|
|
1
|
+
import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { v as l } from "../chunks/form-validate.CVarNHKX.mjs";
|
|
3
|
+
import a from "element-ui/lib/input";
|
|
4
|
+
import { c as s, d as u, n as i } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const m = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
7
7
|
name: "FormInputEmail",
|
|
8
|
-
mixins: [
|
|
8
|
+
mixins: [o],
|
|
9
9
|
props: {
|
|
10
10
|
value: String,
|
|
11
11
|
maxLength: {
|
|
@@ -15,21 +15,21 @@ const p = Object.keys(o.props || o.default.props).filter((t) => !["value", "plac
|
|
|
15
15
|
},
|
|
16
16
|
computed: {
|
|
17
17
|
inputProps() {
|
|
18
|
-
return
|
|
18
|
+
return u({ ...i(this.$attrs), ...this.$props }, m);
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
methods: {
|
|
22
22
|
getRules() {
|
|
23
23
|
return [
|
|
24
24
|
{
|
|
25
|
-
validator:
|
|
25
|
+
validator: l,
|
|
26
26
|
message: "请输入正确的邮箱!"
|
|
27
27
|
}
|
|
28
28
|
];
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
var
|
|
32
|
+
var f = function() {
|
|
33
33
|
var e = this, n = e._self._c;
|
|
34
34
|
return n("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
35
35
|
return [n("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (r) => e.$emit("input", r) } }, "ElInput", e.inputProps, !1), e.listeners))];
|
|
@@ -38,15 +38,15 @@ var d = function() {
|
|
|
38
38
|
} }, { key: "label", fn: function() {
|
|
39
39
|
return [e._t("label")];
|
|
40
40
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
41
|
-
},
|
|
42
|
-
m,
|
|
41
|
+
}, c = [], _ = /* @__PURE__ */ p(
|
|
43
42
|
d,
|
|
44
43
|
f,
|
|
44
|
+
c,
|
|
45
45
|
!1,
|
|
46
46
|
null,
|
|
47
47
|
null
|
|
48
48
|
);
|
|
49
|
-
const I =
|
|
49
|
+
const I = _.exports;
|
|
50
50
|
export {
|
|
51
51
|
I as default
|
|
52
52
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { f as
|
|
1
|
+
import { f as s } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { validateIdCard as n } from "@web-utils/core";
|
|
3
|
-
import
|
|
4
|
-
import { c as l,
|
|
5
|
-
import { n as
|
|
6
|
-
const
|
|
3
|
+
import a from "element-ui/lib/input";
|
|
4
|
+
import { c as l, d as i, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const m = l(a).filter((o) => !["value", "placeholder", "disabled"].includes(o)), d = {
|
|
7
7
|
name: "FormInputIdCard",
|
|
8
|
-
mixins: [
|
|
8
|
+
mixins: [s],
|
|
9
9
|
props: {
|
|
10
10
|
value: String,
|
|
11
11
|
maxLength: {
|
|
@@ -15,7 +15,7 @@ const p = Object.keys(s.props || s.default.props).filter((o) => !["value", "plac
|
|
|
15
15
|
},
|
|
16
16
|
computed: {
|
|
17
17
|
inputProps() {
|
|
18
|
-
return
|
|
18
|
+
return i({ ...u(this.$attrs), ...this.$props }, m);
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
methods: {
|
|
@@ -30,7 +30,7 @@ const p = Object.keys(s.props || s.default.props).filter((o) => !["value", "plac
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
|
-
var
|
|
33
|
+
var f = function() {
|
|
34
34
|
var e = this, t = e._self._c;
|
|
35
35
|
return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
36
36
|
return [t("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (r) => e.$emit("input", r) } }, "ElInput", e.inputProps, !1), e.listeners)), e.$slots.warn ? t("div", { staticClass: "el-form-item__error" }, [e._t("warn")], 2) : e._e()];
|
|
@@ -41,15 +41,15 @@ var d = function() {
|
|
|
41
41
|
} }, { key: "label", fn: function() {
|
|
42
42
|
return [e._t("label")];
|
|
43
43
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
44
|
-
},
|
|
45
|
-
m,
|
|
44
|
+
}, c = [], _ = /* @__PURE__ */ p(
|
|
46
45
|
d,
|
|
47
46
|
f,
|
|
47
|
+
c,
|
|
48
48
|
!1,
|
|
49
49
|
null,
|
|
50
50
|
null
|
|
51
51
|
);
|
|
52
|
-
const
|
|
52
|
+
const g = _.exports;
|
|
53
53
|
export {
|
|
54
|
-
|
|
54
|
+
g as default
|
|
55
55
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as p } from "../chunks/form-input.
|
|
1
|
+
import { f as p } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import u from "../input-number/index.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { d as s, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
5
|
let t = {};
|
|
6
6
|
const i = u.mixins;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { validatePhoneNum as
|
|
3
|
-
import { c as
|
|
4
|
-
import
|
|
5
|
-
import { n as
|
|
6
|
-
const
|
|
1
|
+
import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { validatePhoneNum as s } from "@web-utils/core";
|
|
3
|
+
import { c as l, d as a, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import i from "element-ui/lib/input";
|
|
5
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const m = l(i).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
7
7
|
name: "FormInputPhoneNumber",
|
|
8
|
-
mixins: [
|
|
8
|
+
mixins: [o],
|
|
9
9
|
props: {
|
|
10
10
|
value: String,
|
|
11
11
|
maxLength: {
|
|
@@ -15,43 +15,43 @@ const p = Object.keys(n.props || n.default.props).filter((r) => !["value", "plac
|
|
|
15
15
|
},
|
|
16
16
|
computed: {
|
|
17
17
|
inputProps() {
|
|
18
|
-
return
|
|
18
|
+
return a({ ...u(this.$attrs), ...this.$props }, m);
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
methods: {
|
|
22
22
|
getRules() {
|
|
23
23
|
return [
|
|
24
24
|
{
|
|
25
|
-
validator: (
|
|
26
|
-
e && e.indexOf("*") > -1 && e.length === 11 ?
|
|
25
|
+
validator: (t, e, r) => {
|
|
26
|
+
e && e.indexOf("*") > -1 && e.length === 11 ? r() : s(t, e, r);
|
|
27
27
|
},
|
|
28
28
|
message: "请输入正确的手机号码!"
|
|
29
29
|
}
|
|
30
30
|
];
|
|
31
31
|
},
|
|
32
|
-
emitInput(
|
|
33
|
-
this.$emit("input",
|
|
32
|
+
emitInput(t) {
|
|
33
|
+
this.$emit("input", t);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
var
|
|
38
|
-
var e = this,
|
|
39
|
-
return
|
|
40
|
-
return [
|
|
41
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
42
|
-
return [e._t("error", null, { error:
|
|
37
|
+
var f = function() {
|
|
38
|
+
var e = this, r = e._self._c;
|
|
39
|
+
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
40
|
+
return [r("ElInput", e._g(e._b({ class: { "is-readonly": e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: e.emitInput } }, "ElInput", e.inputProps, !1), e.listeners))];
|
|
41
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: n }) {
|
|
42
|
+
return [e._t("error", null, { error: n })];
|
|
43
43
|
} }, { key: "label", fn: function() {
|
|
44
44
|
return [e._t("label")];
|
|
45
45
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
46
|
-
},
|
|
47
|
-
m,
|
|
46
|
+
}, c = [], _ = /* @__PURE__ */ p(
|
|
48
47
|
d,
|
|
49
48
|
f,
|
|
49
|
+
c,
|
|
50
50
|
!1,
|
|
51
51
|
null,
|
|
52
52
|
null
|
|
53
53
|
);
|
|
54
|
-
const
|
|
54
|
+
const P = _.exports;
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
P as default
|
|
57
57
|
};
|
package/form-input-tag/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as a } from "../chunks/form-input.
|
|
2
|
-
import {
|
|
1
|
+
import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { d as n, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
3
3
|
import u from "../x-input-tag/index.mjs";
|
|
4
4
|
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
5
|
const p = Object.keys(u.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), i = {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import
|
|
3
|
-
import { c as i, n as
|
|
4
|
-
import { n as
|
|
5
|
-
const
|
|
1
|
+
import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import o from "element-ui/lib/time-picker";
|
|
3
|
+
import { c as i, d as l, n as s } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const p = i(o).filter((r) => !["value", "placeholder", "disabled"].includes(r)), u = {
|
|
6
6
|
name: "FormInputTime",
|
|
7
|
-
mixins: [
|
|
7
|
+
mixins: [a],
|
|
8
8
|
props: {
|
|
9
9
|
range: Boolean,
|
|
10
10
|
format: {
|
|
@@ -39,14 +39,14 @@ const m = Object.keys(n.props || n.default.props).filter((r) => !["value", "plac
|
|
|
39
39
|
return "请选择";
|
|
40
40
|
},
|
|
41
41
|
inputProps() {
|
|
42
|
-
return
|
|
42
|
+
return l({ ...s(this.$attrs), ...this.$props }, p);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
var
|
|
47
|
-
var e = this,
|
|
48
|
-
return
|
|
49
|
-
return [
|
|
46
|
+
var f = function() {
|
|
47
|
+
var e = this, n = e._self._c;
|
|
48
|
+
return n("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
49
|
+
return [n("ElTimePicker", e._g(e._b({ staticStyle: { width: "100%" }, attrs: { "is-range": e.range, value: e.value, disabled: e.inputDisabled, format: e.format, "value-format": e.valueFormat || e.format, clearable: "", "picker-options": {
|
|
50
50
|
start: e.start,
|
|
51
51
|
end: e.end,
|
|
52
52
|
step: e.step,
|
|
@@ -59,15 +59,15 @@ var u = function() {
|
|
|
59
59
|
} }, { key: "label", fn: function() {
|
|
60
60
|
return [e._t("label")];
|
|
61
61
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
62
|
-
},
|
|
63
|
-
p,
|
|
62
|
+
}, c = [], d = /* @__PURE__ */ m(
|
|
64
63
|
u,
|
|
65
64
|
f,
|
|
65
|
+
c,
|
|
66
66
|
!1,
|
|
67
67
|
null,
|
|
68
68
|
null
|
|
69
69
|
);
|
|
70
|
-
const
|
|
70
|
+
const v = d.exports;
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
v as default
|
|
73
73
|
};
|
package/form-item/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h as m } from "vue";
|
|
2
|
-
import { f as B } from "../chunks/form-item.
|
|
2
|
+
import { f as B } from "../chunks/form-item.LWjePsPa.mjs";
|
|
3
3
|
import { hasOwn as I, isDef as D } from "@web-utils/core";
|
|
4
4
|
import { n as L } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
5
|
const N = {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import { f as
|
|
3
|
-
import
|
|
4
|
-
import { c as s,
|
|
5
|
-
import { d
|
|
6
|
-
import { n as
|
|
7
|
-
const
|
|
1
|
+
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import { f as l } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
|
+
import a from "element-ui/lib/radio-group";
|
|
4
|
+
import { c as s, d as u, n as p } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import { d } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
6
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
+
const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)), h = {
|
|
8
8
|
name: "FormRadioGroup",
|
|
9
|
-
mixins: [
|
|
9
|
+
mixins: [n, l, d],
|
|
10
10
|
props: {
|
|
11
11
|
options: {
|
|
12
12
|
type: Array,
|
|
@@ -52,7 +52,7 @@ const c = Object.keys(n.props || n.default.props).filter((o) => !["value", "plac
|
|
|
52
52
|
return "请选择";
|
|
53
53
|
},
|
|
54
54
|
inputProps() {
|
|
55
|
-
return
|
|
55
|
+
return u({ ...p(this.$attrs), ...this.$props }, f);
|
|
56
56
|
},
|
|
57
57
|
labelKey() {
|
|
58
58
|
return this.classic ? "label" : this.labelProp;
|
|
@@ -83,40 +83,40 @@ const c = Object.keys(n.props || n.default.props).filter((o) => !["value", "plac
|
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
methods: {
|
|
86
|
-
emitInput(
|
|
87
|
-
this.$emit("input",
|
|
86
|
+
emitInput(t) {
|
|
87
|
+
this.$emit("input", t);
|
|
88
88
|
},
|
|
89
|
-
toggle(
|
|
90
|
-
this.value ===
|
|
89
|
+
toggle(t) {
|
|
90
|
+
this.value === t[this.valueKey] ? this.emitInput(null) : this.emitInput(t[this.valueKey]);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
};
|
|
94
|
-
var
|
|
94
|
+
var m = function() {
|
|
95
95
|
var e = this, r = e._self._c;
|
|
96
96
|
return r("FormItem", e._b({ class: ["form-radio-group", { "form-radio-group-row": e.fillRow, inline: e.inline }, e.ellipsis ? "form-radio-group-row-ellipsis" : "form-radio-group-row-break-word"], attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
97
|
-
return [r("ElRadioGroup", e._g(e._b({ class: { "over-flow": e.overFlow }, attrs: { value: e.value, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (
|
|
98
|
-
return r(e.component, { key:
|
|
99
|
-
return i.preventDefault(), i.stopPropagation(), e.toggle(
|
|
100
|
-
} } }, [e._v(" " + e._s(
|
|
101
|
-
}) : e._l(e.innerOptions, function(
|
|
102
|
-
return r(e.component, { key:
|
|
97
|
+
return [r("ElRadioGroup", e._g(e._b({ class: { "over-flow": e.overFlow }, attrs: { value: e.value, disabled: e.inputDisabled, placeholder: e.computePlaceholder }, on: { input: (o) => e.$emit("input", o) } }, "ElRadioGroup", e.inputProps, !1), e.listeners), [e.allowCancel ? e._l(e.innerOptions, function(o) {
|
|
98
|
+
return r(e.component, { key: o[e.valueKey], tag: "Component", attrs: { border: e.border, label: o[e.valueKey] }, nativeOn: { click: function(i) {
|
|
99
|
+
return i.preventDefault(), i.stopPropagation(), e.toggle(o);
|
|
100
|
+
} } }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
|
|
101
|
+
}) : e._l(e.innerOptions, function(o) {
|
|
102
|
+
return r(e.component, { key: o[e.valueKey], tag: "Component", attrs: { border: e.border, label: o[e.valueKey] } }, [e._v(" " + e._s(o[e.labelKey]) + " ")]);
|
|
103
103
|
})], 2), e._t("append")];
|
|
104
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
105
|
-
return [e._t("error", null, { error:
|
|
104
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: o }) {
|
|
105
|
+
return [e._t("error", null, { error: o })];
|
|
106
106
|
} }, { key: "label", fn: function() {
|
|
107
107
|
return [e._t("label")];
|
|
108
108
|
}, proxy: !0 }, { key: "below", fn: function() {
|
|
109
109
|
return [e._t("below")];
|
|
110
110
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
111
|
-
},
|
|
112
|
-
f,
|
|
111
|
+
}, y = [], g = /* @__PURE__ */ c(
|
|
113
112
|
h,
|
|
114
113
|
m,
|
|
114
|
+
y,
|
|
115
115
|
!1,
|
|
116
116
|
null,
|
|
117
117
|
null
|
|
118
118
|
);
|
|
119
|
-
const
|
|
119
|
+
const P = g.exports;
|
|
120
120
|
export {
|
|
121
|
-
|
|
121
|
+
P as default
|
|
122
122
|
};
|