@web-utils/component 2.70.0 → 3.0.1
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 +16 -14
- package/awesome-button/index.mjs +30 -29
- package/card/index.mjs +42 -40
- package/carousel/index.mjs +27 -25
- package/chat/index.mjs +70 -59
- package/chunk-file-uploader/index.mjs +594 -35
- package/chunk-file-uploader/style.css +1 -1
- package/chunks/CountUp.f1a19f35.mjs +124 -0
- package/chunks/CountUp.vue_vue_type_template_lang.1f68c96e.mjs +8 -0
- package/chunks/EasyPopup.vue_vue_type_style_index_0_lang.89350bda.mjs +32 -0
- package/chunks/EditableTree.vue_vue_type_style_index_0_lang.5dba9f89.mjs +356 -0
- package/chunks/ElementDialog.d8f3105c.mjs +211 -0
- package/chunks/ElementDialog.vue_vue_type_style_index_0_lang.57cb8e07.mjs +95 -0
- package/chunks/EmptyView.e2430422.mjs +51 -0
- package/chunks/EmptyView.vue_vue_type_style_index_0_lang.ffa84770.mjs +23 -0
- package/chunks/FlowNode.vue_vue_type_template_lang.662bdcfa.mjs +37 -0
- package/chunks/FormInput.vue_vue_type_template_lang.3cb79386.mjs +65 -0
- package/chunks/FormItem.2920ac0c.mjs +45 -0
- package/chunks/FormItem.vue_vue_type_style_index_0_lang.970bd712.mjs +258 -0
- package/chunks/FormItemGroup.41daddb6.mjs +64 -0
- package/chunks/FormItemGroup.vue_vue_type_style_index_0_lang.b588a8ea.mjs +155 -0
- package/chunks/FyCurd.8acd2983.mjs +548 -0
- package/chunks/FyCurd.vue_vue_type_style_index_0_lang.4fbd4b30.mjs +2945 -0
- package/chunks/FyDate.vue_vue_type_style_index_0_lang.429c03e3.mjs +47 -0
- package/chunks/FyDynamic.vue_vue_type_style_index_0_lang.304417ce.mjs +151 -0
- package/chunks/FyEmpty.vue_vue_type_style_index_0_lang.fc8bd24c.mjs +22 -0
- package/chunks/FyForm.0294e494.mjs +439 -0
- package/chunks/FyForm.vue_vue_type_style_index_0_lang.6e64daee.mjs +737 -0
- package/chunks/FyInput.vue_vue_type_template_lang.d2c56811.mjs +93 -0
- package/chunks/FyInputColor.vue_vue_type_template_lang.6eca0ddd.mjs +56 -0
- package/chunks/FyInputIcon.vue_vue_type_style_index_0_lang.11a6a221.mjs +158 -0
- package/chunks/FyRate.vue_vue_type_style_index_0_lang.82174185.mjs +39 -0
- package/chunks/FySelect.vue_vue_type_style_index_0_lang.5f0f3244.mjs +102 -0
- package/chunks/FyTabs.vue_vue_type_template_lang.66af5ac9.mjs +41 -0
- package/chunks/HighlightJS.vue_vue_type_style_index_0_lang.fefeaa3b.mjs +15 -0
- package/chunks/IconTemp.42c48e1f.mjs +32 -0
- package/chunks/IconTemp.vue_vue_type_style_index_0_lang.a0777b31.mjs +23 -0
- package/chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs +172 -0
- package/chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs +23 -0
- package/chunks/NavBar.vue_vue_type_style_index_0_lang.e21b57f3.mjs +21 -0
- package/chunks/Page.81f4b8d9.mjs +32 -0
- package/chunks/Page.vue_vue_type_style_index_0_lang.cb4f9bf2.mjs +13 -0
- package/chunks/PageHeader.vue_vue_type_style_index_0_lang.3bcca5aa.mjs +26 -0
- package/chunks/PageSkeleton.vue_vue_type_style_index_0_lang.8621381f.mjs +88 -0
- package/chunks/PageableTable.333cbdc1.mjs +335 -0
- package/chunks/PageableTable.vue_vue_type_style_index_0_lang.fd89fb43.mjs +148 -0
- package/chunks/ResizeObserver.60f728f0.mjs +54 -0
- package/chunks/ResizeObserver.vue_vue_type_style_index_0_lang.7079029c.mjs +13 -0
- package/chunks/TableColumn.8503272e.mjs +106 -0
- package/chunks/Toolbar.5c539dbb.mjs +24 -0
- package/chunks/Toolbar.vue_vue_type_style_index_0_lang.7594243c.mjs +275 -0
- package/chunks/ToolbarButton.vue_vue_type_style_index_0_lang.e2cb14ba.mjs +31 -0
- package/chunks/XInputTag.vue_vue_type_style_index_0_lang.7ad045b3.mjs +74 -0
- package/chunks/confirmable-mixin.26e1d0e0.mjs +197 -0
- package/chunks/{dataformat.f995e2f9.mjs → dataformat.816df805.mjs} +5 -5
- package/chunks/{dic.eaac0823.mjs → dic.3b4ba802.mjs} +40 -40
- package/chunks/{event.b5d855dd.mjs → event.4377230d.mjs} +2 -2
- package/chunks/{index.57f871af.mjs → index.d91bd77a.mjs} +7 -7
- package/chunks/{init.47f219b4.mjs → init.f0a03127.mjs} +2 -2
- package/chunks/{util.ae730cde.mjs → util.7844e2c2.mjs} +21 -21
- package/color-picker/index.mjs +200 -32
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/count-up/index.mjs +14 -17
- package/data-box/index.mjs +36 -33
- package/data-card/index.mjs +35 -33
- package/data-cardtext/index.mjs +29 -27
- package/data-display/index.mjs +37 -34
- package/data-icons/index.mjs +32 -29
- package/data-imgtext/index.mjs +30 -27
- package/data-operatext/index.mjs +41 -39
- package/data-panel/index.mjs +39 -36
- package/data-pay/index.mjs +26 -22
- package/data-price/index.mjs +34 -32
- package/data-progress/index.mjs +32 -28
- package/data-rotate/index.mjs +38 -35
- package/data-table-picker/index.mjs +25 -22
- package/data-tabs/index.mjs +35 -32
- package/dialog-form/index.mjs +41 -32
- package/dynamic-table/index.mjs +47 -42
- package/easy-popup/index.mjs +29 -56
- package/editable-progress/index.mjs +16 -14
- package/editable-tree/index.mjs +129 -476
- package/egd-collapse-item/index.mjs +1 -2
- package/element-dialog/index.mjs +37 -126
- package/empty-view/index.mjs +13 -31
- 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 +105 -40
- package/flow-designer/index.mjs +1190 -1114
- package/flow-node/index.mjs +15 -47
- package/flow-viewer/index.mjs +167 -78
- package/form-block/index.mjs +24 -22
- package/form-cascader/index.mjs +29 -29
- package/form-checkbox-group/index.mjs +76 -31
- package/form-date-picker/index.mjs +21 -20
- package/form-holder/index.mjs +16 -15
- package/form-input/index.mjs +30 -88
- package/form-input-email/index.mjs +28 -28
- package/form-input-id-card/index.mjs +37 -37
- package/form-input-number/index.mjs +219 -59
- package/form-input-phone-number/index.mjs +25 -25
- package/form-input-tag/index.mjs +160 -38
- package/form-input-time/index.mjs +23 -23
- package/form-item/index.mjs +15 -144
- package/form-item-group/index.mjs +15 -163
- package/form-radio-group/index.mjs +39 -38
- package/form-select/index.mjs +33 -32
- package/form-switch/index.mjs +26 -26
- package/form-textarea/index.mjs +26 -26
- package/form-view/index.mjs +46 -42
- package/fy-array/index.mjs +65 -61
- package/fy-cascader/index.mjs +14 -13
- package/fy-checkbox/index.mjs +37 -32
- package/fy-code/index.mjs +11 -14
- package/fy-curd/index.mjs +206 -2795
- package/fy-date/index.mjs +16 -57
- package/fy-draggable/index.mjs +21 -20
- package/fy-dynamic/index.mjs +64 -207
- package/fy-empty/index.mjs +12 -29
- package/fy-form/index.mjs +178 -732
- package/fy-form-design/index.mjs +1738 -1179
- package/fy-input/index.mjs +15 -101
- package/fy-input-color/index.mjs +17 -66
- package/fy-input-icon/index.mjs +21 -116
- package/fy-input-map/index.mjs +27 -24
- package/fy-input-number/index.mjs +23 -22
- package/fy-input-table/index.mjs +22 -18
- package/fy-input-tree/index.mjs +32 -28
- package/fy-progress/index.mjs +24 -23
- package/fy-radio/index.mjs +23 -18
- package/fy-rate/index.mjs +16 -49
- package/fy-select/index.mjs +29 -122
- package/fy-slider/index.mjs +18 -17
- package/fy-switch/index.mjs +21 -20
- package/fy-tabs/index.mjs +14 -48
- package/fy-time/index.mjs +20 -14
- package/fy-title/index.mjs +1 -1
- package/fy-tree/index.mjs +26 -20
- package/fy-u-editor/index.mjs +1 -1
- package/fy-upload/index.mjs +76 -74
- package/guide-steps/index.mjs +24 -22
- package/highlight-j-s/index.mjs +19 -29
- package/icon-temp/index.mjs +12 -30
- package/iframe-window/index.mjs +19 -18
- package/image-cropper/index.mjs +53 -51
- package/image-preview/index.mjs +27 -25
- package/input-number/index.mjs +63 -172
- package/input-number-range/index.mjs +24 -23
- package/license/index.mjs +1 -1
- package/loading-view/index.mjs +15 -33
- package/login/index.mjs +40 -35
- package/nav-bar/index.mjs +15 -30
- package/notice/index.mjs +19 -18
- package/package.json +1 -1
- package/page/index.mjs +12 -20
- package/page-header/index.mjs +13 -34
- package/page-index/index.mjs +34 -33
- package/page-index-top/index.mjs +100 -51
- package/page-skeleton/index.mjs +18 -35
- package/page-skeleton-new/index.mjs +16 -15
- package/pageable-table/index.mjs +85 -223
- package/pageable-view/index.mjs +34 -33
- package/present-view/index.mjs +75 -71
- package/record-video/index.mjs +1 -1
- package/resize-observer/index.mjs +21 -29
- package/search/index.mjs +29 -27
- package/search-popover/index.mjs +1 -1
- package/sign/index.mjs +1 -1
- package/split-pane/index.mjs +40 -45
- package/static-pageable-table/index.mjs +20 -18
- package/swiper/index.mjs +27 -25
- package/table-view/index.mjs +627 -89
- package/tag-render/index.mjs +21 -19
- package/text-ellipsis/index.mjs +13 -12
- package/tinymce-editor/index.mjs +73 -72
- package/toolbar/index.mjs +15 -208
- package/toolbar-button/index.mjs +32 -57
- package/verify/index.mjs +1 -1
- package/vue-cron/index.mjs +112 -104
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +51 -117
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- package/chunks/confirmable-mixin.817b542f.mjs +0 -116
- package/chunks/form-input-mixin.4632ad36.mjs +0 -24
- package/chunks/form-item-mixin.ad148e7b.mjs +0 -140
- package/chunks/input-number-mixin.41a066be.mjs +0 -60
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var m = Object.prototype.hasOwnProperty,
|
|
4
|
-
var
|
|
1
|
+
var _ = Object.defineProperty;
|
|
2
|
+
var a = Object.getOwnPropertySymbols;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, d = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var i = (r, e, t) => e in r ? _(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, s = (r, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
m.call(e, t) &&
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
6
|
+
m.call(e, t) && i(r, t, e[t]);
|
|
7
|
+
if (a)
|
|
8
|
+
for (var t of a(e))
|
|
9
|
+
d.call(e, t) && i(r, t, e[t]);
|
|
10
10
|
return r;
|
|
11
11
|
};
|
|
12
|
-
import { f } from "../chunks/
|
|
13
|
-
import { validateIdCard as
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import { n as
|
|
17
|
-
var
|
|
12
|
+
import { _ as c, f } from "../chunks/FormItem.2920ac0c.mjs";
|
|
13
|
+
import { validateIdCard as u } from "@web-utils/core";
|
|
14
|
+
import l from "element-ui/lib/input";
|
|
15
|
+
import { h as v, n as y } from "../chunks/index.d91bd77a.mjs";
|
|
16
|
+
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
|
+
var b = function() {
|
|
18
18
|
var r = this, e = r.$createElement, t = r._self._c || e;
|
|
19
|
-
return t(
|
|
19
|
+
return t(c, r._b({
|
|
20
20
|
attrs: {
|
|
21
21
|
rules: r.computeRules,
|
|
22
22
|
disabled: r.inputDisabled
|
|
@@ -24,7 +24,7 @@ var h = function() {
|
|
|
24
24
|
scopedSlots: r._u([{
|
|
25
25
|
key: "default",
|
|
26
26
|
fn: function() {
|
|
27
|
-
return [t(
|
|
27
|
+
return [t(l, r._g(r._b({
|
|
28
28
|
class: {
|
|
29
29
|
"is-readonly": r.readonly
|
|
30
30
|
},
|
|
@@ -36,8 +36,8 @@ var h = function() {
|
|
|
36
36
|
placeholder: r.computePlaceholder
|
|
37
37
|
},
|
|
38
38
|
on: {
|
|
39
|
-
input: function(
|
|
40
|
-
return r.$emit("input",
|
|
39
|
+
input: function(n) {
|
|
40
|
+
return r.$emit("input", n);
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}, "ElInput", r.inputProps, !1), r.listeners)), r.$slots.warn ? t("div", {
|
|
@@ -47,14 +47,14 @@ var h = function() {
|
|
|
47
47
|
proxy: !0
|
|
48
48
|
}, {
|
|
49
49
|
key: "error",
|
|
50
|
-
fn: function(
|
|
51
|
-
var
|
|
52
|
-
return [r.$scopedSlots.error && r.$scopedSlots.error(
|
|
50
|
+
fn: function(n) {
|
|
51
|
+
var o = n.error;
|
|
52
|
+
return [r.$scopedSlots.error && r.$scopedSlots.error(o) ? t("div", {
|
|
53
53
|
staticClass: "el-form-item__error"
|
|
54
54
|
}, [r._t("error", function() {
|
|
55
|
-
return [r._v(" " + r._s(
|
|
55
|
+
return [r._v(" " + r._s(o) + " ")];
|
|
56
56
|
}, {
|
|
57
|
-
error:
|
|
57
|
+
error: o
|
|
58
58
|
})], 2) : r._e()];
|
|
59
59
|
}
|
|
60
60
|
}, {
|
|
@@ -65,10 +65,10 @@ var h = function() {
|
|
|
65
65
|
proxy: !0
|
|
66
66
|
}], null, !0)
|
|
67
67
|
}, "FormItem", r.formItemProps, !1));
|
|
68
|
-
},
|
|
69
|
-
const
|
|
68
|
+
}, g = [];
|
|
69
|
+
const x = Object.keys(l.props || l.default.props).filter(
|
|
70
70
|
(r) => !["value", "placeholder", "disabled"].includes(r)
|
|
71
|
-
),
|
|
71
|
+
), I = {
|
|
72
72
|
name: "FormInputIdCard",
|
|
73
73
|
mixins: [f],
|
|
74
74
|
props: {
|
|
@@ -82,38 +82,38 @@ const b = Object.keys(u.props || u.default.props).filter(
|
|
|
82
82
|
},
|
|
83
83
|
computed: {
|
|
84
84
|
inputProps() {
|
|
85
|
-
return
|
|
85
|
+
return v(s(s({}, y(this.$attrs)), this.$props), x);
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
methods: {
|
|
89
|
-
validateIdCard:
|
|
89
|
+
validateIdCard: u,
|
|
90
90
|
getRules() {
|
|
91
91
|
return [
|
|
92
92
|
{
|
|
93
|
-
validator:
|
|
93
|
+
validator: u,
|
|
94
94
|
message: "请输入正确的身份证号码!"
|
|
95
95
|
}
|
|
96
96
|
];
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
}, p = {};
|
|
100
|
-
var
|
|
101
|
-
x,
|
|
102
|
-
h,
|
|
100
|
+
var $ = /* @__PURE__ */ h(
|
|
103
101
|
I,
|
|
102
|
+
b,
|
|
103
|
+
g,
|
|
104
104
|
!1,
|
|
105
|
-
|
|
105
|
+
C,
|
|
106
106
|
null,
|
|
107
107
|
null,
|
|
108
108
|
null
|
|
109
109
|
);
|
|
110
|
-
function
|
|
110
|
+
function C(r) {
|
|
111
111
|
for (let e in p)
|
|
112
112
|
this[e] = p[e];
|
|
113
113
|
}
|
|
114
|
-
const
|
|
115
|
-
return
|
|
114
|
+
const w = /* @__PURE__ */ function() {
|
|
115
|
+
return $.exports;
|
|
116
116
|
}();
|
|
117
117
|
export {
|
|
118
|
-
|
|
118
|
+
w as default
|
|
119
119
|
};
|
|
@@ -1,94 +1,254 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
for (var
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var
|
|
9
|
-
|
|
10
|
-
return
|
|
1
|
+
var h = Object.defineProperty;
|
|
2
|
+
var u = Object.getOwnPropertySymbols;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, f = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var o = (t, e, i) => e in t ? h(t, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : t[e] = i, s = (t, e) => {
|
|
5
|
+
for (var i in e || (e = {}))
|
|
6
|
+
m.call(e, i) && o(t, i, e[i]);
|
|
7
|
+
if (u)
|
|
8
|
+
for (var i of u(e))
|
|
9
|
+
f.call(e, i) && o(t, i, e[i]);
|
|
10
|
+
return t;
|
|
11
11
|
};
|
|
12
|
-
import { f } from "../chunks/
|
|
13
|
-
import {
|
|
14
|
-
import { i as
|
|
15
|
-
import
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
import { _ as d, f as _ } from "../chunks/FormItem.2920ac0c.mjs";
|
|
13
|
+
import { h as b, n as x } from "../chunks/index.d91bd77a.mjs";
|
|
14
|
+
import { i as l, s as y, r as I } from "../chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs";
|
|
15
|
+
import P from "element-ui/src/mixins/focus";
|
|
16
|
+
import v from "element-ui/src/directives/repeat-click";
|
|
17
|
+
import { n as c } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
18
|
+
const N = {
|
|
19
|
+
name: "InputNumber",
|
|
20
|
+
directives: {
|
|
21
|
+
repeatClick: v
|
|
22
|
+
},
|
|
23
|
+
mixins: [P("input"), l],
|
|
24
|
+
inject: {
|
|
25
|
+
elForm: {
|
|
26
|
+
default: ""
|
|
27
|
+
},
|
|
28
|
+
elFormItem: {
|
|
29
|
+
default: ""
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
data() {
|
|
33
|
+
return {
|
|
34
|
+
currentValue: 0,
|
|
35
|
+
userInput: null
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
39
|
+
minDisabled() {
|
|
40
|
+
return this._decrease(this.value, this.step) < this.min;
|
|
41
|
+
},
|
|
42
|
+
maxDisabled() {
|
|
43
|
+
return this._increase(this.value, this.step) > this.max;
|
|
44
|
+
},
|
|
45
|
+
numPrecision() {
|
|
46
|
+
const { value: t, step: e, getPrecision: i, precision: n } = this, r = i(e);
|
|
47
|
+
return n !== void 0 ? (r > n && console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"), n) : Math.max(i(t), r);
|
|
48
|
+
},
|
|
49
|
+
controlsAtRight() {
|
|
50
|
+
return this.controls && this.controlsPosition === "right";
|
|
51
|
+
},
|
|
52
|
+
_elFormItemSize() {
|
|
53
|
+
return (this.elFormItem || {}).elFormItemSize;
|
|
54
|
+
},
|
|
55
|
+
inputNumberSize() {
|
|
56
|
+
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
|
57
|
+
},
|
|
58
|
+
inputNumberDisabled() {
|
|
59
|
+
return this.disabled || !!(this.elForm || {}).disabled;
|
|
60
|
+
},
|
|
61
|
+
displayValue() {
|
|
62
|
+
if (this.userInput !== null)
|
|
63
|
+
return this.userInput;
|
|
64
|
+
let t = this.currentValue;
|
|
65
|
+
if (typeof t == "number") {
|
|
66
|
+
if (this.stepStrictly) {
|
|
67
|
+
const e = this.getPrecision(this.step), i = Math.pow(10, e);
|
|
68
|
+
t = Math.round(t / this.step) * i * this.step / i;
|
|
69
|
+
}
|
|
70
|
+
this.precision !== void 0 && (t = t.toFixed(this.precision));
|
|
71
|
+
}
|
|
72
|
+
return t;
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
watch: {
|
|
76
|
+
value: {
|
|
77
|
+
immediate: !0,
|
|
78
|
+
handler(t) {
|
|
79
|
+
let e = t === void 0 ? t : Number(t);
|
|
80
|
+
if (e !== void 0) {
|
|
81
|
+
if (isNaN(e))
|
|
82
|
+
return;
|
|
83
|
+
if (this.stepStrictly) {
|
|
84
|
+
const i = this.getPrecision(this.step), n = Math.pow(10, i);
|
|
85
|
+
e = Math.round(e / this.step) * n * this.step / n;
|
|
86
|
+
}
|
|
87
|
+
this.precision !== void 0 && (e = this.toPrecision(e, this.precision));
|
|
88
|
+
}
|
|
89
|
+
e >= this.max && (e = this.max), e <= this.min && (e = this.min), this.currentValue = e, this.userInput = null, this.$emit("input", e);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
mounted() {
|
|
94
|
+
const t = this.$refs.input.$refs.input;
|
|
95
|
+
t.setAttribute("role", "spinbutton"), t.setAttribute("aria-valuemax", this.max), t.setAttribute("aria-valuemin", this.min), t.setAttribute("aria-valuenow", this.currentValue), t.setAttribute("aria-disabled", this.inputNumberDisabled);
|
|
96
|
+
},
|
|
97
|
+
updated() {
|
|
98
|
+
if (!this.$refs || !this.$refs.input)
|
|
99
|
+
return;
|
|
100
|
+
this.$refs.input.$refs.input.setAttribute("aria-valuenow", this.currentValue);
|
|
101
|
+
},
|
|
102
|
+
methods: {
|
|
103
|
+
toPrecision(t, e) {
|
|
104
|
+
return e === void 0 && (e = this.numPrecision), parseFloat(Math.round(t * Math.pow(10, e)) / Math.pow(10, e));
|
|
105
|
+
},
|
|
106
|
+
getPrecision(t) {
|
|
107
|
+
if (t === void 0)
|
|
108
|
+
return 0;
|
|
109
|
+
const e = t.toString(), i = e.indexOf(".");
|
|
110
|
+
let n = 0;
|
|
111
|
+
return i !== -1 && (n = e.length - i - 1), n;
|
|
112
|
+
},
|
|
113
|
+
_increase(t, e) {
|
|
114
|
+
if (typeof t != "number" && t !== void 0)
|
|
115
|
+
return this.currentValue;
|
|
116
|
+
const i = Math.pow(10, this.numPrecision);
|
|
117
|
+
return this.toPrecision((i * t + i * e) / i);
|
|
118
|
+
},
|
|
119
|
+
_decrease(t, e) {
|
|
120
|
+
if (typeof t != "number" && t !== void 0)
|
|
121
|
+
return this.currentValue;
|
|
122
|
+
const i = Math.pow(10, this.numPrecision);
|
|
123
|
+
return this.toPrecision((i * t - i * e) / i);
|
|
124
|
+
},
|
|
125
|
+
increase() {
|
|
126
|
+
if (this.inputNumberDisabled || this.maxDisabled)
|
|
127
|
+
return;
|
|
128
|
+
const t = this.value || 0, e = this._increase(t, this.step);
|
|
129
|
+
this.setCurrentValue(e);
|
|
130
|
+
},
|
|
131
|
+
decrease() {
|
|
132
|
+
if (this.inputNumberDisabled || this.minDisabled)
|
|
133
|
+
return;
|
|
134
|
+
const t = this.value || 0, e = this._decrease(t, this.step);
|
|
135
|
+
this.setCurrentValue(e);
|
|
136
|
+
},
|
|
137
|
+
handleBlur(t) {
|
|
138
|
+
this.$emit("blur", t);
|
|
139
|
+
},
|
|
140
|
+
handleFocus(t) {
|
|
141
|
+
this.$emit("focus", t);
|
|
142
|
+
},
|
|
143
|
+
setCurrentValue(t) {
|
|
144
|
+
const e = this.currentValue;
|
|
145
|
+
typeof t == "number" && this.precision !== void 0 && (t = this.toPrecision(t, this.precision)), t >= this.max && (t = this.max), t <= this.min && (t = this.min), e !== t && (this.userInput = null, this.$emit("input", t), this.$emit("change", t, e), this.currentValue = t);
|
|
146
|
+
},
|
|
147
|
+
handleInput(t) {
|
|
148
|
+
this.userInput = t;
|
|
149
|
+
},
|
|
150
|
+
handleInputChange(t) {
|
|
151
|
+
const e = t === "" ? void 0 : Number(t);
|
|
152
|
+
(!isNaN(e) || t === "") && this.setCurrentValue(e), this.userInput = null;
|
|
153
|
+
},
|
|
154
|
+
select() {
|
|
155
|
+
this.$refs.input.select();
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}, a = {};
|
|
159
|
+
var $ = /* @__PURE__ */ c(
|
|
160
|
+
N,
|
|
161
|
+
I,
|
|
162
|
+
y,
|
|
163
|
+
!1,
|
|
164
|
+
F,
|
|
165
|
+
null,
|
|
166
|
+
null,
|
|
167
|
+
null
|
|
168
|
+
);
|
|
169
|
+
function F(t) {
|
|
170
|
+
for (let e in a)
|
|
171
|
+
this[e] = a[e];
|
|
172
|
+
}
|
|
173
|
+
const g = /* @__PURE__ */ function() {
|
|
174
|
+
return $.exports;
|
|
175
|
+
}();
|
|
176
|
+
var M = function() {
|
|
177
|
+
var t = this, e = t.$createElement, i = t._self._c || e;
|
|
178
|
+
return i(d, t._b({
|
|
19
179
|
attrs: {
|
|
20
|
-
rules:
|
|
21
|
-
disabled:
|
|
180
|
+
rules: t.computeRules,
|
|
181
|
+
disabled: t.inputDisabled
|
|
22
182
|
},
|
|
23
|
-
scopedSlots:
|
|
183
|
+
scopedSlots: t._u([{
|
|
24
184
|
key: "default",
|
|
25
185
|
fn: function() {
|
|
26
|
-
return [
|
|
186
|
+
return [i(g, t._g(t._b({
|
|
27
187
|
staticClass: "form-input-number",
|
|
28
188
|
attrs: {
|
|
29
|
-
value:
|
|
189
|
+
value: t.value,
|
|
30
190
|
controls: !1,
|
|
31
|
-
precision:
|
|
32
|
-
max:
|
|
33
|
-
min:
|
|
34
|
-
placeholder:
|
|
35
|
-
disabled:
|
|
191
|
+
precision: t.precision,
|
|
192
|
+
max: t.max,
|
|
193
|
+
min: t.min,
|
|
194
|
+
placeholder: t.computePlaceholder,
|
|
195
|
+
disabled: t.inputDisabled
|
|
36
196
|
},
|
|
37
197
|
on: {
|
|
38
198
|
input: function(n) {
|
|
39
|
-
return
|
|
199
|
+
return t.$emit("input", n);
|
|
40
200
|
}
|
|
41
201
|
},
|
|
42
|
-
scopedSlots:
|
|
202
|
+
scopedSlots: t._u([{
|
|
43
203
|
key: "append",
|
|
44
204
|
fn: function() {
|
|
45
|
-
return [
|
|
205
|
+
return [t._t("append")];
|
|
46
206
|
},
|
|
47
207
|
proxy: !0
|
|
48
208
|
}, {
|
|
49
209
|
key: "prefix",
|
|
50
210
|
fn: function() {
|
|
51
|
-
return [
|
|
211
|
+
return [t._t("prefix")];
|
|
52
212
|
},
|
|
53
213
|
proxy: !0
|
|
54
214
|
}, {
|
|
55
215
|
key: "prepend",
|
|
56
216
|
fn: function() {
|
|
57
|
-
return [
|
|
217
|
+
return [t._t("prepend")];
|
|
58
218
|
},
|
|
59
219
|
proxy: !0
|
|
60
220
|
}, {
|
|
61
221
|
key: "suffix",
|
|
62
222
|
fn: function() {
|
|
63
|
-
return [
|
|
223
|
+
return [t._t("suffix")];
|
|
64
224
|
},
|
|
65
225
|
proxy: !0
|
|
66
226
|
}], null, !0)
|
|
67
|
-
}, "InputNumber",
|
|
227
|
+
}, "InputNumber", t.inputProps, !1), t.listeners))];
|
|
68
228
|
},
|
|
69
229
|
proxy: !0
|
|
70
230
|
}, {
|
|
71
231
|
key: "error",
|
|
72
232
|
fn: function(n) {
|
|
73
|
-
var
|
|
74
|
-
return [
|
|
75
|
-
error:
|
|
233
|
+
var r = n.error;
|
|
234
|
+
return [t._t("error", null, {
|
|
235
|
+
error: r
|
|
76
236
|
})];
|
|
77
237
|
}
|
|
78
238
|
}, {
|
|
79
239
|
key: "label",
|
|
80
240
|
fn: function() {
|
|
81
|
-
return [
|
|
241
|
+
return [t._t("label")];
|
|
82
242
|
},
|
|
83
243
|
proxy: !0
|
|
84
244
|
}], null, !0)
|
|
85
|
-
}, "FormItem",
|
|
86
|
-
},
|
|
87
|
-
const
|
|
88
|
-
(
|
|
89
|
-
),
|
|
245
|
+
}, "FormItem", t.formItemProps, !1));
|
|
246
|
+
}, S = [];
|
|
247
|
+
const k = Object.keys(l.props).filter(
|
|
248
|
+
(t) => !["value", "placeholder", "disabled", "precision", "max", "min"].includes(t)
|
|
249
|
+
), D = {
|
|
90
250
|
name: "FormInputNumber",
|
|
91
|
-
mixins: [
|
|
251
|
+
mixins: [_],
|
|
92
252
|
props: {
|
|
93
253
|
value: {
|
|
94
254
|
type: [String, Number]
|
|
@@ -103,34 +263,34 @@ const v = Object.keys(d.props).filter(
|
|
|
103
263
|
},
|
|
104
264
|
precision: {
|
|
105
265
|
type: Number,
|
|
106
|
-
validator(
|
|
107
|
-
return
|
|
266
|
+
validator(t) {
|
|
267
|
+
return t >= 0 && t === parseInt(t, 10);
|
|
108
268
|
}
|
|
109
269
|
}
|
|
110
270
|
},
|
|
111
271
|
computed: {
|
|
112
272
|
inputProps() {
|
|
113
|
-
return
|
|
273
|
+
return b(s(s({}, x(this.$attrs)), this.$props), k);
|
|
114
274
|
}
|
|
115
275
|
}
|
|
116
|
-
},
|
|
117
|
-
var
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
276
|
+
}, p = {};
|
|
277
|
+
var V = /* @__PURE__ */ c(
|
|
278
|
+
D,
|
|
279
|
+
M,
|
|
280
|
+
S,
|
|
121
281
|
!1,
|
|
122
|
-
|
|
282
|
+
C,
|
|
123
283
|
null,
|
|
124
284
|
null,
|
|
125
285
|
null
|
|
126
286
|
);
|
|
127
|
-
function
|
|
128
|
-
for (let
|
|
129
|
-
this[
|
|
287
|
+
function C(t) {
|
|
288
|
+
for (let e in p)
|
|
289
|
+
this[e] = p[e];
|
|
130
290
|
}
|
|
131
|
-
const
|
|
132
|
-
return
|
|
291
|
+
const O = /* @__PURE__ */ function() {
|
|
292
|
+
return V.exports;
|
|
133
293
|
}();
|
|
134
294
|
export {
|
|
135
|
-
|
|
295
|
+
O as default
|
|
136
296
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var p = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var m = Object.prototype.hasOwnProperty,
|
|
2
|
+
var s = Object.getOwnPropertySymbols;
|
|
3
|
+
var m = Object.prototype.hasOwnProperty, _ = Object.prototype.propertyIsEnumerable;
|
|
4
4
|
var l = (e, t, r) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, n = (e, t) => {
|
|
5
5
|
for (var r in t || (t = {}))
|
|
6
6
|
m.call(t, r) && l(e, r, t[r]);
|
|
7
|
-
if (
|
|
8
|
-
for (var r of
|
|
9
|
-
|
|
7
|
+
if (s)
|
|
8
|
+
for (var r of s(t))
|
|
9
|
+
_.call(t, r) && l(e, r, t[r]);
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
|
-
import {
|
|
12
|
+
import { _ as c, f as d } from "../chunks/FormItem.2920ac0c.mjs";
|
|
13
13
|
import { validatePhoneNum as f } from "@web-utils/core";
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import { n as
|
|
17
|
-
var
|
|
14
|
+
import { h, n as v } from "../chunks/index.d91bd77a.mjs";
|
|
15
|
+
import o from "element-ui/lib/input";
|
|
16
|
+
import { n as y } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
17
|
+
var b = function() {
|
|
18
18
|
var e = this, t = e.$createElement, r = e._self._c || t;
|
|
19
|
-
return r(
|
|
19
|
+
return r(c, e._b({
|
|
20
20
|
attrs: {
|
|
21
21
|
rules: e.computeRules,
|
|
22
22
|
disabled: e.inputDisabled
|
|
@@ -24,7 +24,7 @@ var y = function() {
|
|
|
24
24
|
scopedSlots: e._u([{
|
|
25
25
|
key: "default",
|
|
26
26
|
fn: function() {
|
|
27
|
-
return [r(
|
|
27
|
+
return [r(o, e._g(e._b({
|
|
28
28
|
class: {
|
|
29
29
|
"is-readonly": e.readonly
|
|
30
30
|
},
|
|
@@ -57,12 +57,12 @@ var y = function() {
|
|
|
57
57
|
proxy: !0
|
|
58
58
|
}], null, !0)
|
|
59
59
|
}, "FormItem", e.formItemProps, !1));
|
|
60
|
-
},
|
|
61
|
-
const
|
|
60
|
+
}, g = [];
|
|
61
|
+
const x = Object.keys(o.props || o.default.props).filter(
|
|
62
62
|
(e) => !["value", "placeholder", "disabled"].includes(e)
|
|
63
|
-
),
|
|
63
|
+
), P = {
|
|
64
64
|
name: "FormInputPhoneNumber",
|
|
65
|
-
mixins: [
|
|
65
|
+
mixins: [d],
|
|
66
66
|
props: {
|
|
67
67
|
value: {
|
|
68
68
|
type: String
|
|
@@ -74,7 +74,7 @@ const I = Object.keys(s.props || s.default.props).filter(
|
|
|
74
74
|
},
|
|
75
75
|
computed: {
|
|
76
76
|
inputProps() {
|
|
77
|
-
return
|
|
77
|
+
return h(n(n({}, v(this.$attrs)), this.$props), x);
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
methods: {
|
|
@@ -91,23 +91,23 @@ const I = Object.keys(s.props || s.default.props).filter(
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}, u = {};
|
|
94
|
-
var
|
|
95
|
-
|
|
96
|
-
y,
|
|
94
|
+
var I = /* @__PURE__ */ y(
|
|
95
|
+
P,
|
|
97
96
|
b,
|
|
98
|
-
!1,
|
|
99
97
|
g,
|
|
98
|
+
!1,
|
|
99
|
+
k,
|
|
100
100
|
null,
|
|
101
101
|
null,
|
|
102
102
|
null
|
|
103
103
|
);
|
|
104
|
-
function
|
|
104
|
+
function k(e) {
|
|
105
105
|
for (let t in u)
|
|
106
106
|
this[t] = u[t];
|
|
107
107
|
}
|
|
108
|
-
const
|
|
109
|
-
return
|
|
108
|
+
const z = /* @__PURE__ */ function() {
|
|
109
|
+
return I.exports;
|
|
110
110
|
}();
|
|
111
111
|
export {
|
|
112
|
-
|
|
112
|
+
z as default
|
|
113
113
|
};
|