@web-utils/component 4.0.0 → 4.0.2
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/awesome-button/index.mjs +25 -55
- package/base.css +1 -1
- package/card/style.css +1 -1
- package/carousel/style.css +1 -1
- package/chat/style.css +1 -1
- package/chunks/{ElementForm.8w6UkiuU.mjs → ElementForm.CQ3PN5qj.mjs} +17 -35
- package/chunks/{ElementListeners.DOy8wyD2.mjs → ElementListeners.De_PRuIm.mjs} +56 -95
- package/chunks/{ElementMultiInstance.3Z28ewuh.mjs → ElementMultiInstance.DQo2wuAQ.mjs} +16 -26
- package/chunks/{ElementProperties.B2I48muA.mjs → ElementProperties.CosfDrlW.mjs} +16 -16
- package/chunks/{ElementTaskConfig.MBbkLrth.mjs → ElementTaskConfig.Bko0kgTp.mjs} +104 -113
- package/chunks/{FlowCondition.BfU9kw6h.mjs → FlowCondition.Y6qEYi1T.mjs} +36 -66
- package/chunks/{SignalAndMessage.CH6L7cYu.mjs → SignalAndMessage.Bb5PFX0N.mjs} +11 -22
- package/chunks/{UserTaskListeners.XXe5dC5I.mjs → UserTaskListeners.Bv3BDfEI.mjs} +45 -86
- package/chunks/configComponents.BDhlZU8F.mjs +23 -0
- package/chunks/confirmable-mixin.D9aKzKZ9.mjs +85 -0
- package/chunks/core.DJEgjQW6.mjs +54 -0
- package/chunks/dictionary.DqiP9x2m.mjs +25 -0
- package/chunks/dictionary.DsN-2ukC.mjs +70 -0
- package/chunks/form-input.B8z37eqj.mjs +31 -0
- package/chunks/form-item.D-H-wCPE.mjs +233 -0
- package/chunks/form-validate.CVarNHKX.mjs +12 -0
- package/chunks/helper.BiMLcEEk.mjs +41 -0
- package/chunks/index.9OxHjTIE.mjs +16 -0
- package/chunks/{index.MAFc4eFi.mjs → index.d3MV3Wq2.mjs} +43 -47
- package/chunks/sub-table-plus-props.BVsD71hT.mjs +30 -0
- package/chunks/{tab-mixin.CVr9bZtn.mjs → tab-mixin.BNK6dxLN.mjs} +1 -1
- package/chunks/utilSelf.Csq1766E.mjs +48 -0
- package/color-picker/index.mjs +19 -37
- package/comment/style.css +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/style.css +1 -1
- package/count-up/index.mjs +13 -24
- package/custom-scrollbar/index.mjs +1 -2
- package/data-operatext/style.css +1 -1
- package/data-panel/style.css +1 -1
- package/data-pay/style.css +1 -1
- package/data-price/style.css +1 -1
- package/data-rotate/style.css +1 -1
- package/data-table-picker/index.mjs +1 -1
- package/data-tabs/style.css +1 -1
- package/dialog-form/index.mjs +16 -28
- package/dynamic-table/style.css +1 -1
- package/easy-popup/index.mjs +22 -40
- package/easy-popup/style.css +1 -1
- package/editable-tree/index.mjs +203 -250
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +30 -52
- package/element-dialog/style.css +1 -1
- package/flex-column/index.mjs +13 -25
- package/flex-item/index.mjs +15 -27
- package/flex-row/index.mjs +13 -25
- package/flow-designer/index.mjs +343 -374
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +64 -91
- package/form-block/index.mjs +33 -26
- package/form-card/index.mjs +25 -0
- package/form-cascader/index.mjs +70 -67
- package/form-checkbox/index.mjs +71 -0
- package/form-checkbox-group/index.mjs +33 -53
- package/form-date-picker/index.mjs +44 -73
- package/form-holder/index.mjs +54 -40
- package/form-holder/style.css +1 -0
- package/form-input/index.mjs +62 -40
- package/form-input-cron-expression/index.mjs +77 -0
- package/form-input-cron-expression/style.css +1 -0
- package/form-input-email/index.mjs +21 -33
- package/form-input-id-card/index.mjs +25 -38
- package/form-input-number/index.mjs +39 -42
- package/form-input-number/style.css +1 -1
- package/form-input-phone-number/index.mjs +26 -37
- package/form-input-tag/index.mjs +32 -34
- package/form-input-time/index.mjs +22 -37
- package/form-item/index.mjs +109 -101
- package/form-item/style.css +1 -1
- package/form-item-config-provider/index.mjs +18 -10
- package/form-item-group/index.mjs +73 -69
- package/form-item-group/style.css +1 -1
- package/form-radio-group/index.mjs +41 -36
- package/form-radio-group/style.css +1 -1
- package/form-select/index.mjs +142 -75
- package/form-select/style.css +1 -0
- package/form-switch/index.mjs +29 -34
- package/form-table/index.mjs +85 -0
- package/form-table-plus/index.mjs +109 -0
- package/form-textarea/index.mjs +23 -35
- package/form-tree-select/index.mjs +72 -0
- package/form-tree-select/style.css +1 -0
- package/form-tree-select-multiple/index.mjs +78 -0
- package/form-view/index.mjs +37 -69
- package/form-view/style.css +1 -1
- package/fy-curd/index.mjs +131 -140
- package/fy-curd/style.css +1 -1
- package/fy-draggable/index.mjs +16 -26
- package/fy-draggable/style.css +1 -1
- package/fy-dynamic/index.mjs +48 -57
- package/fy-empty/style.css +1 -1
- package/fy-form/style.css +1 -1
- package/fy-form-design/index.mjs +314 -339
- package/fy-form-design/style.css +1 -1
- package/fy-input-map/index.mjs +40 -50
- package/fy-input-map/style.css +1 -1
- package/fy-input-table/index.mjs +31 -41
- package/fy-u-editor/index.mjs +77 -103
- package/fy-upload/style.css +1 -1
- package/highlight-j-s/style.css +1 -1
- package/image-cropper/index.mjs +14 -65
- package/image-preview/index.mjs +17 -45
- package/image-preview/style.css +1 -1
- package/image-viewer/style.css +1 -1
- package/index.mjs +666 -496
- package/input-number/index.mjs +64 -9
- package/keyboard/style.css +1 -1
- package/monaco-editor/index.mjs +43 -71
- package/name-avatar/style.css +1 -1
- package/package.json +5 -4
- package/page-index/index.mjs +30 -54
- package/page-index-top/index.mjs +25 -47
- package/pageable-table/index.mjs +385 -218
- package/pageable-table/style.css +1 -1
- package/pageable-view/index.mjs +56 -95
- package/photo-swipe/index.mjs +51 -74
- package/picker-table-view/index.mjs +117 -0
- package/present-view/index.mjs +43 -77
- package/present-view/style.css +1 -1
- package/resize-observer/index.mjs +1 -1
- package/resize-observer/style.css +1 -1
- package/search/style.css +1 -1
- package/search-popover/index.mjs +28 -48
- package/search-popover/style.css +1 -1
- package/sign/index.mjs +1 -1
- package/sign-panel/style.css +1 -1
- package/skeleton-panel/index.mjs +38 -0
- package/skeleton-panel/style.css +1 -0
- package/split-pane/index.mjs +31 -49
- package/split-pane/style.css +1 -1
- package/sub-table/index.mjs +206 -0
- package/sub-table/style.css +1 -0
- package/sub-table-plus/index.mjs +231 -0
- package/sub-table-plus/style.css +1 -0
- package/swiper/index.mjs +18 -38
- package/swiper/style.css +1 -1
- package/tab/index.mjs +1 -1
- package/tab/style.css +1 -1
- package/tab-item/index.mjs +2 -2
- package/table-column/index.mjs +166 -37
- package/table-column/style.css +1 -0
- package/table-view/index.mjs +177 -132
- package/table-view/style.css +1 -1
- package/tabs-view/index.mjs +104 -0
- package/tabs-view/style.css +1 -0
- package/tag-render/index.mjs +13 -24
- package/toolbar/index.mjs +115 -58
- package/toolbar/style.css +1 -1
- package/toolbar-button/index.mjs +92 -48
- package/vue-cron/index.mjs +47 -65
- package/vue-qr-code/index.mjs +14 -32
- package/vue-quill-editor/index.mjs +13 -24
- package/vue-tags-input/index.mjs +10 -21
- package/vue-tree-select/index.mjs +352 -393
- package/vue-tree-select/style.css +1 -1
- package/vue-video-player/index.mjs +34 -63
- package/watermark/index.mjs +21 -31
- package/web-types.json +9240 -3840
- package/x-input-tag/index.mjs +29 -61
- package/chunks/confirmable-mixin.D4LAArE5.mjs +0 -114
- package/chunks/form-input-mixin.BkKiqJhi.mjs +0 -24
- package/chunks/form-item-mixin.CG4ZwzMC.mjs +0 -140
- package/chunks/input-number-mixin.CzjtGf2n.mjs +0 -60
- package/chunks/utilSelf.CRqpl0Cz.mjs +0 -56
- package/toolbar-button/style.css +0 -1
- /package/chunks/{form-pick-mixin.BFTIVn_i.mjs → form-pick.BFTIVn_i.mjs} +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { f as n } from "../chunks/form-input.B8z37eqj.mjs";
|
|
2
|
+
import s from "element-ui/lib/input";
|
|
3
|
+
import { v as a, c as l, n as u } from "../chunks/index.d3MV3Wq2.mjs";
|
|
4
|
+
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
const p = Object.keys(s.props).filter((o) => !["value", "placeholder", "disabled"].includes(o)), c = {
|
|
6
|
+
name: "FormInputCronExpression",
|
|
7
|
+
mixins: [n],
|
|
8
|
+
props: {
|
|
9
|
+
value: [String, Number],
|
|
10
|
+
readonlyGrey: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
default: !0
|
|
13
|
+
},
|
|
14
|
+
maxLength: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "255"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
cronPopover: !1,
|
|
22
|
+
isValidValue: !1
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
computed: {
|
|
26
|
+
inputProps() {
|
|
27
|
+
return l({ ...u(this.$attrs), ...this.$props }, p);
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
watch: {
|
|
31
|
+
async value(o) {
|
|
32
|
+
this.isValidValue = await a(this.prop, o, this.computeRules);
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
methods: {
|
|
36
|
+
emitInput(o) {
|
|
37
|
+
this.$emit("input", o);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var d = function() {
|
|
42
|
+
var e = this, r = e._self._c;
|
|
43
|
+
return r("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled, "validate-status": "" }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
44
|
+
return [e._t("default", function() {
|
|
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) {
|
|
47
|
+
e.cronPopover = !0;
|
|
48
|
+
} }, scopedSlots: e._u([{ key: "append", fn: function() {
|
|
49
|
+
return [e._t("append")];
|
|
50
|
+
}, proxy: !0 }], null, !0) }, "ElInput", e.inputProps, !1), e.listeners))];
|
|
51
|
+
}, proxy: !0 }]), model: { value: e.cronPopover, callback: function(t) {
|
|
52
|
+
e.cronPopover = t;
|
|
53
|
+
}, expression: "cronPopover" } }, [e.cronPopover ? r("VueCron", { attrs: { i18n: "cn", expression: e.value }, on: { change: e.emitInput, close: function(t) {
|
|
54
|
+
e.cronPopover = !1;
|
|
55
|
+
} } }) : e._e()], 1)], 1), e.isValidValue && e.$slots.warn ? r("div", { staticClass: "el-form-item__warn" }, [e._t("warn")], 2) : e._e()];
|
|
56
|
+
})];
|
|
57
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: t }) {
|
|
58
|
+
return [e.$scopedSlots.error && e.$scopedSlots.error(t) ? r("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
|
|
59
|
+
return [e._v(e._s(t))];
|
|
60
|
+
}, { error: t })], 2) : e._e()];
|
|
61
|
+
} }, { key: "label", fn: function() {
|
|
62
|
+
return [e._t("label")];
|
|
63
|
+
}, proxy: !0 }, { key: "tips", fn: function() {
|
|
64
|
+
return [e._t("tips")];
|
|
65
|
+
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
66
|
+
}, f = [], m = /* @__PURE__ */ i(
|
|
67
|
+
c,
|
|
68
|
+
d,
|
|
69
|
+
f,
|
|
70
|
+
!1,
|
|
71
|
+
null,
|
|
72
|
+
null
|
|
73
|
+
);
|
|
74
|
+
const x = m.exports;
|
|
75
|
+
export {
|
|
76
|
+
x as default
|
|
77
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.cron-popover{max-height:590px;overflow-y:auto}.cron-popover .el-input__icon.el-input__validateIcon{display:none}
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var i = Object.prototype.hasOwnProperty, p = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var s = (t, e, r) => e in t ? u(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r, o = (t, e) => {
|
|
5
|
-
for (var r in e || (e = {}))
|
|
6
|
-
i.call(e, r) && s(t, r, e[r]);
|
|
7
|
-
if (l)
|
|
8
|
-
for (var r of l(e))
|
|
9
|
-
p.call(e, r) && s(t, r, e[r]);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { f as m } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
|
|
1
|
+
import { f as o } from "../chunks/form-input.B8z37eqj.mjs";
|
|
2
|
+
import { v as l } from "../chunks/form-validate.CVarNHKX.mjs";
|
|
13
3
|
import a from "element-ui/lib/input";
|
|
14
|
-
import {
|
|
15
|
-
import { n as
|
|
16
|
-
const
|
|
4
|
+
import { c as s, n as u } from "../chunks/index.d3MV3Wq2.mjs";
|
|
5
|
+
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const p = Object.keys(a.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), m = {
|
|
17
7
|
name: "FormInputEmail",
|
|
18
|
-
mixins: [
|
|
8
|
+
mixins: [o],
|
|
19
9
|
props: {
|
|
20
|
-
value:
|
|
21
|
-
type: String
|
|
22
|
-
},
|
|
10
|
+
value: String,
|
|
23
11
|
maxLength: {
|
|
24
12
|
type: String,
|
|
25
13
|
default: "200"
|
|
@@ -27,38 +15,38 @@ const _ = (t, e, r) => e && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-
|
|
|
27
15
|
},
|
|
28
16
|
computed: {
|
|
29
17
|
inputProps() {
|
|
30
|
-
return
|
|
18
|
+
return s({ ...u(this.$attrs), ...this.$props }, p);
|
|
31
19
|
}
|
|
32
20
|
},
|
|
33
21
|
methods: {
|
|
34
22
|
getRules() {
|
|
35
23
|
return [
|
|
36
24
|
{
|
|
37
|
-
validator:
|
|
25
|
+
validator: l,
|
|
38
26
|
message: "请输入正确的邮箱!"
|
|
39
27
|
}
|
|
40
28
|
];
|
|
41
29
|
}
|
|
42
30
|
}
|
|
43
31
|
};
|
|
44
|
-
var
|
|
45
|
-
var e = this,
|
|
46
|
-
return
|
|
47
|
-
return [
|
|
48
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
49
|
-
return [e._t("error", null, { error:
|
|
32
|
+
var d = function() {
|
|
33
|
+
var e = this, n = e._self._c;
|
|
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))];
|
|
36
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
37
|
+
return [e._t("error", null, { error: r })];
|
|
50
38
|
} }, { key: "label", fn: function() {
|
|
51
39
|
return [e._t("label")];
|
|
52
40
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
41
|
+
}, f = [], c = /* @__PURE__ */ i(
|
|
42
|
+
m,
|
|
43
|
+
d,
|
|
44
|
+
f,
|
|
57
45
|
!1,
|
|
58
46
|
null,
|
|
59
47
|
null
|
|
60
48
|
);
|
|
61
|
-
const
|
|
49
|
+
const I = c.exports;
|
|
62
50
|
export {
|
|
63
|
-
|
|
51
|
+
I as default
|
|
64
52
|
};
|
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (s)
|
|
8
|
-
for (var r of s(e))
|
|
9
|
-
d.call(e, r) && a(t, r, e[r]);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { f as m } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
|
|
13
|
-
import { validateIdCard as l } from "@web-utils/core";
|
|
14
|
-
import i from "element-ui/lib/input";
|
|
15
|
-
import { d as f, n as c } from "../chunks/index.MAFc4eFi.mjs";
|
|
16
|
-
import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
17
|
-
const v = Object.keys(i.props || i.default.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), y = {
|
|
1
|
+
import { f as s } from "../chunks/form-input.B8z37eqj.mjs";
|
|
2
|
+
import { validateIdCard as n } from "@web-utils/core";
|
|
3
|
+
import a from "element-ui/lib/input";
|
|
4
|
+
import { c as l, n as i } from "../chunks/index.d3MV3Wq2.mjs";
|
|
5
|
+
import { n as u } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const p = Object.keys(a.props).filter((o) => !["value", "placeholder", "disabled"].includes(o)), m = {
|
|
18
7
|
name: "FormInputIdCard",
|
|
19
|
-
mixins: [
|
|
8
|
+
mixins: [s],
|
|
20
9
|
props: {
|
|
21
|
-
value:
|
|
22
|
-
type: String
|
|
23
|
-
},
|
|
10
|
+
value: String,
|
|
24
11
|
maxLength: {
|
|
25
12
|
type: String,
|
|
26
13
|
default: "200"
|
|
@@ -28,41 +15,41 @@ const v = Object.keys(i.props || i.default.props).filter((t) => !["value", "plac
|
|
|
28
15
|
},
|
|
29
16
|
computed: {
|
|
30
17
|
inputProps() {
|
|
31
|
-
return
|
|
18
|
+
return l({ ...i(this.$attrs), ...this.$props }, p);
|
|
32
19
|
}
|
|
33
20
|
},
|
|
34
21
|
methods: {
|
|
35
|
-
validateIdCard:
|
|
22
|
+
validateIdCard: n,
|
|
36
23
|
getRules() {
|
|
37
24
|
return [
|
|
38
25
|
{
|
|
39
|
-
validator:
|
|
26
|
+
validator: n,
|
|
40
27
|
message: "请输入正确的身份证号码!"
|
|
41
28
|
}
|
|
42
29
|
];
|
|
43
30
|
}
|
|
44
31
|
}
|
|
45
32
|
};
|
|
46
|
-
var
|
|
47
|
-
var e = this,
|
|
48
|
-
return
|
|
49
|
-
return [
|
|
50
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
51
|
-
return [e.$scopedSlots.error && e.$scopedSlots.error(
|
|
52
|
-
return [e._v(
|
|
53
|
-
}, { error:
|
|
33
|
+
var d = function() {
|
|
34
|
+
var e = this, t = e._self._c;
|
|
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()];
|
|
37
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
38
|
+
return [e.$scopedSlots.error && e.$scopedSlots.error(r) ? t("div", { staticClass: "el-form-item__error" }, [e._t("error", function() {
|
|
39
|
+
return [e._v(e._s(r))];
|
|
40
|
+
}, { error: r })], 2) : e._e()];
|
|
54
41
|
} }, { key: "label", fn: function() {
|
|
55
42
|
return [e._t("label")];
|
|
56
43
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
44
|
+
}, c = [], f = /* @__PURE__ */ u(
|
|
45
|
+
m,
|
|
46
|
+
d,
|
|
47
|
+
c,
|
|
61
48
|
!1,
|
|
62
49
|
null,
|
|
63
50
|
null
|
|
64
51
|
);
|
|
65
|
-
const
|
|
52
|
+
const h = f.exports;
|
|
66
53
|
export {
|
|
67
|
-
|
|
54
|
+
h as default
|
|
68
55
|
};
|
|
@@ -1,25 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
import { f as l } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
|
|
13
|
-
import { d as m, n as f } from "../chunks/index.MAFc4eFi.mjs";
|
|
14
|
-
import { i as c } from "../chunks/input-number-mixin.CzjtGf2n.mjs";
|
|
15
|
-
import { n as d } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
16
|
-
const _ = Object.keys(c.props).filter((r) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(r)), y = {
|
|
1
|
+
import { f as p } from "../chunks/form-input.B8z37eqj.mjs";
|
|
2
|
+
import u from "../input-number/index.mjs";
|
|
3
|
+
import { c as s, n as l } from "../chunks/index.d3MV3Wq2.mjs";
|
|
4
|
+
import { n as a } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
5
|
+
let t = {};
|
|
6
|
+
const i = u.mixins;
|
|
7
|
+
i && [...i, u].forEach((e) => {
|
|
8
|
+
e.props && (t = { ...t, ...e.props });
|
|
9
|
+
});
|
|
10
|
+
const m = Object.keys(t).filter((e) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(e)), f = {
|
|
17
11
|
name: "FormInputNumber",
|
|
18
|
-
mixins: [
|
|
12
|
+
mixins: [p],
|
|
19
13
|
props: {
|
|
20
|
-
value:
|
|
21
|
-
type: [String, Number]
|
|
22
|
-
},
|
|
14
|
+
value: [Number, String],
|
|
23
15
|
max: {
|
|
24
16
|
type: Number,
|
|
25
17
|
default: 1 / 0
|
|
@@ -30,43 +22,48 @@ const _ = Object.keys(c.props).filter((r) => !["value", "placeholder", "disabled
|
|
|
30
22
|
},
|
|
31
23
|
precision: {
|
|
32
24
|
type: Number,
|
|
33
|
-
validator(
|
|
34
|
-
return
|
|
25
|
+
validator(e) {
|
|
26
|
+
return e >= 0 && e === parseInt(e, 10);
|
|
35
27
|
}
|
|
36
|
-
}
|
|
28
|
+
},
|
|
29
|
+
controls: Boolean,
|
|
30
|
+
controlsPosition: String,
|
|
31
|
+
append: String
|
|
37
32
|
},
|
|
38
33
|
computed: {
|
|
39
34
|
inputProps() {
|
|
40
|
-
return
|
|
35
|
+
return s({ ...l(this.$attrs), ...this.$props }, m);
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
};
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
return
|
|
47
|
-
return [
|
|
48
|
-
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() {
|
|
43
|
+
return [r._t("append", function() {
|
|
44
|
+
return [r.append ? [r._v(" " + r._s(r.append) + " ")] : r._e()];
|
|
45
|
+
})];
|
|
49
46
|
}, proxy: !0 }, { key: "prefix", fn: function() {
|
|
50
|
-
return [
|
|
47
|
+
return [r._t("prefix")];
|
|
51
48
|
}, proxy: !0 }, { key: "prepend", fn: function() {
|
|
52
|
-
return [
|
|
49
|
+
return [r._t("prepend")];
|
|
53
50
|
}, proxy: !0 }, { key: "suffix", fn: function() {
|
|
54
|
-
return [
|
|
55
|
-
}, proxy: !0 }], null, !0) }, "InputNumber",
|
|
51
|
+
return [r._t("suffix")];
|
|
52
|
+
}, proxy: !0 }], null, !0) }, "InputNumber", r.inputProps, !1), r.listeners))];
|
|
56
53
|
}, proxy: !0 }, { key: "error", fn: function({ error: n }) {
|
|
57
|
-
return [
|
|
54
|
+
return [r._t("error", null, { error: n })];
|
|
58
55
|
} }, { key: "label", fn: function() {
|
|
59
|
-
return [
|
|
60
|
-
}, proxy: !0 }], null, !0) }, "FormItem",
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
56
|
+
return [r._t("label")];
|
|
57
|
+
}, proxy: !0 }], null, !0) }, "FormItem", r.formItemProps, !1));
|
|
58
|
+
}, d = [], _ = /* @__PURE__ */ a(
|
|
59
|
+
f,
|
|
60
|
+
c,
|
|
61
|
+
d,
|
|
65
62
|
!1,
|
|
66
63
|
null,
|
|
67
64
|
null
|
|
68
65
|
);
|
|
69
|
-
const
|
|
66
|
+
const v = _.exports;
|
|
70
67
|
export {
|
|
71
|
-
|
|
68
|
+
v as default
|
|
72
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-input-number.el-input-number{width:100%}.form-input-number.el-input-number .el-input__inner{text-align:left}
|
|
1
|
+
.form-input-number.el-input-number--mini{line-height:28px}.form-input-number.el-input-number{width:100%}.form-input-number.el-input-number .el-input__inner{text-align:left}
|
|
@@ -1,26 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (o)
|
|
8
|
-
for (var r of o(e))
|
|
9
|
-
p.call(e, r) && s(t, r, e[r]);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { f as m } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
|
|
13
|
-
import { validatePhoneNum as d } from "@web-utils/core";
|
|
14
|
-
import { d as f, n as c } from "../chunks/index.MAFc4eFi.mjs";
|
|
15
|
-
import l from "element-ui/lib/input";
|
|
16
|
-
import { n as _ } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
17
|
-
const h = Object.keys(l.props || l.default.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), y = {
|
|
1
|
+
import { f as o } from "../chunks/form-input.B8z37eqj.mjs";
|
|
2
|
+
import { validatePhoneNum as s } from "@web-utils/core";
|
|
3
|
+
import { c as l, n as u } from "../chunks/index.d3MV3Wq2.mjs";
|
|
4
|
+
import a from "element-ui/lib/input";
|
|
5
|
+
import { n as i } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
6
|
+
const p = Object.keys(a.props).filter((r) => !["value", "placeholder", "disabled"].includes(r)), m = {
|
|
18
7
|
name: "FormInputPhoneNumber",
|
|
19
|
-
mixins: [
|
|
8
|
+
mixins: [o],
|
|
20
9
|
props: {
|
|
21
|
-
value:
|
|
22
|
-
type: String
|
|
23
|
-
},
|
|
10
|
+
value: String,
|
|
24
11
|
maxLength: {
|
|
25
12
|
type: String,
|
|
26
13
|
default: "200"
|
|
@@ -28,41 +15,43 @@ const h = Object.keys(l.props || l.default.props).filter((t) => !["value", "plac
|
|
|
28
15
|
},
|
|
29
16
|
computed: {
|
|
30
17
|
inputProps() {
|
|
31
|
-
return
|
|
18
|
+
return l({ ...u(this.$attrs), ...this.$props }, p);
|
|
32
19
|
}
|
|
33
20
|
},
|
|
34
21
|
methods: {
|
|
35
22
|
getRules() {
|
|
36
23
|
return [
|
|
37
24
|
{
|
|
38
|
-
validator:
|
|
25
|
+
validator: (r, e, t) => {
|
|
26
|
+
e && e.indexOf("*") > -1 && e.length === 11 ? t() : s(r, e, t);
|
|
27
|
+
},
|
|
39
28
|
message: "请输入正确的手机号码!"
|
|
40
29
|
}
|
|
41
30
|
];
|
|
42
31
|
},
|
|
43
|
-
emitInput(
|
|
44
|
-
this.$emit("input",
|
|
32
|
+
emitInput(r) {
|
|
33
|
+
this.$emit("input", r);
|
|
45
34
|
}
|
|
46
35
|
}
|
|
47
36
|
};
|
|
48
|
-
var
|
|
49
|
-
var e = this,
|
|
50
|
-
return
|
|
51
|
-
return [
|
|
52
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
53
|
-
return [e._t("error", null, { error:
|
|
37
|
+
var d = function() {
|
|
38
|
+
var e = this, t = e._self._c;
|
|
39
|
+
return t("FormItem", e._b({ attrs: { rules: e.computeRules, disabled: e.inputDisabled }, scopedSlots: e._u([{ key: "default", fn: function() {
|
|
40
|
+
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: 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 })];
|
|
54
43
|
} }, { key: "label", fn: function() {
|
|
55
44
|
return [e._t("label")];
|
|
56
45
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
46
|
+
}, f = [], c = /* @__PURE__ */ i(
|
|
47
|
+
m,
|
|
48
|
+
d,
|
|
49
|
+
f,
|
|
61
50
|
!1,
|
|
62
51
|
null,
|
|
63
52
|
null
|
|
64
53
|
);
|
|
65
|
-
const
|
|
54
|
+
const g = c.exports;
|
|
66
55
|
export {
|
|
67
|
-
|
|
56
|
+
g as default
|
|
68
57
|
};
|
package/form-input-tag/index.mjs
CHANGED
|
@@ -1,25 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
p.call(e, r) && l(t, r, e[r]);
|
|
7
|
-
if (a)
|
|
8
|
-
for (var r of a(e))
|
|
9
|
-
i.call(e, r) && l(t, r, e[r]);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { f as m } from "../chunks/form-input-mixin.BkKiqJhi.mjs";
|
|
13
|
-
import { d, n as c } from "../chunks/index.MAFc4eFi.mjs";
|
|
14
|
-
import s from "../x-input-tag/index.mjs";
|
|
15
|
-
import "../x-input-tag/style.css";
|
|
16
|
-
import { n as f } from "../chunks/_plugin-vue2_normalizer.CeySl7Fu.mjs";
|
|
17
|
-
const _ = Object.keys(s.props).filter((t) => !["value", "placeholder", "disabled"].includes(t)), b = {
|
|
1
|
+
import { f as a } from "../chunks/form-input.B8z37eqj.mjs";
|
|
2
|
+
import { c as n, n as l } from "../chunks/index.d3MV3Wq2.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 = {
|
|
18
6
|
name: "FormInputTag",
|
|
19
|
-
|
|
20
|
-
XInputTag: s
|
|
21
|
-
},
|
|
22
|
-
mixins: [m],
|
|
7
|
+
mixins: [a],
|
|
23
8
|
props: {
|
|
24
9
|
value: [Array, String],
|
|
25
10
|
block: {
|
|
@@ -33,32 +18,45 @@ const _ = Object.keys(s.props).filter((t) => !["value", "placeholder", "disabled
|
|
|
33
18
|
objectMode: {
|
|
34
19
|
type: Boolean,
|
|
35
20
|
default: !0
|
|
21
|
+
},
|
|
22
|
+
separator: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: ","
|
|
25
|
+
},
|
|
26
|
+
boundarySelector: {
|
|
27
|
+
type: String,
|
|
28
|
+
default: ".form-scroller"
|
|
29
|
+
},
|
|
30
|
+
query: Function,
|
|
31
|
+
type: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "标签"
|
|
36
34
|
}
|
|
37
35
|
},
|
|
38
36
|
computed: {
|
|
39
37
|
inputProps() {
|
|
40
|
-
return
|
|
38
|
+
return n({ ...l(this.$attrs), ...this.$props }, p);
|
|
41
39
|
}
|
|
42
40
|
}
|
|
43
41
|
};
|
|
44
|
-
var
|
|
45
|
-
var e = this,
|
|
46
|
-
return
|
|
47
|
-
return [
|
|
48
|
-
}, proxy: !0 }, { key: "error", fn: function({ error:
|
|
49
|
-
return [e._t("error", null, { error:
|
|
42
|
+
var d = function() {
|
|
43
|
+
var e = this, o = e._self._c;
|
|
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))];
|
|
46
|
+
}, proxy: !0 }, { key: "error", fn: function({ error: r }) {
|
|
47
|
+
return [e._t("error", null, { error: r })];
|
|
50
48
|
} }, { key: "label", fn: function() {
|
|
51
49
|
return [e._t("label")];
|
|
52
50
|
}, proxy: !0 }], null, !0) }, "FormItem", e.formItemProps, !1));
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
}, c = [], f = /* @__PURE__ */ s(
|
|
52
|
+
i,
|
|
53
|
+
d,
|
|
54
|
+
c,
|
|
57
55
|
!1,
|
|
58
56
|
null,
|
|
59
57
|
null
|
|
60
58
|
);
|
|
61
|
-
const
|
|
59
|
+
const g = f.exports;
|
|
62
60
|
export {
|
|
63
|
-
|
|
61
|
+
g as default
|
|
64
62
|
};
|