@web-utils/component 4.0.13 → 4.0.15
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/address-input/index.mjs +15 -13
- package/card/index.mjs +20 -18
- package/carousel/index.mjs +12 -10
- package/chat/index.mjs +56 -45
- package/chunk-file-uploader/index.mjs +378 -36
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/{ElementTaskConfig.Bko0kgTp.mjs → ElementTaskConfig.AvBOzAni.mjs} +63 -55
- package/chunks/FormItem.Bhsy_O2B.mjs +372 -0
- package/chunks/FyForm.DriwCJ7b.mjs +765 -0
- package/chunks/SignalAndMessage.BpjOoKhK.mjs +92 -0
- package/chunks/SubTablePlus.BH0IIv3X.mjs +270 -0
- package/chunks/TableColumn.BzivvXMF.mjs +337 -0
- package/chunks/{confirmable-mixin.B2TtLAdk.mjs → confirmable-mixin.BFZb6pcK.mjs} +1 -1
- package/chunks/{dataformat.CpqOeGBl.mjs → dataformat.DJoNBlmI.mjs} +6 -6
- package/chunks/{dic.Dkl-leRW.mjs → dic.BinnDitI.mjs} +9 -9
- package/chunks/{event.9aDS6jcw.mjs → event.DSlcqYHL.mjs} +2 -2
- package/chunks/{form-input.CvFdwlEV.mjs → form-input.BtS_J5a2.mjs} +2 -2
- package/chunks/{index.9OxHjTIE.mjs → index.CIfe3UB3.mjs} +2 -2
- package/chunks/{index.B2TRddqf.mjs → index.Cn7aq-Et.mjs} +8 -8
- package/chunks/{init.DAsXSoLW.mjs → init.xOlFpTyZ.mjs} +2 -2
- package/chunks/{util.DqFv_pWg.mjs → util.DI42t5GU.mjs} +22 -22
- package/color-picker/index.mjs +101 -22
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/data-box/index.mjs +15 -12
- package/data-card/index.mjs +12 -10
- package/data-card-text/index.mjs +12 -10
- package/data-display/index.mjs +17 -15
- package/data-icons/index.mjs +16 -13
- package/data-imgtext/index.mjs +18 -15
- package/data-operatext/index.mjs +16 -14
- package/data-panel/index.mjs +16 -13
- package/data-pay/index.mjs +20 -16
- package/data-price/index.mjs +16 -14
- package/data-progress/index.mjs +17 -13
- package/data-rotate/index.mjs +15 -12
- package/data-table-picker/index.mjs +18 -15
- package/data-tabs/index.mjs +15 -12
- package/dialog-form/index.mjs +18 -16
- package/dynamic-table/index.mjs +30 -25
- package/editable-progress/index.mjs +11 -9
- package/editable-tree/index.mjs +56 -52
- package/egd-collapse-item/index.mjs +9 -9
- package/element-dialog/index.mjs +23 -22
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flow/index.mjs +11 -10
- package/flow-designer/index.mjs +1973 -699
- package/flow-designer/style.css +1 -1
- package/flow-node/index.mjs +1 -1
- package/flow-viewer/index.mjs +9 -9
- package/form-block/index.mjs +34 -32
- package/form-cascader/index.mjs +24 -23
- package/form-checkbox/index.mjs +17 -16
- package/form-checkbox-group/index.mjs +23 -20
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +20 -18
- package/form-holder/index.mjs +14 -13
- package/form-input/index.mjs +15 -14
- package/form-input-cron-expression/index.mjs +22 -19
- package/form-input-email/index.mjs +16 -15
- package/form-input-id-card/index.mjs +13 -12
- package/form-input-number/index.mjs +17 -16
- package/form-input-phone-number/index.mjs +22 -21
- package/form-input-tag/index.mjs +15 -14
- package/form-input-time/index.mjs +15 -14
- package/form-item/index.mjs +3 -140
- package/form-item-group/index.mjs +31 -28
- package/form-radio-group/index.mjs +28 -27
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +23 -21
- package/form-switch/index.mjs +17 -16
- package/form-table/index.mjs +17 -16
- package/form-table-plus/index.mjs +22 -21
- package/form-textarea/index.mjs +16 -15
- package/form-tree-select/index.mjs +15 -14
- package/form-tree-select-multiple/index.mjs +15 -14
- package/form-view/index.mjs +39 -35
- package/fy-array/index.mjs +37 -33
- package/fy-cascader/index.mjs +17 -16
- package/fy-checkbox/index.mjs +13 -11
- package/fy-code/index.mjs +10 -10
- package/fy-curd/index.mjs +1147 -1123
- package/fy-date/index.mjs +11 -10
- package/fy-draggable/index.mjs +10 -9
- package/fy-dynamic/index.mjs +25 -22
- package/fy-empty/index.mjs +1 -1
- package/fy-form/index.mjs +15 -638
- package/fy-form-design/index.mjs +1165 -1127
- package/fy-input/index.mjs +14 -12
- package/fy-input-color/index.mjs +15 -13
- package/fy-input-icon/index.mjs +23 -20
- package/fy-input-map/index.mjs +31 -28
- package/fy-input-number/index.mjs +10 -9
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +37 -33
- package/fy-progress/index.mjs +10 -9
- package/fy-radio/index.mjs +16 -15
- package/fy-rate/index.mjs +11 -10
- package/fy-select/index.mjs +29 -25
- package/fy-slider/index.mjs +12 -11
- package/fy-switch/index.mjs +10 -9
- package/fy-tabs/index.mjs +17 -15
- package/fy-time/index.mjs +1 -1
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +24 -18
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +13 -11
- package/iframe-window/index.mjs +10 -9
- package/image-cropper/index.mjs +30 -28
- package/image-preview/index.mjs +14 -12
- package/index.mjs +72 -72
- package/input-number/index.mjs +14 -13
- package/input-number-range/index.mjs +12 -11
- package/license/index.mjs +1 -1
- package/login/index.mjs +26 -21
- package/nav-bar/index.mjs +10 -9
- package/notice/index.mjs +10 -9
- package/package.json +1 -1
- package/page-index/index.mjs +13 -12
- package/page-index-top/index.mjs +28 -23
- package/page-skeleton/index.mjs +14 -14
- package/page-skeleton-new/index.mjs +9 -8
- package/pageable-table/index.mjs +182 -172
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +16 -15
- package/picker-table-view/index.mjs +58 -49
- package/present-view/index.mjs +39 -35
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +1 -1
- package/search/index.mjs +22 -20
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/skeleton-panel/index.mjs +10 -9
- package/split-pane/index.mjs +37 -36
- package/static-pageable-table/index.mjs +13 -11
- package/sub-table/index.mjs +49 -36
- package/sub-table-plus/index.mjs +18 -229
- package/swiper/index.mjs +12 -11
- package/table-column/index.mjs +3 -223
- package/table-view/index.mjs +60 -52
- package/tabs-view/index.mjs +19 -17
- package/tag-render/index.mjs +18 -16
- package/text-ellipsis/index.mjs +10 -9
- package/toolbar/index.mjs +14 -13
- package/toolbar-button/index.mjs +14 -13
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +267 -259
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +24 -21
- package/chunks/ElementBaseInfo.ZADwixb5.mjs +0 -125
- package/chunks/ElementForm.CQ3PN5qj.mjs +0 -223
- package/chunks/ElementListeners.De_PRuIm.mjs +0 -215
- package/chunks/ElementMultiInstance.DQo2wuAQ.mjs +0 -181
- package/chunks/ElementOtherConfig.B1NfMTYh.mjs +0 -60
- package/chunks/ElementProperties.CosfDrlW.mjs +0 -112
- package/chunks/FlowCondition.Y6qEYi1T.mjs +0 -102
- package/chunks/FormTemp.BQxO5IQq.mjs +0 -123
- package/chunks/SignalAndMessage.Bb5PFX0N.mjs +0 -85
- package/chunks/UserTaskListeners.Bv3BDfEI.mjs +0 -169
- package/chunks/core.0Exl13Mz.mjs +0 -54
- package/chunks/dictionary.DGt59Ir7.mjs +0 -68
- package/chunks/form-item.LWjePsPa.mjs +0 -233
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +0 -30
- package/chunks/utilSelf.Csq1766E.mjs +0 -48
- package/chunks/utils.DRcxC1Fb.mjs +0 -60
- package/element-listeners/style.css +0 -1
- package/element-multi-instance/style.css +0 -1
package/form-input/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { f as i } from "../chunks/form-input.CvFdwlEV.mjs";
|
|
2
1
|
import o from "element-ui/lib/input";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
2
|
+
import { F as i } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as a } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
4
|
+
import { e as s, v as l, h as p, n as u } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
|
+
import { n as c } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const d = s(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"].includes(t)), f = {
|
|
6
7
|
name: "FormInput",
|
|
7
|
-
mixins: [
|
|
8
|
+
mixins: [a],
|
|
8
9
|
props: {
|
|
9
10
|
value: [String, Number],
|
|
10
11
|
readonlyGrey: {
|
|
@@ -28,12 +29,12 @@ const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"]
|
|
|
28
29
|
},
|
|
29
30
|
computed: {
|
|
30
31
|
inputProps() {
|
|
31
|
-
return
|
|
32
|
+
return p({ ...u(this.$attrs), ...this.$props }, d);
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
watch: {
|
|
35
36
|
async value(t) {
|
|
36
|
-
this.isValidValue = await
|
|
37
|
+
this.isValidValue = await l(this.prop, t, this.computeRules);
|
|
37
38
|
}
|
|
38
39
|
},
|
|
39
40
|
methods: {
|
|
@@ -48,11 +49,11 @@ const c = a(o).filter((t) => !["value", "placeholder", "disabled", "suffixIcon"]
|
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
};
|
|
51
|
-
var
|
|
52
|
+
var m = function() {
|
|
52
53
|
var e = this, n = e._self._c;
|
|
53
|
-
return n(
|
|
54
|
+
return n(i, e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
54
55
|
return [e._t("default", function() {
|
|
55
|
-
return [n(
|
|
56
|
+
return [n(o, 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, maxlength: e.maxLength, disabled: e.inputDisabled, "suffix-icon": e.picker ? "el-icon-search" : e.suffixIcon, clearable: "", placeholder: e.inputDisabled ? "" : e.computePlaceholder }, on: { clear: e.clear, input: e.emitInput }, nativeOn: { click: function(r) {
|
|
56
57
|
return r.preventDefault(), e.onInputClick.apply(null, arguments);
|
|
57
58
|
} }, scopedSlots: e._u([{ key: "prepend", fn: function() {
|
|
58
59
|
return [e._t("prepend", function() {
|
|
@@ -73,15 +74,15 @@ var f = function() {
|
|
|
73
74
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
74
75
|
return [e._t("tips")];
|
|
75
76
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
76
|
-
},
|
|
77
|
-
d,
|
|
77
|
+
}, _ = [], y = /* @__PURE__ */ c(
|
|
78
78
|
f,
|
|
79
79
|
m,
|
|
80
|
+
_,
|
|
80
81
|
!1,
|
|
81
82
|
null,
|
|
82
83
|
null
|
|
83
84
|
);
|
|
84
|
-
const
|
|
85
|
+
const I = y.exports;
|
|
85
86
|
export {
|
|
86
|
-
|
|
87
|
+
I as default
|
|
87
88
|
};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
1
|
+
import s from "../vue-cron/index.mjs";
|
|
2
|
+
import n from "element-ui/lib/input";
|
|
3
|
+
import a from "element-ui/lib/popover";
|
|
4
|
+
import { F as l } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
5
|
+
import { f as i } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
6
|
+
import { e as u, v as p, h as c, n as m } from "../chunks/index.Cn7aq-Et.mjs";
|
|
7
|
+
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
8
|
+
const d = u(n).filter((o) => !["value", "placeholder", "disabled"].includes(o)), _ = {
|
|
6
9
|
name: "FormInputCronExpression",
|
|
7
|
-
mixins: [
|
|
10
|
+
mixins: [i],
|
|
8
11
|
props: {
|
|
9
12
|
value: [String, Number],
|
|
10
13
|
readonlyGrey: {
|
|
@@ -24,12 +27,12 @@ const c = a(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
24
27
|
},
|
|
25
28
|
computed: {
|
|
26
29
|
inputProps() {
|
|
27
|
-
return
|
|
30
|
+
return c({ ...m(this.$attrs), ...this.$props }, d);
|
|
28
31
|
}
|
|
29
32
|
},
|
|
30
33
|
watch: {
|
|
31
34
|
async value(o) {
|
|
32
|
-
this.isValidValue = await
|
|
35
|
+
this.isValidValue = await p(this.prop, o, this.computeRules);
|
|
33
36
|
}
|
|
34
37
|
},
|
|
35
38
|
methods: {
|
|
@@ -38,19 +41,19 @@ const c = a(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
38
41
|
}
|
|
39
42
|
}
|
|
40
43
|
};
|
|
41
|
-
var
|
|
44
|
+
var v = function() {
|
|
42
45
|
var e = this, r = e._self._c;
|
|
43
|
-
return r(
|
|
46
|
+
return r(l, e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled, "validate-status": "" }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
44
47
|
return [e._t("default", function() {
|
|
45
|
-
return [r("div", { staticClass: "cron" }, [r(
|
|
46
|
-
return [r(
|
|
48
|
+
return [r("div", { staticClass: "cron" }, [r(a, { attrs: { "popper-class": "cron-popover" }, scopedSlots: e._u([{ key: "reference", fn: function() {
|
|
49
|
+
return [r(n, e._g(e._b({ class: { "is-readonly": e.readonlyGrey && e.readonly }, attrs: { value: e.value, readonly: e.readonly, maxlength: e.maxLength, disabled: e.inputDisabled, placeholder: e.inputDisabled ? "" : e.computePlaceholder }, on: { click: function(t) {
|
|
47
50
|
e.cronPopover = !0;
|
|
48
51
|
} }, scopedSlots: e._u([{ key: "append", fn: function() {
|
|
49
52
|
return [e._t("append")];
|
|
50
53
|
}, proxy: !0 }], null, !0) }, "ElInput", e.inputProps, !1), e.listeners))];
|
|
51
54
|
}, proxy: !0 }]), model: { value: e.cronPopover, callback: function(t) {
|
|
52
55
|
e.cronPopover = t;
|
|
53
|
-
}, expression: "cronPopover" } }, [e.cronPopover ? r(
|
|
56
|
+
}, expression: "cronPopover" } }, [e.cronPopover ? r(s, { attrs: { i18n: "cn", expression: e.value }, on: { change: e.emitInput, close: function(t) {
|
|
54
57
|
e.cronPopover = !1;
|
|
55
58
|
} } }) : e._e()], 1)], 1), e.isValidValue && e.$slots.warn ? r("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
|
|
56
59
|
})];
|
|
@@ -63,15 +66,15 @@ var f = function() {
|
|
|
63
66
|
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
64
67
|
return [e._t("tips")];
|
|
65
68
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
}, y = [], h = /* @__PURE__ */ f(
|
|
70
|
+
_,
|
|
71
|
+
v,
|
|
72
|
+
y,
|
|
70
73
|
!1,
|
|
71
74
|
null,
|
|
72
75
|
null
|
|
73
76
|
);
|
|
74
|
-
const
|
|
77
|
+
const $ = h.exports;
|
|
75
78
|
export {
|
|
76
|
-
|
|
79
|
+
$ as default
|
|
77
80
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
1
|
+
import o from "element-ui/lib/input";
|
|
2
|
+
import { F as a } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as l } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
4
|
+
import { v as s } from "../chunks/form-validate.CVarNHKX.mjs";
|
|
5
|
+
import { e as i, h as u, n as m } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
6
|
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
-
const
|
|
7
|
+
const d = i(o).filter((t) => !["value", "placeholder", "disabled"].includes(t)), f = {
|
|
7
8
|
name: "FormInputEmail",
|
|
8
|
-
mixins: [
|
|
9
|
+
mixins: [l],
|
|
9
10
|
props: {
|
|
10
11
|
value: String,
|
|
11
12
|
maxLength: {
|
|
@@ -15,38 +16,38 @@ const m = s(a).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
15
16
|
},
|
|
16
17
|
computed: {
|
|
17
18
|
inputProps() {
|
|
18
|
-
return u({ ...
|
|
19
|
+
return u({ ...m(this.$attrs), ...this.$props }, d);
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
methods: {
|
|
22
23
|
getRules() {
|
|
23
24
|
return [
|
|
24
25
|
{
|
|
25
|
-
validator:
|
|
26
|
+
validator: s,
|
|
26
27
|
message: "请输入正确的邮箱!"
|
|
27
28
|
}
|
|
28
29
|
];
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
32
|
};
|
|
32
|
-
var
|
|
33
|
+
var c = function() {
|
|
33
34
|
var e = this, n = e._self._c;
|
|
34
|
-
return n(
|
|
35
|
-
return [n(
|
|
35
|
+
return n(a, e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
36
|
+
return [n(o, 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
37
|
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
37
38
|
return [e._t("error", null, { error: r })];
|
|
38
39
|
} }, { key: "label", fn: function() {
|
|
39
40
|
return [e._t("label")];
|
|
40
41
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
41
|
-
},
|
|
42
|
-
d,
|
|
42
|
+
}, _ = [], v = /* @__PURE__ */ p(
|
|
43
43
|
f,
|
|
44
44
|
c,
|
|
45
|
+
_,
|
|
45
46
|
!1,
|
|
46
47
|
null,
|
|
47
48
|
null
|
|
48
49
|
);
|
|
49
|
-
const
|
|
50
|
+
const P = v.exports;
|
|
50
51
|
export {
|
|
51
|
-
|
|
52
|
+
P as default
|
|
52
53
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import s from "element-ui/lib/input";
|
|
2
|
+
import { F as a } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as l } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
2
4
|
import { validateIdCard as n } from "@web-utils/core";
|
|
3
|
-
import
|
|
4
|
-
import { c as l, d as i, n as u } from "../chunks/index.B2TRddqf.mjs";
|
|
5
|
+
import { e as i, h as u, n as m } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
6
|
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
-
const
|
|
7
|
+
const d = i(s).filter((o) => !["value", "placeholder", "disabled"].includes(o)), _ = {
|
|
7
8
|
name: "FormInputIdCard",
|
|
8
|
-
mixins: [
|
|
9
|
+
mixins: [l],
|
|
9
10
|
props: {
|
|
10
11
|
value: String,
|
|
11
12
|
maxLength: {
|
|
@@ -15,7 +16,7 @@ const m = l(a).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
15
16
|
},
|
|
16
17
|
computed: {
|
|
17
18
|
inputProps() {
|
|
18
|
-
return
|
|
19
|
+
return u({ ...m(this.$attrs), ...this.$props }, d);
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
methods: {
|
|
@@ -32,8 +33,8 @@ const m = l(a).filter((o) => !["value", "placeholder", "disabled"].includes(o)),
|
|
|
32
33
|
};
|
|
33
34
|
var f = function() {
|
|
34
35
|
var e = this, t = e._self._c;
|
|
35
|
-
return t(
|
|
36
|
-
return [t(
|
|
36
|
+
return t(a, e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
37
|
+
return [t(s, 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()];
|
|
37
38
|
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
38
39
|
return [e.$scopedSlots.error && e.$scopedSlots.error(r) ? t("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
|
|
39
40
|
return [e._v(e._s(r))];
|
|
@@ -41,15 +42,15 @@ var f = function() {
|
|
|
41
42
|
} }, { key: "label", fn: function() {
|
|
42
43
|
return [e._t("label")];
|
|
43
44
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
44
|
-
}, c = [],
|
|
45
|
-
|
|
45
|
+
}, c = [], v = /* @__PURE__ */ p(
|
|
46
|
+
_,
|
|
46
47
|
f,
|
|
47
48
|
c,
|
|
48
49
|
!1,
|
|
49
50
|
null,
|
|
50
51
|
null
|
|
51
52
|
);
|
|
52
|
-
const
|
|
53
|
+
const C = v.exports;
|
|
53
54
|
export {
|
|
54
|
-
|
|
55
|
+
C as default
|
|
55
56
|
};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import { n as a } from "../chunks/
|
|
1
|
+
import o from "../input-number/index.mjs";
|
|
2
|
+
import { F as s } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as p } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
4
|
+
import { h as l, n as a } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
|
+
import { n as m } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
6
|
let t = {};
|
|
6
|
-
const
|
|
7
|
-
|
|
7
|
+
const u = o.mixins;
|
|
8
|
+
u && [...u, o].forEach((e) => {
|
|
8
9
|
e.props && (t = { ...t, ...e.props });
|
|
9
10
|
});
|
|
10
|
-
const
|
|
11
|
+
const f = Object.keys(t).filter((e) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(e)), c = {
|
|
11
12
|
name: "FormInputNumber",
|
|
12
13
|
mixins: [p],
|
|
13
14
|
props: {
|
|
@@ -32,14 +33,14 @@ const m = Object.keys(t).filter((e) => !["value", "placeholder", "disabled", "pr
|
|
|
32
33
|
},
|
|
33
34
|
computed: {
|
|
34
35
|
inputProps() {
|
|
35
|
-
return
|
|
36
|
+
return l({ ...a(this.$attrs), ...this.$props }, f);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
};
|
|
39
|
-
var
|
|
40
|
-
var r = this,
|
|
41
|
-
return
|
|
42
|
-
return [o
|
|
40
|
+
var d = function() {
|
|
41
|
+
var r = this, i = r._self._c;
|
|
42
|
+
return i(s, r._b({ attrs: { rules: r.computeRules, disabled: r.inputDisabled }, scopedSlots: r._u([{ key: "default", fn: function() {
|
|
43
|
+
return [i(o, 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: (n) => r.$emit("input", n) }, scopedSlots: r._u([{ key: "append", fn: function() {
|
|
43
44
|
return [r._t("append", function() {
|
|
44
45
|
return [r.append ? [r._v(" " + r._s(r.append) + " ")] : r._e()];
|
|
45
46
|
})];
|
|
@@ -55,15 +56,15 @@ var c = function() {
|
|
|
55
56
|
} }, { key: "label", fn: function() {
|
|
56
57
|
return [r._t("label")];
|
|
57
58
|
}, proxy: !0 }], null, !0) }, "FormItem", r.formItemProps, !1));
|
|
58
|
-
},
|
|
59
|
-
f,
|
|
59
|
+
}, _ = [], y = /* @__PURE__ */ m(
|
|
60
60
|
c,
|
|
61
61
|
d,
|
|
62
|
+
_,
|
|
62
63
|
!1,
|
|
63
64
|
null,
|
|
64
65
|
null
|
|
65
66
|
);
|
|
66
|
-
const
|
|
67
|
+
const k = y.exports;
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
k as default
|
|
69
70
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import n from "element-ui/lib/input";
|
|
2
|
+
import { F as s } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as l } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
4
|
+
import { validatePhoneNum as a } from "@web-utils/core";
|
|
5
|
+
import { e as i, h as u, n as m } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
6
|
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
-
const
|
|
7
|
+
const f = i(n).filter((r) => !["value", "placeholder", "disabled"].includes(r)), d = {
|
|
7
8
|
name: "FormInputPhoneNumber",
|
|
8
|
-
mixins: [
|
|
9
|
+
mixins: [l],
|
|
9
10
|
props: {
|
|
10
11
|
value: String,
|
|
11
12
|
maxLength: {
|
|
@@ -15,43 +16,43 @@ const m = l(i).filter((t) => !["value", "placeholder", "disabled"].includes(t)),
|
|
|
15
16
|
},
|
|
16
17
|
computed: {
|
|
17
18
|
inputProps() {
|
|
18
|
-
return
|
|
19
|
+
return u({ ...m(this.$attrs), ...this.$props }, f);
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
methods: {
|
|
22
23
|
getRules() {
|
|
23
24
|
return [
|
|
24
25
|
{
|
|
25
|
-
validator: (
|
|
26
|
-
e && e.indexOf("*") > -1 && e.length === 11 ?
|
|
26
|
+
validator: (r, e, t) => {
|
|
27
|
+
e && e.indexOf("*") > -1 && e.length === 11 ? t() : a(r, e, t);
|
|
27
28
|
},
|
|
28
29
|
message: "请输入正确的手机号码!"
|
|
29
30
|
}
|
|
30
31
|
];
|
|
31
32
|
},
|
|
32
|
-
emitInput(
|
|
33
|
-
this.$emit("input",
|
|
33
|
+
emitInput(r) {
|
|
34
|
+
this.$emit("input", r);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
};
|
|
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:
|
|
38
|
+
var _ = function() {
|
|
39
|
+
var e = this, t = e._self._c;
|
|
40
|
+
return t(s, e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
41
|
+
return [t(n, 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))];
|
|
42
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: o }) {
|
|
43
|
+
return [e._t("error", null, { error: o })];
|
|
43
44
|
} }, { key: "label", fn: function() {
|
|
44
45
|
return [e._t("label")];
|
|
45
46
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
46
|
-
}, c = [],
|
|
47
|
+
}, c = [], h = /* @__PURE__ */ p(
|
|
47
48
|
d,
|
|
48
|
-
|
|
49
|
+
_,
|
|
49
50
|
c,
|
|
50
51
|
!1,
|
|
51
52
|
null,
|
|
52
53
|
null
|
|
53
54
|
);
|
|
54
|
-
const
|
|
55
|
+
const v = h.exports;
|
|
55
56
|
export {
|
|
56
|
-
|
|
57
|
+
v as default
|
|
57
58
|
};
|
package/form-input-tag/index.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import { n as s } from "../chunks/
|
|
5
|
-
|
|
1
|
+
import a from "../x-input-tag/index.mjs";
|
|
2
|
+
import { F as n } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as l } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
4
|
+
import { h as u, n as s } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const i = Object.keys(a.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), d = {
|
|
6
7
|
name: "FormInputTag",
|
|
7
|
-
mixins: [
|
|
8
|
+
mixins: [l],
|
|
8
9
|
props: {
|
|
9
10
|
value: [Array, String],
|
|
10
11
|
block: {
|
|
@@ -35,28 +36,28 @@ const p = Object.keys(u.props).filter((t) => !["value", "placeholder", "disabled
|
|
|
35
36
|
},
|
|
36
37
|
computed: {
|
|
37
38
|
inputProps() {
|
|
38
|
-
return
|
|
39
|
+
return u({ ...s(this.$attrs), ...this.$props }, i);
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
};
|
|
42
|
-
var
|
|
43
|
+
var c = function() {
|
|
43
44
|
var e = this, o = e._self._c;
|
|
44
|
-
return o(
|
|
45
|
-
return [o(
|
|
45
|
+
return o(n, e._b({ attrs: { block: e.block, rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
46
|
+
return [o(a, e._g(e._b({ attrs: { value: e.value, query: e.query, type: e.type, readonly: e.readonly, disabled: e.inputDisabled, "object-mode": e.objectMode, "boundary-selector": e.boundarySelector, placeholder: e.computePlaceholder, "array-mode": e.arrayMode, separator: e.separator }, on: { input: (r) => e.$emit("input", r) } }, "XInputTag", e.inputProps, !1), e.listeners))];
|
|
46
47
|
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
47
48
|
return [e._t("error", null, { error: r })];
|
|
48
49
|
} }, { key: "label", fn: function() {
|
|
49
50
|
return [e._t("label")];
|
|
50
51
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
51
|
-
},
|
|
52
|
-
i,
|
|
52
|
+
}, m = [], f = /* @__PURE__ */ p(
|
|
53
53
|
d,
|
|
54
54
|
c,
|
|
55
|
+
m,
|
|
55
56
|
!1,
|
|
56
57
|
null,
|
|
57
58
|
null
|
|
58
59
|
);
|
|
59
|
-
const
|
|
60
|
+
const I = f.exports;
|
|
60
61
|
export {
|
|
61
|
-
|
|
62
|
+
I as default
|
|
62
63
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import o from "
|
|
3
|
-
import {
|
|
4
|
-
import { n as m } from "../chunks/
|
|
5
|
-
|
|
1
|
+
import a from "element-ui/lib/time-picker";
|
|
2
|
+
import { F as o } from "../chunks/FormItem.Bhsy_O2B.mjs";
|
|
3
|
+
import { f as i } from "../chunks/form-input.BtS_J5a2.mjs";
|
|
4
|
+
import { e as l, h as s, n as m } from "../chunks/index.Cn7aq-Et.mjs";
|
|
5
|
+
import { n as p } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const u = l(a).filter((r) => !["value", "placeholder", "disabled"].includes(r)), f = {
|
|
6
7
|
name: "FormInputTime",
|
|
7
|
-
mixins: [
|
|
8
|
+
mixins: [i],
|
|
8
9
|
props: {
|
|
9
10
|
range: Boolean,
|
|
10
11
|
format: {
|
|
@@ -39,14 +40,14 @@ const p = i(o).filter((r) => !["value", "placeholder", "disabled"].includes(r)),
|
|
|
39
40
|
return "请选择";
|
|
40
41
|
},
|
|
41
42
|
inputProps() {
|
|
42
|
-
return
|
|
43
|
+
return s({ ...m(this.$attrs), ...this.$props }, u);
|
|
43
44
|
}
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
|
-
var
|
|
47
|
+
var d = function() {
|
|
47
48
|
var e = this, n = e._self._c;
|
|
48
|
-
return n(
|
|
49
|
-
return [n(
|
|
49
|
+
return n(o, e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
50
|
+
return [n(a, 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
51
|
start: e.start,
|
|
51
52
|
end: e.end,
|
|
52
53
|
step: e.step,
|
|
@@ -59,15 +60,15 @@ var f = function() {
|
|
|
59
60
|
} }, { key: "label", fn: function() {
|
|
60
61
|
return [e._t("label")];
|
|
61
62
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
62
|
-
}, c = [],
|
|
63
|
-
u,
|
|
63
|
+
}, c = [], _ = /* @__PURE__ */ p(
|
|
64
64
|
f,
|
|
65
|
+
d,
|
|
65
66
|
c,
|
|
66
67
|
!1,
|
|
67
68
|
null,
|
|
68
69
|
null
|
|
69
70
|
);
|
|
70
|
-
const
|
|
71
|
+
const S = _.exports;
|
|
71
72
|
export {
|
|
72
|
-
|
|
73
|
+
S as default
|
|
73
74
|
};
|