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