@web-utils/component 4.0.7 → 4.0.9
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/chat/index.mjs +3 -2
- package/chunks/FormTemp.Bu2VCxUh.mjs +2 -2
- package/chunks/{configComponents.Bkix1pFY.mjs → configComponents.CpKi15WN.mjs} +16 -13
- package/chunks/{dictionary.Dq1KRI7k.mjs → dictionary.3O-Io7Vh.mjs} +1 -1
- package/chunks/index.BmYCjxZQ.mjs +47 -0
- package/confirm-button/index.mjs +14 -9
- package/confirmable/index.mjs +13 -8
- package/data-display/index.mjs +1 -1
- package/data-table-picker/index.mjs +10 -8
- package/editable-tree/index.mjs +3 -2
- package/element-dialog/index.mjs +3 -2
- package/flex-column/index.mjs +6 -5
- package/flex-item/index.mjs +6 -5
- package/flex-row/index.mjs +3 -2
- package/flow/index.mjs +3 -2
- package/flow-designer/index.mjs +2 -2
- package/flow-node/index.mjs +4 -3
- package/flow-viewer/index.mjs +2 -2
- package/form-button/index.mjs +1 -1
- package/form-cascader/index.mjs +17 -13
- package/form-checkbox/index.mjs +12 -7
- package/form-checkbox-group/index.mjs +14 -9
- package/form-date-picker/index.mjs +10 -5
- package/form-holder/index.mjs +5 -4
- package/form-input/index.mjs +11 -6
- package/form-input-cron-expression/index.mjs +13 -8
- package/form-input-email/index.mjs +17 -12
- package/form-input-id-card/index.mjs +19 -15
- package/form-input-number/index.mjs +23 -16
- package/form-input-phone-number/index.mjs +12 -8
- package/form-input-tag/index.mjs +12 -7
- package/form-input-time/index.mjs +7 -2
- package/form-item/index.mjs +6 -2
- package/form-radio-group/index.mjs +12 -7
- package/form-select/index.mjs +6 -2
- package/form-switch/index.mjs +12 -7
- package/form-table/index.mjs +28 -22
- package/form-table-plus/index.mjs +14 -10
- package/form-textarea/index.mjs +11 -6
- package/form-tree-select/index.mjs +17 -9
- package/form-tree-select-multiple/index.mjs +19 -11
- package/form-view/index.mjs +2 -2
- package/fy-array/index.mjs +5 -2
- package/fy-cascader/index.mjs +17 -13
- package/fy-checkbox/index.mjs +23 -19
- package/fy-code/index.mjs +10 -9
- package/fy-curd/index.mjs +6 -4
- package/fy-date/index.mjs +9 -5
- package/fy-draggable/index.mjs +3 -2
- package/fy-dynamic/index.mjs +14 -11
- package/fy-empty/index.mjs +4 -3
- package/fy-form/index.mjs +5 -2
- package/fy-form-design/index.mjs +4 -4
- package/fy-input/index.mjs +14 -10
- package/fy-input-color/index.mjs +15 -11
- package/fy-input-icon/index.mjs +10 -6
- package/fy-input-map/index.mjs +8 -5
- package/fy-input-number/index.mjs +16 -12
- package/fy-input-table/index.mjs +5 -2
- package/fy-input-tree/index.mjs +5 -2
- package/fy-radio/index.mjs +13 -9
- package/fy-rate/index.mjs +11 -7
- package/fy-select/index.mjs +4 -2
- package/fy-slider/index.mjs +10 -7
- package/fy-switch/index.mjs +9 -5
- package/fy-time/index.mjs +6 -3
- package/fy-title/index.mjs +16 -12
- package/fy-u-editor/index.mjs +3 -2
- package/fy-upload/index.mjs +4 -2
- package/image-cropper/index.mjs +3 -2
- package/index.mjs +555 -617
- package/license/index.mjs +3 -2
- package/package.json +1 -1
- package/page-skeleton/index.mjs +6 -6
- package/pageable-table/index.mjs +6 -3
- package/pageable-view/index.mjs +7 -6
- package/photo-swipe/index.mjs +15 -56
- package/picker-table-view/index.mjs +24 -23
- package/present-view/index.mjs +2 -2
- package/record-video/index.mjs +11 -10
- package/resize-observer/index.mjs +3 -2
- package/search/index.mjs +4 -2
- package/sign/index.mjs +3 -2
- package/split-pane/index.mjs +2 -2
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +6 -3
- package/table-view/index.mjs +4 -3
- package/tabs-view/index.mjs +1 -1
- package/text-ellipsis/index.mjs +3 -2
- package/toolbar/index.mjs +4 -3
- package/toolbar-button/index.mjs +4 -3
- package/verify/index.mjs +8 -7
- package/watermark/index.mjs +15 -14
- package/web-types.json +1 -1
|
@@ -1,8 +1,13 @@
|
|
|
1
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 { d as
|
|
4
|
+
import { d as o, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
5
5
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
7
|
+
import "element-ui/lib/col";
|
|
8
|
+
import "element-ui/lib/form-item";
|
|
9
|
+
import "@web-utils/core";
|
|
10
|
+
import "async-validator";
|
|
6
11
|
const u = [
|
|
7
12
|
"type",
|
|
8
13
|
"timeArrowControl",
|
|
@@ -92,9 +97,9 @@ const u = [
|
|
|
92
97
|
return this.year ? "yyyy" : this.month || this.monthRange ? "yyyy-MM" : this.week ? "yyyy 第 WW 周" : this.dateTime || this.dateTimeRange ? "yyyy-MM-dd HH:mm:ss" : "yyyy-MM-dd";
|
|
93
98
|
},
|
|
94
99
|
inputProps() {
|
|
95
|
-
return
|
|
100
|
+
return o(
|
|
96
101
|
{
|
|
97
|
-
...
|
|
102
|
+
...l(this.$attrs),
|
|
98
103
|
...this.$props,
|
|
99
104
|
valueFormat: this.week ? "yyyy-MM-dd" : this.valueFormat || this.fat,
|
|
100
105
|
format: this.format || this.fat,
|
|
@@ -137,7 +142,7 @@ var h = function() {
|
|
|
137
142
|
null,
|
|
138
143
|
null
|
|
139
144
|
);
|
|
140
|
-
const
|
|
145
|
+
const b = f.exports;
|
|
141
146
|
export {
|
|
142
|
-
|
|
147
|
+
b as default
|
|
143
148
|
};
|
package/form-holder/index.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { animate as o, warning as l } from "@web-utils/core";
|
|
2
2
|
import { e as a } from "../chunks/index.B2TRddqf.mjs";
|
|
3
3
|
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
4
|
+
import "async-validator";
|
|
4
5
|
const s = {
|
|
5
6
|
name: "FormHolder",
|
|
6
7
|
inject: {
|
|
@@ -95,15 +96,15 @@ const s = {
|
|
|
95
96
|
var n = function() {
|
|
96
97
|
var e = this, t = e._self._c;
|
|
97
98
|
return t("ElForm", { ref: "form", class: ["clear-fix", { "red-form": e.tableForm }], attrs: { model: e.model, size: e.size, "show-message": e.showMessage, disabled: e.disabled, "label-width": e.tableForm ? "0px" : e.labelWidth, "label-position": e.labelPosition } }, [e.tableForm ? [e._t("top"), t("FormRedTable", { class: { "hide-error-message": e.tableForm }, attrs: { columns: e.columns, "col-count": e.colCount } }, [e._t("default"), e.showAdvice ? t("FormAdvice", { attrs: { "label-colspan": e.commentLabelColspan, "value-colspan": e.commentValueColspan } }) : e._e()], 2), e._t("bottom"), t("div", { staticClass: "red-form-footer" }, [e._t("footer")], 2)] : [e._t("default")]], 2);
|
|
98
|
-
},
|
|
99
|
+
}, m = [], d = /* @__PURE__ */ i(
|
|
99
100
|
s,
|
|
100
101
|
n,
|
|
101
|
-
|
|
102
|
+
m,
|
|
102
103
|
!1,
|
|
103
104
|
null,
|
|
104
105
|
null
|
|
105
106
|
);
|
|
106
|
-
const
|
|
107
|
+
const b = d.exports;
|
|
107
108
|
export {
|
|
108
|
-
|
|
109
|
+
b as default
|
|
109
110
|
};
|
package/form-input/index.mjs
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import o from "element-ui/lib/input";
|
|
3
|
-
import { c as a, v as s, d as
|
|
4
|
-
import { n as
|
|
3
|
+
import { c as a, v as s, d as p, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
6
|
+
import "element-ui/lib/col";
|
|
7
|
+
import "element-ui/lib/form-item";
|
|
8
|
+
import "@web-utils/core";
|
|
9
|
+
import "async-validator";
|
|
5
10
|
const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"].includes(t)), d = {
|
|
6
11
|
name: "FormInput",
|
|
7
12
|
mixins: [i],
|
|
@@ -28,7 +33,7 @@ const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"]
|
|
|
28
33
|
},
|
|
29
34
|
computed: {
|
|
30
35
|
inputProps() {
|
|
31
|
-
return
|
|
36
|
+
return p({ ...l(this.$attrs), ...this.$props }, c);
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
watch: {
|
|
@@ -73,7 +78,7 @@ var f = function() {
|
|
|
73
78
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
74
79
|
return [e._t("tips")];
|
|
75
80
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
76
|
-
}, m = [], _ = /* @__PURE__ */
|
|
81
|
+
}, m = [], _ = /* @__PURE__ */ u(
|
|
77
82
|
d,
|
|
78
83
|
f,
|
|
79
84
|
m,
|
|
@@ -81,7 +86,7 @@ var f = function() {
|
|
|
81
86
|
null,
|
|
82
87
|
null
|
|
83
88
|
);
|
|
84
|
-
const
|
|
89
|
+
const S = _.exports;
|
|
85
90
|
export {
|
|
86
|
-
|
|
91
|
+
S as default
|
|
87
92
|
};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import s from "element-ui/lib/input";
|
|
3
|
-
import { c as a, v as l, d as
|
|
4
|
-
import { n as
|
|
3
|
+
import { c as a, v as l, d as i, n as p } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
6
|
+
import "element-ui/lib/col";
|
|
7
|
+
import "element-ui/lib/form-item";
|
|
8
|
+
import "@web-utils/core";
|
|
9
|
+
import "async-validator";
|
|
5
10
|
const c = a(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)), d = {
|
|
6
11
|
name: "FormInputCronExpression",
|
|
7
12
|
mixins: [n],
|
|
@@ -24,7 +29,7 @@ const c = a(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
24
29
|
},
|
|
25
30
|
computed: {
|
|
26
31
|
inputProps() {
|
|
27
|
-
return
|
|
32
|
+
return i({ ...p(this.$attrs), ...this.$props }, c);
|
|
28
33
|
}
|
|
29
34
|
},
|
|
30
35
|
watch: {
|
|
@@ -38,7 +43,7 @@ const c = a(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
38
43
|
}
|
|
39
44
|
}
|
|
40
45
|
};
|
|
41
|
-
var
|
|
46
|
+
var m = function() {
|
|
42
47
|
var e = this, r = e._self._c;
|
|
43
48
|
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled, "validate-status": "" }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
44
49
|
return [e._t("default", function() {
|
|
@@ -63,15 +68,15 @@ var f = function() {
|
|
|
63
68
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
64
69
|
return [e._t("tips")];
|
|
65
70
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
66
|
-
},
|
|
71
|
+
}, f = [], _ = /* @__PURE__ */ u(
|
|
67
72
|
d,
|
|
68
|
-
f,
|
|
69
73
|
m,
|
|
74
|
+
f,
|
|
70
75
|
!1,
|
|
71
76
|
null,
|
|
72
77
|
null
|
|
73
78
|
);
|
|
74
|
-
const
|
|
79
|
+
const C = _.exports;
|
|
75
80
|
export {
|
|
76
|
-
|
|
81
|
+
C as default
|
|
77
82
|
};
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { f as
|
|
1
|
+
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { v as l } from "../chunks/form-validate.CVarNHKX.mjs";
|
|
3
3
|
import a from "element-ui/lib/input";
|
|
4
|
-
import { c as s, d as
|
|
5
|
-
import { n as
|
|
6
|
-
|
|
4
|
+
import { c as s, d as i, n as p } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
7
|
+
import "element-ui/lib/col";
|
|
8
|
+
import "element-ui/lib/form-item";
|
|
9
|
+
import "@web-utils/core";
|
|
10
|
+
import "async-validator";
|
|
11
|
+
const u = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
7
12
|
name: "FormInputEmail",
|
|
8
|
-
mixins: [
|
|
13
|
+
mixins: [n],
|
|
9
14
|
props: {
|
|
10
15
|
value: String,
|
|
11
16
|
maxLength: {
|
|
@@ -15,7 +20,7 @@ const m = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
15
20
|
},
|
|
16
21
|
computed: {
|
|
17
22
|
inputProps() {
|
|
18
|
-
return
|
|
23
|
+
return i({ ...p(this.$attrs), ...this.$props }, u);
|
|
19
24
|
}
|
|
20
25
|
},
|
|
21
26
|
methods: {
|
|
@@ -30,15 +35,15 @@ const m = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
30
35
|
}
|
|
31
36
|
};
|
|
32
37
|
var f = function() {
|
|
33
|
-
var e = this,
|
|
34
|
-
return
|
|
35
|
-
return [
|
|
38
|
+
var e = this, o = e._self._c;
|
|
39
|
+
return o("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
40
|
+
return [o("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))];
|
|
36
41
|
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
37
42
|
return [e._t("error", null, { error: r })];
|
|
38
43
|
} }, { key: "label", fn: function() {
|
|
39
44
|
return [e._t("label")];
|
|
40
45
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
41
|
-
}, c = [], _ = /* @__PURE__ */
|
|
46
|
+
}, c = [], _ = /* @__PURE__ */ m(
|
|
42
47
|
d,
|
|
43
48
|
f,
|
|
44
49
|
c,
|
|
@@ -46,7 +51,7 @@ var f = function() {
|
|
|
46
51
|
null,
|
|
47
52
|
null
|
|
48
53
|
);
|
|
49
|
-
const
|
|
54
|
+
const k = _.exports;
|
|
50
55
|
export {
|
|
51
|
-
|
|
56
|
+
k as default
|
|
52
57
|
};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { f as s } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { validateIdCard as n } from "@web-utils/core";
|
|
3
3
|
import a from "element-ui/lib/input";
|
|
4
|
-
import { c as l, d as i, n as
|
|
5
|
-
import { n as
|
|
4
|
+
import { c as l, d as i, n as p } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
7
|
+
import "element-ui/lib/col";
|
|
8
|
+
import "element-ui/lib/form-item";
|
|
9
|
+
import "async-validator";
|
|
6
10
|
const m = l(a).filter((o) => !["value", "placeholder", "disabled"].includes(o)), d = {
|
|
7
11
|
name: "FormInputIdCard",
|
|
8
12
|
mixins: [s],
|
|
@@ -15,7 +19,7 @@ const m = l(a).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
15
19
|
},
|
|
16
20
|
computed: {
|
|
17
21
|
inputProps() {
|
|
18
|
-
return i({ ...
|
|
22
|
+
return i({ ...p(this.$attrs), ...this.$props }, m);
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
methods: {
|
|
@@ -31,17 +35,17 @@ const m = l(a).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
31
35
|
}
|
|
32
36
|
};
|
|
33
37
|
var f = function() {
|
|
34
|
-
var
|
|
35
|
-
return t("FormItem",
|
|
36
|
-
return [t("ElInput",
|
|
37
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
38
|
-
return [
|
|
39
|
-
return [
|
|
40
|
-
}, { error:
|
|
38
|
+
var r = this, t = r._self._c;
|
|
39
|
+
return t("FormItem", r._b({ attrs: { rules: r.computeRules, disabled: r.inputDisabled }, scopedSlots: r._u([{ key: "default", fn: function() {
|
|
40
|
+
return [t("ElInput", r._g(r._b({ class: { "is-readonly": r.readonly }, attrs: { value: r.value, readonly: r.readonly, maxlength: r.maxLength, disabled: r.inputDisabled, placeholder: r.computePlaceholder }, on: { input: (e) => r.$emit("input", e) } }, "ElInput", r.inputProps, !1), r.listeners)), r.$slots.warn ? t("div", { staticClass: "el-form-item__error" }, [r._t("warn")], 2) : r._e()];
|
|
41
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: e }) {
|
|
42
|
+
return [r.$scopedSlots.error && r.$scopedSlots.error(e) ? t("div", { staticClass: "el-form-item__error" }, [r._t("error", function() {
|
|
43
|
+
return [r._v(r._s(e))];
|
|
44
|
+
}, { error: e })], 2) : r._e()];
|
|
41
45
|
} }, { key: "label", fn: function() {
|
|
42
|
-
return [
|
|
43
|
-
}, proxy: !0 }], null, !0) }, "FormItem",
|
|
44
|
-
}, c = [], _ = /* @__PURE__ */
|
|
46
|
+
return [r._t("label")];
|
|
47
|
+
}, proxy: !0 }], null, !0) }, "FormItem", r.formItemProps, !1));
|
|
48
|
+
}, c = [], _ = /* @__PURE__ */ u(
|
|
45
49
|
d,
|
|
46
50
|
f,
|
|
47
51
|
c,
|
|
@@ -49,7 +53,7 @@ var f = function() {
|
|
|
49
53
|
null,
|
|
50
54
|
null
|
|
51
55
|
);
|
|
52
|
-
const
|
|
56
|
+
const $ = _.exports;
|
|
53
57
|
export {
|
|
54
|
-
|
|
58
|
+
$ as default
|
|
55
59
|
};
|
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
import { f as
|
|
2
|
-
import
|
|
1
|
+
import { f as u } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
|
+
import p from "../input-number/index.mjs";
|
|
3
3
|
import { d as s, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
-
import { n as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
6
|
+
import "element-ui/lib/col";
|
|
7
|
+
import "element-ui/lib/form-item";
|
|
8
|
+
import "element-ui/src/mixins/focus";
|
|
9
|
+
import "element-ui/src/directives/repeat-click";
|
|
10
|
+
import "@web-utils/core";
|
|
11
|
+
import "async-validator";
|
|
12
|
+
let n = {};
|
|
13
|
+
const i = p.mixins;
|
|
14
|
+
i && [...i, p].forEach((e) => {
|
|
15
|
+
e.props && (n = { ...n, ...e.props });
|
|
9
16
|
});
|
|
10
|
-
const
|
|
17
|
+
const a = Object.keys(n).filter((e) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(e)), f = {
|
|
11
18
|
name: "FormInputNumber",
|
|
12
|
-
mixins: [
|
|
19
|
+
mixins: [u],
|
|
13
20
|
props: {
|
|
14
21
|
value: [Number, String],
|
|
15
22
|
max: {
|
|
@@ -32,14 +39,14 @@ const m = Object.keys(t).filter((e) => !["value", "placeholder", "disabled", "pr
|
|
|
32
39
|
},
|
|
33
40
|
computed: {
|
|
34
41
|
inputProps() {
|
|
35
|
-
return s({ ...l(this.$attrs), ...this.$props },
|
|
42
|
+
return s({ ...l(this.$attrs), ...this.$props }, a);
|
|
36
43
|
}
|
|
37
44
|
}
|
|
38
45
|
};
|
|
39
46
|
var c = function() {
|
|
40
47
|
var r = this, o = r._self._c;
|
|
41
48
|
return o("FormItem", r._b({ attrs: { rules: r.computeRules, disabled: r.inputDisabled }, scopedSlots: r._u([{ key: "default", fn: function() {
|
|
42
|
-
return [o("InputNumber", r._g(r._b({ staticClass: "form-input-number", attrs: { value: r.value !== null && r.value !== "" ? r.value : void 0, controls: r.controls, precision: r.precision, max: r.max, "controls-position": r.controlsPosition, min: r.min, placeholder: r.computePlaceholder, disabled: r.inputDisabled }, on: { input: (
|
|
49
|
+
return [o("InputNumber", r._g(r._b({ staticClass: "form-input-number", attrs: { value: r.value !== null && r.value !== "" ? r.value : void 0, controls: r.controls, precision: r.precision, max: r.max, "controls-position": r.controlsPosition, min: r.min, placeholder: r.computePlaceholder, disabled: r.inputDisabled }, on: { input: (t) => r.$emit("input", t) }, scopedSlots: r._u([{ key: "append", fn: function() {
|
|
43
50
|
return [r._t("append", function() {
|
|
44
51
|
return [r.append ? [r._v(" " + r._s(r.append) + " ")] : r._e()];
|
|
45
52
|
})];
|
|
@@ -50,12 +57,12 @@ var c = function() {
|
|
|
50
57
|
}, proxy: !0 }, { key: "suffix", fn: function() {
|
|
51
58
|
return [r._t("suffix")];
|
|
52
59
|
}, proxy: !0 }], null, !0) }, "InputNumber", r.inputProps, !1), r.listeners))];
|
|
53
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
54
|
-
return [r._t("error", null, { error:
|
|
60
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: t }) {
|
|
61
|
+
return [r._t("error", null, { error: t })];
|
|
55
62
|
} }, { key: "label", fn: function() {
|
|
56
63
|
return [r._t("label")];
|
|
57
64
|
}, proxy: !0 }], null, !0) }, "FormItem", r.formItemProps, !1));
|
|
58
|
-
}, d = [], _ = /* @__PURE__ */
|
|
65
|
+
}, d = [], _ = /* @__PURE__ */ m(
|
|
59
66
|
f,
|
|
60
67
|
c,
|
|
61
68
|
d,
|
|
@@ -63,7 +70,7 @@ var c = function() {
|
|
|
63
70
|
null,
|
|
64
71
|
null
|
|
65
72
|
);
|
|
66
|
-
const
|
|
73
|
+
const g = _.exports;
|
|
67
74
|
export {
|
|
68
|
-
|
|
75
|
+
g as default
|
|
69
76
|
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { validatePhoneNum as s } from "@web-utils/core";
|
|
3
|
-
import { c as l, d as
|
|
4
|
-
import
|
|
5
|
-
import { n as
|
|
6
|
-
|
|
3
|
+
import { c as l, d as i, n as a } from "../chunks/index.B2TRddqf.mjs";
|
|
4
|
+
import p from "element-ui/lib/input";
|
|
5
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
7
|
+
import "element-ui/lib/col";
|
|
8
|
+
import "element-ui/lib/form-item";
|
|
9
|
+
import "async-validator";
|
|
10
|
+
const m = l(p).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
7
11
|
name: "FormInputPhoneNumber",
|
|
8
12
|
mixins: [o],
|
|
9
13
|
props: {
|
|
@@ -15,7 +19,7 @@ const m = l(i).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
15
19
|
},
|
|
16
20
|
computed: {
|
|
17
21
|
inputProps() {
|
|
18
|
-
return
|
|
22
|
+
return i({ ...a(this.$attrs), ...this.$props }, m);
|
|
19
23
|
}
|
|
20
24
|
},
|
|
21
25
|
methods: {
|
|
@@ -43,7 +47,7 @@ var f = function() {
|
|
|
43
47
|
} }, { key: "label", fn: function() {
|
|
44
48
|
return [e._t("label")];
|
|
45
49
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
46
|
-
}, c = [], _ = /* @__PURE__ */
|
|
50
|
+
}, c = [], _ = /* @__PURE__ */ u(
|
|
47
51
|
d,
|
|
48
52
|
f,
|
|
49
53
|
c,
|
|
@@ -51,7 +55,7 @@ var f = function() {
|
|
|
51
55
|
null,
|
|
52
56
|
null
|
|
53
57
|
);
|
|
54
|
-
const
|
|
58
|
+
const N = _.exports;
|
|
55
59
|
export {
|
|
56
|
-
|
|
60
|
+
N as default
|
|
57
61
|
};
|
package/form-input-tag/index.mjs
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { d as n, n as l } from "../chunks/index.B2TRddqf.mjs";
|
|
3
3
|
import u from "../x-input-tag/index.mjs";
|
|
4
|
-
import { n as
|
|
5
|
-
|
|
4
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
6
|
+
import "element-ui/lib/col";
|
|
7
|
+
import "element-ui/lib/form-item";
|
|
8
|
+
import "@web-utils/core";
|
|
9
|
+
import "async-validator";
|
|
10
|
+
const s = Object.keys(u.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), i = {
|
|
6
11
|
name: "FormInputTag",
|
|
7
12
|
mixins: [a],
|
|
8
13
|
props: {
|
|
@@ -35,7 +40,7 @@ const p = Object.keys(u.props).filter((t) => !["value", "placeholder", "disabled
|
|
|
35
40
|
},
|
|
36
41
|
computed: {
|
|
37
42
|
inputProps() {
|
|
38
|
-
return n({ ...l(this.$attrs), ...this.$props },
|
|
43
|
+
return n({ ...l(this.$attrs), ...this.$props }, s);
|
|
39
44
|
}
|
|
40
45
|
}
|
|
41
46
|
};
|
|
@@ -48,15 +53,15 @@ var d = function() {
|
|
|
48
53
|
} }, { key: "label", fn: function() {
|
|
49
54
|
return [e._t("label")];
|
|
50
55
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
51
|
-
},
|
|
56
|
+
}, m = [], c = /* @__PURE__ */ p(
|
|
52
57
|
i,
|
|
53
58
|
d,
|
|
54
|
-
|
|
59
|
+
m,
|
|
55
60
|
!1,
|
|
56
61
|
null,
|
|
57
62
|
null
|
|
58
63
|
);
|
|
59
|
-
const
|
|
64
|
+
const h = c.exports;
|
|
60
65
|
export {
|
|
61
|
-
|
|
66
|
+
h as default
|
|
62
67
|
};
|
|
@@ -2,6 +2,11 @@ import { f as a } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
|
2
2
|
import o from "element-ui/lib/time-picker";
|
|
3
3
|
import { c as i, d as l, n as s } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
6
|
+
import "element-ui/lib/col";
|
|
7
|
+
import "element-ui/lib/form-item";
|
|
8
|
+
import "@web-utils/core";
|
|
9
|
+
import "async-validator";
|
|
5
10
|
const p = i(o).filter((r) => !["value", "placeholder", "disabled"].includes(r)), u = {
|
|
6
11
|
name: "FormInputTime",
|
|
7
12
|
mixins: [a],
|
|
@@ -67,7 +72,7 @@ var f = function() {
|
|
|
67
72
|
null,
|
|
68
73
|
null
|
|
69
74
|
);
|
|
70
|
-
const
|
|
75
|
+
const x = d.exports;
|
|
71
76
|
export {
|
|
72
|
-
|
|
77
|
+
x as default
|
|
73
78
|
};
|
package/form-item/index.mjs
CHANGED
|
@@ -2,6 +2,10 @@ import { h as m } from "vue";
|
|
|
2
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
|
+
import "../chunks/index.B2TRddqf.mjs";
|
|
6
|
+
import "async-validator";
|
|
7
|
+
import "element-ui/lib/col";
|
|
8
|
+
import "element-ui/lib/form-item";
|
|
5
9
|
const N = {
|
|
6
10
|
name: "FormItem",
|
|
7
11
|
mixins: [B],
|
|
@@ -136,7 +140,7 @@ var G = /* @__PURE__ */ L(
|
|
|
136
140
|
null,
|
|
137
141
|
null
|
|
138
142
|
);
|
|
139
|
-
const
|
|
143
|
+
const $ = G.exports;
|
|
140
144
|
export {
|
|
141
|
-
|
|
145
|
+
$ as default
|
|
142
146
|
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { f as n } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import { f as l } from "../chunks/form-pick.BFTIVn_i.mjs";
|
|
3
3
|
import a from "element-ui/lib/radio-group";
|
|
4
|
-
import { c as s, d as
|
|
4
|
+
import { c as s, d as p, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
5
5
|
import { d } from "../chunks/dictionary.DqiP9x2m.mjs";
|
|
6
6
|
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
7
|
-
|
|
7
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
8
|
+
import "element-ui/lib/col";
|
|
9
|
+
import "element-ui/lib/form-item";
|
|
10
|
+
import "@web-utils/core";
|
|
11
|
+
import "async-validator";
|
|
12
|
+
const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
|
|
8
13
|
name: "FormRadioGroup",
|
|
9
14
|
mixins: [n, l, d],
|
|
10
15
|
props: {
|
|
@@ -52,7 +57,7 @@ const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
52
57
|
return "请选择";
|
|
53
58
|
},
|
|
54
59
|
inputProps() {
|
|
55
|
-
return
|
|
60
|
+
return p({ ...u(this.$attrs), ...this.$props }, f);
|
|
56
61
|
},
|
|
57
62
|
labelKey() {
|
|
58
63
|
return this.classic ? "label" : this.labelProp;
|
|
@@ -91,7 +96,7 @@ const f = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
91
96
|
}
|
|
92
97
|
}
|
|
93
98
|
};
|
|
94
|
-
var
|
|
99
|
+
var h = function() {
|
|
95
100
|
var e = this, r = e._self._c;
|
|
96
101
|
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
102
|
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) {
|
|
@@ -109,14 +114,14 @@ var m = function() {
|
|
|
109
114
|
return [e._t("below")];
|
|
110
115
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
111
116
|
}, y = [], g = /* @__PURE__ */ c(
|
|
112
|
-
h,
|
|
113
117
|
m,
|
|
118
|
+
h,
|
|
114
119
|
y,
|
|
115
120
|
!1,
|
|
116
121
|
null,
|
|
117
122
|
null
|
|
118
123
|
);
|
|
119
|
-
const
|
|
124
|
+
const F = g.exports;
|
|
120
125
|
export {
|
|
121
|
-
|
|
126
|
+
F as default
|
|
122
127
|
};
|
package/form-select/index.mjs
CHANGED
|
@@ -5,6 +5,10 @@ import a from "element-ui/lib/select";
|
|
|
5
5
|
import { c as p, d as u, n as h } from "../chunks/index.B2TRddqf.mjs";
|
|
6
6
|
import { isString as m, isPlainObject as f, isNumber as c } from "@web-utils/core";
|
|
7
7
|
import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
9
|
+
import "element-ui/lib/col";
|
|
10
|
+
import "element-ui/lib/form-item";
|
|
11
|
+
import "async-validator";
|
|
8
12
|
const b = p(a).filter((e) => !["value", "placeholder", "disabled"].includes(e)), y = {
|
|
9
13
|
name: "FormSelect",
|
|
10
14
|
mixins: [o, l, n],
|
|
@@ -173,7 +177,7 @@ var _ = function() {
|
|
|
173
177
|
null,
|
|
174
178
|
null
|
|
175
179
|
);
|
|
176
|
-
const
|
|
180
|
+
const I = v.exports;
|
|
177
181
|
export {
|
|
178
|
-
|
|
182
|
+
I as default
|
|
179
183
|
};
|
package/form-switch/index.mjs
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { f as o } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
2
|
import l from "element-ui/lib/switch";
|
|
3
|
-
import { c as a, d as
|
|
3
|
+
import { c as a, d as i, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
4
4
|
import { n as s } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
-
|
|
5
|
+
import "../chunks/form-item.LWjePsPa.mjs";
|
|
6
|
+
import "element-ui/lib/col";
|
|
7
|
+
import "element-ui/lib/form-item";
|
|
8
|
+
import "@web-utils/core";
|
|
9
|
+
import "async-validator";
|
|
10
|
+
const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
|
|
6
11
|
name: "FormSwitch",
|
|
7
12
|
mixins: [o],
|
|
8
13
|
props: {
|
|
@@ -18,7 +23,7 @@ const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
18
23
|
},
|
|
19
24
|
computed: {
|
|
20
25
|
inputProps() {
|
|
21
|
-
return
|
|
26
|
+
return i({ ...u(this.$attrs), ...this.$props }, p);
|
|
22
27
|
}
|
|
23
28
|
},
|
|
24
29
|
methods: {
|
|
@@ -27,7 +32,7 @@ const p = a(l).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
27
32
|
}
|
|
28
33
|
}
|
|
29
34
|
};
|
|
30
|
-
var
|
|
35
|
+
var c = function() {
|
|
31
36
|
var e = this, r = e._self._c;
|
|
32
37
|
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
33
38
|
return [e._t("default", function() {
|
|
@@ -41,14 +46,14 @@ var m = function() {
|
|
|
41
46
|
return [e._t("label")];
|
|
42
47
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
43
48
|
}, d = [], f = /* @__PURE__ */ s(
|
|
44
|
-
c,
|
|
45
49
|
m,
|
|
50
|
+
c,
|
|
46
51
|
d,
|
|
47
52
|
!1,
|
|
48
53
|
null,
|
|
49
54
|
null
|
|
50
55
|
);
|
|
51
|
-
const
|
|
56
|
+
const g = f.exports;
|
|
52
57
|
export {
|
|
53
|
-
|
|
58
|
+
g as default
|
|
54
59
|
};
|