@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
package/input-number/index.mjs
CHANGED
|
@@ -1,122 +1,13 @@
|
|
|
1
1
|
import u from "element-ui/src/mixins/focus";
|
|
2
2
|
import o from "element-ui/src/directives/repeat-click";
|
|
3
|
-
import { i as a } from "../chunks/
|
|
3
|
+
import { i as h, s as a, r as c } from "../chunks/InputNumber.vue_vue_type_style_index_0_lang.18046bd3.mjs";
|
|
4
4
|
import { n as l } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
5
|
-
|
|
6
|
-
var e = this, t = e.$createElement, n = e._self._c || t;
|
|
7
|
-
return n("div", {
|
|
8
|
-
class: ["input-number", "el-input-number", e.inputNumberSize ? `el-input-number--${e.inputNumberSize}` : "", {
|
|
9
|
-
"is-disabled": e.inputNumberDisabled,
|
|
10
|
-
"is-without-controls": !e.controls,
|
|
11
|
-
"is-controls-right": e.controlsAtRight
|
|
12
|
-
}],
|
|
13
|
-
on: {
|
|
14
|
-
dragstart: function(i) {
|
|
15
|
-
i.preventDefault();
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
}, [e.controls ? n("span", {
|
|
19
|
-
directives: [{
|
|
20
|
-
name: "repeat-click",
|
|
21
|
-
rawName: "v-repeat-click",
|
|
22
|
-
value: e.decrease,
|
|
23
|
-
expression: "decrease"
|
|
24
|
-
}],
|
|
25
|
-
staticClass: "el-input-number__decrease",
|
|
26
|
-
class: {
|
|
27
|
-
"is-disabled": e.minDisabled
|
|
28
|
-
},
|
|
29
|
-
attrs: {
|
|
30
|
-
role: "button"
|
|
31
|
-
},
|
|
32
|
-
on: {
|
|
33
|
-
keydown: function(i) {
|
|
34
|
-
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.decrease.apply(null, arguments);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}, [n("i", {
|
|
38
|
-
class: `el-icon-${e.controlsAtRight ? "arrow-down" : "minus"}`
|
|
39
|
-
})]) : e._e(), e.controls ? n("span", {
|
|
40
|
-
directives: [{
|
|
41
|
-
name: "repeat-click",
|
|
42
|
-
rawName: "v-repeat-click",
|
|
43
|
-
value: e.increase,
|
|
44
|
-
expression: "increase"
|
|
45
|
-
}],
|
|
46
|
-
staticClass: "el-input-number__increase",
|
|
47
|
-
class: {
|
|
48
|
-
"is-disabled": e.maxDisabled
|
|
49
|
-
},
|
|
50
|
-
attrs: {
|
|
51
|
-
role: "button"
|
|
52
|
-
},
|
|
53
|
-
on: {
|
|
54
|
-
keydown: function(i) {
|
|
55
|
-
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.increase.apply(null, arguments);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}, [n("i", {
|
|
59
|
-
class: `el-icon-${e.controlsAtRight ? "arrow-up" : "plus"}`
|
|
60
|
-
})]) : e._e(), n("ElInput", {
|
|
61
|
-
ref: "input",
|
|
62
|
-
attrs: {
|
|
63
|
-
value: e.displayValue,
|
|
64
|
-
placeholder: e.placeholder,
|
|
65
|
-
disabled: e.inputNumberDisabled,
|
|
66
|
-
size: e.inputNumberSize,
|
|
67
|
-
max: e.max,
|
|
68
|
-
"prefix-icon": e.prefixIcon,
|
|
69
|
-
"suffix-icon": e.suffixIcon,
|
|
70
|
-
min: e.min,
|
|
71
|
-
name: e.name,
|
|
72
|
-
label: e.label
|
|
73
|
-
},
|
|
74
|
-
on: {
|
|
75
|
-
blur: e.handleBlur,
|
|
76
|
-
focus: e.handleFocus,
|
|
77
|
-
input: e.handleInput,
|
|
78
|
-
change: e.handleInputChange
|
|
79
|
-
},
|
|
80
|
-
nativeOn: {
|
|
81
|
-
keydown: [function(i) {
|
|
82
|
-
return !i.type.indexOf("key") && e._k(i.keyCode, "up", 38, i.key, ["Up", "ArrowUp"]) ? null : (i.preventDefault(), e.increase.apply(null, arguments));
|
|
83
|
-
}, function(i) {
|
|
84
|
-
return !i.type.indexOf("key") && e._k(i.keyCode, "down", 40, i.key, ["Down", "ArrowDown"]) ? null : (i.preventDefault(), e.decrease.apply(null, arguments));
|
|
85
|
-
}]
|
|
86
|
-
},
|
|
87
|
-
scopedSlots: e._u([{
|
|
88
|
-
key: "append",
|
|
89
|
-
fn: function() {
|
|
90
|
-
return [e._t("append")];
|
|
91
|
-
},
|
|
92
|
-
proxy: !0
|
|
93
|
-
}, {
|
|
94
|
-
key: "prefix",
|
|
95
|
-
fn: function() {
|
|
96
|
-
return [e._t("prefix")];
|
|
97
|
-
},
|
|
98
|
-
proxy: !0
|
|
99
|
-
}, {
|
|
100
|
-
key: "prepend",
|
|
101
|
-
fn: function() {
|
|
102
|
-
return [e._t("prepend")];
|
|
103
|
-
},
|
|
104
|
-
proxy: !0
|
|
105
|
-
}, {
|
|
106
|
-
key: "suffix",
|
|
107
|
-
fn: function() {
|
|
108
|
-
return [e._t("suffix")];
|
|
109
|
-
},
|
|
110
|
-
proxy: !0
|
|
111
|
-
}], null, !0)
|
|
112
|
-
})], 1);
|
|
113
|
-
}, p = [];
|
|
114
|
-
const h = {
|
|
5
|
+
const p = {
|
|
115
6
|
name: "InputNumber",
|
|
116
7
|
directives: {
|
|
117
8
|
repeatClick: o
|
|
118
9
|
},
|
|
119
|
-
mixins: [u("input"),
|
|
10
|
+
mixins: [u("input"), h],
|
|
120
11
|
inject: {
|
|
121
12
|
elForm: {
|
|
122
13
|
default: ""
|
|
@@ -139,8 +30,8 @@ const h = {
|
|
|
139
30
|
return this._increase(this.value, this.step) > this.max;
|
|
140
31
|
},
|
|
141
32
|
numPrecision() {
|
|
142
|
-
const { value:
|
|
143
|
-
return
|
|
33
|
+
const { value: t, step: e, getPrecision: i, precision: s } = this, n = i(e);
|
|
34
|
+
return s !== void 0 ? (n > s && console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"), s) : Math.max(i(t), n);
|
|
144
35
|
},
|
|
145
36
|
controlsAtRight() {
|
|
146
37
|
return this.controls && this.controlsPosition === "right";
|
|
@@ -157,38 +48,38 @@ const h = {
|
|
|
157
48
|
displayValue() {
|
|
158
49
|
if (this.userInput !== null)
|
|
159
50
|
return this.userInput;
|
|
160
|
-
let
|
|
161
|
-
if (typeof
|
|
51
|
+
let t = this.currentValue;
|
|
52
|
+
if (typeof t == "number") {
|
|
162
53
|
if (this.stepStrictly) {
|
|
163
|
-
const
|
|
164
|
-
|
|
54
|
+
const e = this.getPrecision(this.step), i = Math.pow(10, e);
|
|
55
|
+
t = Math.round(t / this.step) * i * this.step / i;
|
|
165
56
|
}
|
|
166
|
-
this.precision !== void 0 && (
|
|
57
|
+
this.precision !== void 0 && (t = t.toFixed(this.precision));
|
|
167
58
|
}
|
|
168
|
-
return
|
|
59
|
+
return t;
|
|
169
60
|
}
|
|
170
61
|
},
|
|
171
62
|
watch: {
|
|
172
63
|
value: {
|
|
173
64
|
immediate: !0,
|
|
174
|
-
handler(
|
|
175
|
-
let
|
|
176
|
-
if (
|
|
177
|
-
if (isNaN(
|
|
65
|
+
handler(t) {
|
|
66
|
+
let e = t === void 0 ? t : Number(t);
|
|
67
|
+
if (e !== void 0) {
|
|
68
|
+
if (isNaN(e))
|
|
178
69
|
return;
|
|
179
70
|
if (this.stepStrictly) {
|
|
180
|
-
const
|
|
181
|
-
|
|
71
|
+
const i = this.getPrecision(this.step), s = Math.pow(10, i);
|
|
72
|
+
e = Math.round(e / this.step) * s * this.step / s;
|
|
182
73
|
}
|
|
183
|
-
this.precision !== void 0 && (
|
|
74
|
+
this.precision !== void 0 && (e = this.toPrecision(e, this.precision));
|
|
184
75
|
}
|
|
185
|
-
|
|
76
|
+
e >= this.max && (e = this.max), e <= this.min && (e = this.min), this.currentValue = e, this.userInput = null, this.$emit("input", e);
|
|
186
77
|
}
|
|
187
78
|
}
|
|
188
79
|
},
|
|
189
80
|
mounted() {
|
|
190
|
-
const
|
|
191
|
-
|
|
81
|
+
const t = this.$refs.input.$refs.input;
|
|
82
|
+
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);
|
|
192
83
|
},
|
|
193
84
|
updated() {
|
|
194
85
|
if (!this.$refs || !this.$refs.input)
|
|
@@ -196,79 +87,79 @@ const h = {
|
|
|
196
87
|
this.$refs.input.$refs.input.setAttribute("aria-valuenow", this.currentValue);
|
|
197
88
|
},
|
|
198
89
|
methods: {
|
|
199
|
-
toPrecision(
|
|
200
|
-
return
|
|
90
|
+
toPrecision(t, e) {
|
|
91
|
+
return e === void 0 && (e = this.numPrecision), parseFloat(Math.round(t * Math.pow(10, e)) / Math.pow(10, e));
|
|
201
92
|
},
|
|
202
|
-
getPrecision(
|
|
203
|
-
if (
|
|
93
|
+
getPrecision(t) {
|
|
94
|
+
if (t === void 0)
|
|
204
95
|
return 0;
|
|
205
|
-
const
|
|
206
|
-
let
|
|
207
|
-
return
|
|
96
|
+
const e = t.toString(), i = e.indexOf(".");
|
|
97
|
+
let s = 0;
|
|
98
|
+
return i !== -1 && (s = e.length - i - 1), s;
|
|
208
99
|
},
|
|
209
|
-
_increase(
|
|
210
|
-
if (typeof
|
|
100
|
+
_increase(t, e) {
|
|
101
|
+
if (typeof t != "number" && t !== void 0)
|
|
211
102
|
return this.currentValue;
|
|
212
|
-
const
|
|
213
|
-
return this.toPrecision((
|
|
103
|
+
const i = Math.pow(10, this.numPrecision);
|
|
104
|
+
return this.toPrecision((i * t + i * e) / i);
|
|
214
105
|
},
|
|
215
|
-
_decrease(
|
|
216
|
-
if (typeof
|
|
106
|
+
_decrease(t, e) {
|
|
107
|
+
if (typeof t != "number" && t !== void 0)
|
|
217
108
|
return this.currentValue;
|
|
218
|
-
const
|
|
219
|
-
return this.toPrecision((
|
|
109
|
+
const i = Math.pow(10, this.numPrecision);
|
|
110
|
+
return this.toPrecision((i * t - i * e) / i);
|
|
220
111
|
},
|
|
221
112
|
increase() {
|
|
222
113
|
if (this.inputNumberDisabled || this.maxDisabled)
|
|
223
114
|
return;
|
|
224
|
-
const
|
|
225
|
-
this.setCurrentValue(
|
|
115
|
+
const t = this.value || 0, e = this._increase(t, this.step);
|
|
116
|
+
this.setCurrentValue(e);
|
|
226
117
|
},
|
|
227
118
|
decrease() {
|
|
228
119
|
if (this.inputNumberDisabled || this.minDisabled)
|
|
229
120
|
return;
|
|
230
|
-
const
|
|
231
|
-
this.setCurrentValue(
|
|
121
|
+
const t = this.value || 0, e = this._decrease(t, this.step);
|
|
122
|
+
this.setCurrentValue(e);
|
|
232
123
|
},
|
|
233
|
-
handleBlur(
|
|
234
|
-
this.$emit("blur",
|
|
124
|
+
handleBlur(t) {
|
|
125
|
+
this.$emit("blur", t);
|
|
235
126
|
},
|
|
236
|
-
handleFocus(
|
|
237
|
-
this.$emit("focus",
|
|
127
|
+
handleFocus(t) {
|
|
128
|
+
this.$emit("focus", t);
|
|
238
129
|
},
|
|
239
|
-
setCurrentValue(
|
|
240
|
-
const
|
|
241
|
-
typeof
|
|
130
|
+
setCurrentValue(t) {
|
|
131
|
+
const e = this.currentValue;
|
|
132
|
+
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);
|
|
242
133
|
},
|
|
243
|
-
handleInput(
|
|
244
|
-
this.userInput =
|
|
134
|
+
handleInput(t) {
|
|
135
|
+
this.userInput = t;
|
|
245
136
|
},
|
|
246
|
-
handleInputChange(
|
|
247
|
-
const
|
|
248
|
-
(!isNaN(
|
|
137
|
+
handleInputChange(t) {
|
|
138
|
+
const e = t === "" ? void 0 : Number(t);
|
|
139
|
+
(!isNaN(e) || t === "") && this.setCurrentValue(e), this.userInput = null;
|
|
249
140
|
},
|
|
250
141
|
select() {
|
|
251
142
|
this.$refs.input.select();
|
|
252
143
|
}
|
|
253
144
|
}
|
|
254
|
-
},
|
|
255
|
-
var
|
|
256
|
-
h,
|
|
257
|
-
c,
|
|
145
|
+
}, r = {};
|
|
146
|
+
var m = /* @__PURE__ */ l(
|
|
258
147
|
p,
|
|
148
|
+
c,
|
|
149
|
+
a,
|
|
259
150
|
!1,
|
|
260
|
-
|
|
151
|
+
d,
|
|
261
152
|
null,
|
|
262
153
|
null,
|
|
263
154
|
null
|
|
264
155
|
);
|
|
265
|
-
function
|
|
266
|
-
for (let
|
|
267
|
-
this[
|
|
156
|
+
function d(t) {
|
|
157
|
+
for (let e in r)
|
|
158
|
+
this[e] = r[e];
|
|
268
159
|
}
|
|
269
|
-
const
|
|
270
|
-
return
|
|
160
|
+
const P = /* @__PURE__ */ function() {
|
|
161
|
+
return m.exports;
|
|
271
162
|
}();
|
|
272
163
|
export {
|
|
273
|
-
|
|
164
|
+
P as default
|
|
274
165
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { isNotEmpty as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { isNotEmpty as s } from "@web-utils/core";
|
|
2
|
+
import a from "element-ui/lib/input-number";
|
|
3
|
+
import { n as r } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
4
|
+
var l = function() {
|
|
4
5
|
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
5
6
|
return n("div", {
|
|
6
7
|
staticClass: "input-number-range"
|
|
7
|
-
}, [n(
|
|
8
|
+
}, [n(a, {
|
|
8
9
|
staticClass: "flex-item",
|
|
9
10
|
staticStyle: {
|
|
10
11
|
width: "auto"
|
|
@@ -19,8 +20,8 @@ var r = function() {
|
|
|
19
20
|
},
|
|
20
21
|
model: {
|
|
21
22
|
value: t.val[0],
|
|
22
|
-
callback: function(
|
|
23
|
-
t.$set(t.val, 0,
|
|
23
|
+
callback: function(i) {
|
|
24
|
+
t.$set(t.val, 0, i);
|
|
24
25
|
},
|
|
25
26
|
expression: "val[0]"
|
|
26
27
|
}
|
|
@@ -29,7 +30,7 @@ var r = function() {
|
|
|
29
30
|
padding: "0 6px",
|
|
30
31
|
"font-size": "12px"
|
|
31
32
|
}
|
|
32
|
-
}, [t._v(t._s(t.separator))]), n(
|
|
33
|
+
}, [t._v(t._s(t.separator))]), n(a, {
|
|
33
34
|
staticClass: "flex-item",
|
|
34
35
|
staticStyle: {
|
|
35
36
|
width: "auto"
|
|
@@ -44,14 +45,14 @@ var r = function() {
|
|
|
44
45
|
},
|
|
45
46
|
model: {
|
|
46
47
|
value: t.val[1],
|
|
47
|
-
callback: function(
|
|
48
|
-
t.$set(t.val, 1,
|
|
48
|
+
callback: function(i) {
|
|
49
|
+
t.$set(t.val, 1, i);
|
|
49
50
|
},
|
|
50
51
|
expression: "val[1]"
|
|
51
52
|
}
|
|
52
53
|
})], 1);
|
|
53
|
-
},
|
|
54
|
-
const
|
|
54
|
+
}, u = [];
|
|
55
|
+
const d = {
|
|
55
56
|
name: "InputNumberRange",
|
|
56
57
|
props: {
|
|
57
58
|
value: {
|
|
@@ -78,7 +79,7 @@ const u = {
|
|
|
78
79
|
immediate: !0,
|
|
79
80
|
handler(t) {
|
|
80
81
|
const e = [void 0, void 0];
|
|
81
|
-
|
|
82
|
+
s(t == null ? void 0 : t[0]) && (e[0] = t[0]), s(t == null ? void 0 : t[1]) && (e[1] = t[1]), this.val = e;
|
|
82
83
|
}
|
|
83
84
|
}
|
|
84
85
|
},
|
|
@@ -87,24 +88,24 @@ const u = {
|
|
|
87
88
|
this.$emit("input", this.val);
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
|
-
},
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
r,
|
|
91
|
+
}, o = {};
|
|
92
|
+
var c = /* @__PURE__ */ r(
|
|
93
|
+
d,
|
|
94
94
|
l,
|
|
95
|
+
u,
|
|
95
96
|
!1,
|
|
96
|
-
|
|
97
|
+
p,
|
|
97
98
|
null,
|
|
98
99
|
null,
|
|
99
100
|
null
|
|
100
101
|
);
|
|
101
|
-
function
|
|
102
|
-
for (let e in
|
|
103
|
-
this[e] =
|
|
102
|
+
function p(t) {
|
|
103
|
+
for (let e in o)
|
|
104
|
+
this[e] = o[e];
|
|
104
105
|
}
|
|
105
|
-
const
|
|
106
|
-
return
|
|
106
|
+
const f = /* @__PURE__ */ function() {
|
|
107
|
+
return c.exports;
|
|
107
108
|
}();
|
|
108
109
|
export {
|
|
109
|
-
|
|
110
|
+
f as default
|
|
110
111
|
};
|
package/license/index.mjs
CHANGED
package/loading-view/index.mjs
CHANGED
|
@@ -1,24 +1,6 @@
|
|
|
1
|
-
import { n as o } from "../chunks/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return n("div", {
|
|
5
|
-
staticClass: "loading-view",
|
|
6
|
-
style: {
|
|
7
|
-
fontSize: t.fontSize,
|
|
8
|
-
height: t.height
|
|
9
|
-
}
|
|
10
|
-
}, [t._t("default", function() {
|
|
11
|
-
return [n("div", {
|
|
12
|
-
staticClass: "flex-column horizon-center"
|
|
13
|
-
}, [n("i", {
|
|
14
|
-
staticClass: "el-icon-loading",
|
|
15
|
-
style: {
|
|
16
|
-
fontSize: t.iconSize
|
|
17
|
-
}
|
|
18
|
-
}), n("p", [t._v(t._s(t.loadingTips))])])];
|
|
19
|
-
})], 2);
|
|
20
|
-
}, a = [];
|
|
21
|
-
const l = {
|
|
1
|
+
import { s as n, r as o } from "../chunks/LoadingView.vue_vue_type_style_index_0_lang.4c3fff2a.mjs";
|
|
2
|
+
import { n as i } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
3
|
+
const r = {
|
|
22
4
|
name: "LoadingView",
|
|
23
5
|
props: {
|
|
24
6
|
loadingTips: {
|
|
@@ -38,24 +20,24 @@ const l = {
|
|
|
38
20
|
default: "100%"
|
|
39
21
|
}
|
|
40
22
|
}
|
|
41
|
-
},
|
|
42
|
-
var
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
23
|
+
}, e = {};
|
|
24
|
+
var s = /* @__PURE__ */ i(
|
|
25
|
+
r,
|
|
26
|
+
o,
|
|
27
|
+
n,
|
|
46
28
|
!1,
|
|
47
|
-
|
|
29
|
+
a,
|
|
48
30
|
null,
|
|
49
31
|
null,
|
|
50
32
|
null
|
|
51
33
|
);
|
|
52
|
-
function
|
|
53
|
-
for (let
|
|
54
|
-
this[
|
|
34
|
+
function a(l) {
|
|
35
|
+
for (let t in e)
|
|
36
|
+
this[t] = e[t];
|
|
55
37
|
}
|
|
56
|
-
const
|
|
57
|
-
return
|
|
38
|
+
const c = /* @__PURE__ */ function() {
|
|
39
|
+
return s.exports;
|
|
58
40
|
}();
|
|
59
41
|
export {
|
|
60
|
-
|
|
42
|
+
c as default
|
|
61
43
|
};
|
package/login/index.mjs
CHANGED
|
@@ -1,34 +1,39 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { isBlank as
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import { s as m } from "../chunks/util.7844e2c2.mjs";
|
|
2
|
+
import { isBlank as d } from "@web-utils/core";
|
|
3
|
+
import l from "element-ui/lib/button";
|
|
4
|
+
import r from "element-ui/lib/form-item";
|
|
5
|
+
import n from "element-ui/lib/input";
|
|
6
|
+
import i from "element-ui/lib/tooltip";
|
|
7
|
+
import u from "element-ui/lib/form";
|
|
8
|
+
import { n as h } from "../chunks/vueComponentNormalizer.446f5dc4.mjs";
|
|
9
|
+
var f = function() {
|
|
5
10
|
var e = this, s = e.$createElement, t = e._self._c || s;
|
|
6
11
|
return t("div", {
|
|
7
12
|
staticClass: "avue-login",
|
|
8
13
|
style: {
|
|
9
14
|
width: e.setPx(e.width)
|
|
10
15
|
}
|
|
11
|
-
}, [t(
|
|
16
|
+
}, [t(u, {
|
|
12
17
|
ref: "form",
|
|
13
18
|
attrs: {
|
|
14
19
|
model: e.form,
|
|
15
20
|
"label-suffix": ":",
|
|
16
21
|
"label-width": e.setPx(e.labelWidth)
|
|
17
22
|
}
|
|
18
|
-
}, [e.username.hide ? e._e() : t(
|
|
23
|
+
}, [e.username.hide ? e._e() : t(r, {
|
|
19
24
|
attrs: {
|
|
20
25
|
label: e.username.label || "用户名",
|
|
21
26
|
rules: e.username.rules,
|
|
22
27
|
"label-width": e.setPx(e.username.labelWidth),
|
|
23
28
|
prop: "username"
|
|
24
29
|
}
|
|
25
|
-
}, [t(
|
|
30
|
+
}, [t(i, {
|
|
26
31
|
attrs: {
|
|
27
32
|
content: e.username.tip,
|
|
28
33
|
disabled: e.username.tip === void 0,
|
|
29
34
|
placement: "top-start"
|
|
30
35
|
}
|
|
31
|
-
}, [t(
|
|
36
|
+
}, [t(n, {
|
|
32
37
|
attrs: {
|
|
33
38
|
size: "small",
|
|
34
39
|
"prefix-icon": e.username.prefixIcon || "el-icon-user",
|
|
@@ -42,20 +47,20 @@ var p = function() {
|
|
|
42
47
|
},
|
|
43
48
|
expression: "form.username"
|
|
44
49
|
}
|
|
45
|
-
})], 1)], 1), e.password.hide ? e._e() : t(
|
|
50
|
+
})], 1)], 1), e.password.hide ? e._e() : t(r, {
|
|
46
51
|
attrs: {
|
|
47
52
|
label: e.password.label || "密码",
|
|
48
53
|
rules: e.password.rules,
|
|
49
54
|
"label-width": e.setPx(e.password.labelWidth),
|
|
50
55
|
prop: "password"
|
|
51
56
|
}
|
|
52
|
-
}, [t(
|
|
57
|
+
}, [t(i, {
|
|
53
58
|
attrs: {
|
|
54
59
|
content: e.password.tip,
|
|
55
60
|
disabled: e.password.tip === void 0,
|
|
56
61
|
placement: "top-start"
|
|
57
62
|
}
|
|
58
|
-
}, [t(
|
|
63
|
+
}, [t(n, {
|
|
59
64
|
attrs: {
|
|
60
65
|
type: "password",
|
|
61
66
|
size: "small",
|
|
@@ -71,20 +76,20 @@ var p = function() {
|
|
|
71
76
|
},
|
|
72
77
|
expression: "form.password"
|
|
73
78
|
}
|
|
74
|
-
})], 1)], 1), e.code.hide ? e._e() : t(
|
|
79
|
+
})], 1)], 1), e.code.hide ? e._e() : t(r, {
|
|
75
80
|
attrs: {
|
|
76
81
|
label: e.code.label || "验证码",
|
|
77
82
|
rules: e.code.rules,
|
|
78
83
|
"label-width": e.setPx(e.code.labelWidth),
|
|
79
84
|
prop: "code"
|
|
80
85
|
}
|
|
81
|
-
}, [t(
|
|
86
|
+
}, [t(i, {
|
|
82
87
|
attrs: {
|
|
83
88
|
content: e.code.tip,
|
|
84
89
|
disabled: e.code.tip === void 0,
|
|
85
90
|
placement: "top-start"
|
|
86
91
|
}
|
|
87
|
-
}, [t(
|
|
92
|
+
}, [t(n, {
|
|
88
93
|
attrs: {
|
|
89
94
|
size: "small",
|
|
90
95
|
"prefix-icon": e.code.prefixIcon || "el-icon-c-scale-to-original",
|
|
@@ -94,7 +99,7 @@ var p = function() {
|
|
|
94
99
|
scopedSlots: e._u([{
|
|
95
100
|
key: "append",
|
|
96
101
|
fn: function() {
|
|
97
|
-
return [e.isPhone ? t(
|
|
102
|
+
return [e.isPhone ? t(l, {
|
|
98
103
|
staticClass: "avue-login__send",
|
|
99
104
|
attrs: {
|
|
100
105
|
type: "primary",
|
|
@@ -124,7 +129,7 @@ var p = function() {
|
|
|
124
129
|
},
|
|
125
130
|
expression: "form.code"
|
|
126
131
|
}
|
|
127
|
-
})], 1)], 1), t(
|
|
132
|
+
})], 1)], 1), t(r, [t(l, {
|
|
128
133
|
staticClass: "avue-login__submit",
|
|
129
134
|
attrs: {
|
|
130
135
|
type: "primary"
|
|
@@ -133,8 +138,8 @@ var p = function() {
|
|
|
133
138
|
click: e.onSubmit
|
|
134
139
|
}
|
|
135
140
|
}, [e._v(" 登录 ")])], 1)], 1)], 1);
|
|
136
|
-
},
|
|
137
|
-
const
|
|
141
|
+
}, _ = [];
|
|
142
|
+
const a = "发送验证码", c = "{{time}}s后重获取", b = {
|
|
138
143
|
name: "Login",
|
|
139
144
|
props: {
|
|
140
145
|
value: {
|
|
@@ -151,7 +156,7 @@ const r = "发送验证码", i = "{{time}}s后重获取", m = {
|
|
|
151
156
|
},
|
|
152
157
|
data() {
|
|
153
158
|
return {
|
|
154
|
-
text:
|
|
159
|
+
text: a,
|
|
155
160
|
nowtime: "",
|
|
156
161
|
check: {},
|
|
157
162
|
flag: !1
|
|
@@ -197,15 +202,15 @@ const r = "发送验证码", i = "{{time}}s后重获取", m = {
|
|
|
197
202
|
return this.option.column || {};
|
|
198
203
|
},
|
|
199
204
|
sendDisabled() {
|
|
200
|
-
return !
|
|
205
|
+
return !d(this.check);
|
|
201
206
|
}
|
|
202
207
|
},
|
|
203
208
|
methods: {
|
|
204
|
-
setPx:
|
|
209
|
+
setPx: m,
|
|
205
210
|
onSend() {
|
|
206
211
|
const e = () => {
|
|
207
|
-
this.nowtime = this.time, this.text =
|
|
208
|
-
this.nowtime--, this.nowtime === 0 ? (this.text =
|
|
212
|
+
this.nowtime = this.time, this.text = c.replace("{{time}}", this.nowtime), this.check = setInterval(() => {
|
|
213
|
+
this.nowtime--, this.nowtime === 0 ? (this.text = a, clearInterval(this.check), this.check = null) : this.text = c.replace("{{time}}", this.nowtime);
|
|
209
214
|
}, 1e3);
|
|
210
215
|
};
|
|
211
216
|
this.sendDisabled || this.$emit("send", e);
|
|
@@ -227,24 +232,24 @@ const r = "发送验证码", i = "{{time}}s后重获取", m = {
|
|
|
227
232
|
});
|
|
228
233
|
}
|
|
229
234
|
}
|
|
230
|
-
},
|
|
231
|
-
var
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
+
}, p = {};
|
|
236
|
+
var w = /* @__PURE__ */ h(
|
|
237
|
+
b,
|
|
238
|
+
f,
|
|
239
|
+
_,
|
|
235
240
|
!1,
|
|
236
|
-
|
|
241
|
+
x,
|
|
237
242
|
null,
|
|
238
243
|
null,
|
|
239
244
|
null
|
|
240
245
|
);
|
|
241
|
-
function
|
|
242
|
-
for (let s in
|
|
243
|
-
this[s] =
|
|
246
|
+
function x(e) {
|
|
247
|
+
for (let s in p)
|
|
248
|
+
this[s] = p[s];
|
|
244
249
|
}
|
|
245
|
-
const
|
|
246
|
-
return
|
|
250
|
+
const S = /* @__PURE__ */ function() {
|
|
251
|
+
return w.exports;
|
|
247
252
|
}();
|
|
248
253
|
export {
|
|
249
|
-
|
|
254
|
+
S as default
|
|
250
255
|
};
|