@web-utils/component 3.0.6 → 3.1.0
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 +20 -57
- package/affix/index.mjs +26 -47
- package/aside-menu/index.mjs +18 -43
- package/avatar/index.mjs +27 -49
- package/awesome-button/index.mjs +35 -43
- package/capsule-tab/index.mjs +16 -34
- package/card/index.mjs +21 -76
- package/carousel/index.mjs +14 -49
- package/chat/index.mjs +104 -414
- package/chunk-file-uploader/index.mjs +21 -38
- package/chunks/FormTemp.aa57efb4.mjs +125 -0
- package/code-mirror-editor/index.mjs +69 -79
- package/color-picker/index.mjs +29 -60
- package/comment/index.mjs +17 -48
- package/confirm-button/index.mjs +11 -19
- package/confirmable/index.mjs +12 -20
- package/context-menu/index.mjs +42 -144
- package/count-up/index.mjs +18 -25
- package/custom-scrollbar/index.mjs +13 -22
- package/data-box/index.mjs +15 -66
- package/data-card/index.mjs +16 -65
- package/data-cardtext/index.mjs +16 -52
- package/data-display/index.mjs +18 -62
- package/data-icons/index.mjs +16 -68
- package/data-imgtext/index.mjs +18 -79
- package/data-operatext/index.mjs +18 -75
- package/data-panel/index.mjs +16 -63
- package/data-pay/index.mjs +20 -122
- package/data-price/index.mjs +18 -60
- package/data-progress/index.mjs +16 -67
- package/data-rotate/index.mjs +16 -66
- package/data-table-picker/index.mjs +25 -88
- package/data-tabs/index.mjs +16 -64
- package/dialog-form/index.mjs +48 -94
- package/dynamic-table/index.mjs +43 -127
- package/e-charts/index.mjs +21 -34
- package/easy-popup/index.mjs +35 -61
- package/editable-progress/index.mjs +22 -77
- package/editable-tree/index.mjs +235 -546
- package/egd-collapse/index.mjs +13 -26
- package/egd-collapse-item/index.mjs +27 -87
- package/element-dialog/index.mjs +69 -133
- package/empty-view/index.mjs +13 -33
- package/error-view/index.mjs +14 -34
- package/flex-column/index.mjs +15 -23
- package/flex-item/index.mjs +18 -26
- package/flex-row/index.mjs +23 -31
- package/flex-scroller/index.mjs +16 -27
- package/flow/index.mjs +70 -110
- package/flow-designer/index.mjs +1215 -4804
- package/flow-node/index.mjs +15 -51
- package/flow-viewer/index.mjs +64 -89
- package/form-block/index.mjs +43 -62
- package/form-button/index.mjs +10 -18
- package/form-cascader/index.mjs +49 -100
- package/form-checkbox-group/index.mjs +43 -110
- package/form-date-picker/index.mjs +51 -97
- package/form-holder/index.mjs +25 -42
- package/form-input/index.mjs +40 -90
- package/form-input-email/index.mjs +35 -79
- package/form-input-id-card/index.mjs +40 -87
- package/form-input-number/index.mjs +42 -102
- package/form-input-phone-number/index.mjs +34 -75
- package/form-input-tag/index.mjs +31 -73
- package/form-input-time/index.mjs +42 -87
- package/form-item/index.mjs +70 -89
- package/form-item-config-provider/index.mjs +12 -20
- package/form-item-group/index.mjs +46 -65
- package/form-radio-group/index.mjs +50 -108
- package/form-select/index.mjs +44 -95
- package/form-switch/index.mjs +38 -85
- package/form-textarea/index.mjs +31 -75
- package/form-view/index.mjs +112 -260
- package/fy-array/index.mjs +35 -121
- package/fy-article/index.mjs +12 -43
- package/fy-cascader/index.mjs +26 -67
- package/fy-checkbox/index.mjs +27 -77
- package/fy-code/index.mjs +19 -33
- package/fy-curd/index.mjs +810 -2017
- package/fy-date/index.mjs +18 -59
- package/fy-draggable/index.mjs +81 -140
- package/fy-dynamic/index.mjs +85 -204
- package/fy-empty/index.mjs +14 -35
- package/fy-form/index.mjs +254 -571
- package/fy-form-design/index.mjs +1489 -6084
- package/fy-form-design/style.css +1 -1
- package/fy-input/index.mjs +34 -104
- package/fy-input-color/index.mjs +22 -67
- package/fy-input-icon/index.mjs +37 -122
- package/fy-input-map/index.mjs +57 -149
- package/fy-input-number/index.mjs +18 -53
- package/fy-input-table/index.mjs +36 -102
- package/fy-input-tree/index.mjs +51 -138
- package/fy-progress/index.mjs +12 -31
- package/fy-radio/index.mjs +20 -51
- package/fy-rate/index.mjs +18 -51
- package/fy-select/index.mjs +49 -134
- package/fy-slider/index.mjs +19 -52
- package/fy-switch/index.mjs +18 -48
- package/fy-tabs/index.mjs +19 -51
- package/fy-time/index.mjs +22 -62
- package/fy-title/index.mjs +14 -25
- package/fy-tree/index.mjs +74 -216
- package/fy-u-editor/index.mjs +50 -64
- package/fy-upload/index.mjs +167 -338
- package/guide-steps/index.mjs +33 -53
- package/highlight-j-s/index.mjs +13 -27
- package/icon-card/index.mjs +12 -36
- package/icon-temp/index.mjs +12 -34
- package/iframe-window/index.mjs +13 -40
- package/image-cropper/index.mjs +46 -171
- package/image-preview/index.mjs +54 -168
- package/image-viewer/index.mjs +24 -50
- package/index.css +1 -0
- package/index.mjs +3973 -501
- package/input-number/index.mjs +84 -173
- package/input-number-range/index.mjs +20 -70
- package/j-s-x-component/index.mjs +3 -3
- package/keep-view-alive/index.mjs +47 -55
- package/keyboard/index.mjs +100 -113
- package/license/index.mjs +34 -51
- package/loading-view/index.mjs +14 -34
- package/login/index.mjs +33 -161
- package/monaco-editor/index.mjs +13 -21
- package/name-avatar/index.mjs +13 -32
- package/nav-bar/index.mjs +12 -31
- package/not-implement/index.mjs +14 -25
- package/notice/index.mjs +32 -80
- package/package.json +1 -1
- package/page/index.mjs +11 -23
- package/page-header/index.mjs +16 -37
- package/page-index/index.mjs +42 -93
- package/page-index-top/index.mjs +42 -84
- package/page-skeleton/index.mjs +24 -39
- package/page-skeleton-new/index.mjs +21 -68
- package/pageable-table/index.mjs +105 -227
- package/pageable-view/index.mjs +30 -83
- package/photo-swipe/index.mjs +62 -87
- package/present-view/index.mjs +114 -267
- package/queue/index.mjs +14 -29
- package/record-video/index.mjs +29 -66
- package/resize-observer/index.mjs +18 -30
- package/search/index.mjs +47 -81
- package/search-popover/index.mjs +57 -329
- package/sign/index.mjs +43 -60
- package/sign-panel/index.mjs +40 -151
- package/skeleton/index.mjs +18 -44
- package/split-pane/index.mjs +45 -129
- package/stateful/index.mjs +18 -26
- package/static-pageable-table/index.mjs +18 -44
- package/swiper/index.mjs +53 -94
- package/tab/index.mjs +13 -39
- package/tab-item/index.mjs +23 -37
- package/table-column/index.mjs +27 -35
- package/table-view/index.mjs +89 -209
- package/tag-render/index.mjs +34 -69
- package/text-ellipsis/index.mjs +22 -47
- package/tinymce-editor/index.mjs +174 -285
- package/toolbar/index.mjs +21 -42
- package/toolbar-button/index.mjs +25 -54
- package/verify/index.mjs +16 -29
- package/vue-cron/index.mjs +272 -1089
- package/vue-qr-code/index.mjs +19 -27
- package/vue-quill-editor/index.mjs +15 -27
- package/vue-tags-input/index.mjs +104 -224
- package/vue-tree-select/index.mjs +595 -742
- package/vue-video-player/index.mjs +42 -57
- package/watermark/index.mjs +27 -35
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +50 -112
- package/chunks/FormTemp.7f91629d.mjs +0 -165
- /package/chunks/{vueComponentNormalizer.446f5dc4.mjs → _plugin-vue2_normalizer.446f5dc4.mjs} +0 -0
package/input-number/index.mjs
CHANGED
|
@@ -1,122 +1,13 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { i as
|
|
4
|
-
import { n as
|
|
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 = {
|
|
1
|
+
import s from "element-ui/src/mixins/focus";
|
|
2
|
+
import u from "element-ui/src/directives/repeat-click";
|
|
3
|
+
import { i as o } from "../chunks/input-number-mixin.41a066be.mjs";
|
|
4
|
+
import { n as a } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
5
|
+
const l = {
|
|
115
6
|
name: "InputNumber",
|
|
116
7
|
directives: {
|
|
117
|
-
repeatClick:
|
|
8
|
+
repeatClick: u
|
|
118
9
|
},
|
|
119
|
-
mixins: [
|
|
10
|
+
mixins: [s("input"), o],
|
|
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 i !== void 0 ? (r > i && console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"), i) : Math.max(n(
|
|
33
|
+
const { value: t, step: e, getPrecision: n, precision: i } = this, r = n(e);
|
|
34
|
+
return i !== void 0 ? (r > i && console.warn("[Element Warn][InputNumber]precision should not be less than the decimal places of step"), i) : Math.max(n(t), r);
|
|
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), n = Math.pow(10, e);
|
|
55
|
+
t = Math.round(t / this.step) * n * this.step / n;
|
|
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
71
|
const n = this.getPrecision(this.step), i = Math.pow(10, n);
|
|
181
|
-
|
|
72
|
+
e = Math.round(e / this.step) * i * this.step / i;
|
|
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,99 @@ 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
|
|
96
|
+
const e = t.toString(), n = e.indexOf(".");
|
|
206
97
|
let i = 0;
|
|
207
|
-
return n !== -1 && (i =
|
|
98
|
+
return n !== -1 && (i = e.length - n - 1), i;
|
|
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
103
|
const n = Math.pow(10, this.numPrecision);
|
|
213
|
-
return this.toPrecision((n *
|
|
104
|
+
return this.toPrecision((n * t + n * e) / n);
|
|
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
109
|
const n = Math.pow(10, this.numPrecision);
|
|
219
|
-
return this.toPrecision((n *
|
|
110
|
+
return this.toPrecision((n * t - n * e) / n);
|
|
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
|
-
|
|
145
|
+
};
|
|
146
|
+
var c = function() {
|
|
147
|
+
var e = this, n = e._self._c;
|
|
148
|
+
return n("div", { class: [
|
|
149
|
+
"input-number",
|
|
150
|
+
"el-input-number",
|
|
151
|
+
e.inputNumberSize ? `el-input-number--${e.inputNumberSize}` : "",
|
|
152
|
+
{ "is-disabled": e.inputNumberDisabled, "is-without-controls": !e.controls, "is-controls-right": e.controlsAtRight }
|
|
153
|
+
], on: { dragstart: function(i) {
|
|
154
|
+
i.preventDefault();
|
|
155
|
+
} } }, [e.controls ? n("span", { directives: [{ name: "repeat-click", rawName: "v-repeat-click", value: e.decrease, expression: "decrease" }], staticClass: "el-input-number__decrease", class: { "is-disabled": e.minDisabled }, attrs: { role: "button" }, on: { keydown: function(i) {
|
|
156
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.decrease.apply(null, arguments);
|
|
157
|
+
} } }, [n("i", { class: `el-icon-${e.controlsAtRight ? "arrow-down" : "minus"}` })]) : e._e(), e.controls ? n("span", { directives: [{ name: "repeat-click", rawName: "v-repeat-click", value: e.increase, expression: "increase" }], staticClass: "el-input-number__increase", class: { "is-disabled": e.maxDisabled }, attrs: { role: "button" }, on: { keydown: function(i) {
|
|
158
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.increase.apply(null, arguments);
|
|
159
|
+
} } }, [n("i", { class: `el-icon-${e.controlsAtRight ? "arrow-up" : "plus"}` })]) : e._e(), n("ElInput", { ref: "input", attrs: { value: e.displayValue, placeholder: e.placeholder, disabled: e.inputNumberDisabled, size: e.inputNumberSize, max: e.max, "prefix-icon": e.prefixIcon, "suffix-icon": e.suffixIcon, min: e.min, name: e.name, label: e.label }, on: { blur: e.handleBlur, focus: e.handleFocus, input: e.handleInput, change: e.handleInputChange }, nativeOn: { keydown: [function(i) {
|
|
160
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "up", 38, i.key, ["Up", "ArrowUp"]) ? null : (i.preventDefault(), e.increase.apply(null, arguments));
|
|
161
|
+
}, function(i) {
|
|
162
|
+
return !i.type.indexOf("key") && e._k(i.keyCode, "down", 40, i.key, ["Down", "ArrowDown"]) ? null : (i.preventDefault(), e.decrease.apply(null, arguments));
|
|
163
|
+
}] }, scopedSlots: e._u([{ key: "append", fn: function() {
|
|
164
|
+
return [e._t("append")];
|
|
165
|
+
}, proxy: !0 }, { key: "prefix", fn: function() {
|
|
166
|
+
return [e._t("prefix")];
|
|
167
|
+
}, proxy: !0 }, { key: "prepend", fn: function() {
|
|
168
|
+
return [e._t("prepend")];
|
|
169
|
+
}, proxy: !0 }, { key: "suffix", fn: function() {
|
|
170
|
+
return [e._t("suffix")];
|
|
171
|
+
}, proxy: !0 }], null, !0) })], 1);
|
|
172
|
+
}, p = [], h = /* @__PURE__ */ a(
|
|
173
|
+
l,
|
|
257
174
|
c,
|
|
258
175
|
p,
|
|
259
176
|
!1,
|
|
260
|
-
|
|
177
|
+
null,
|
|
261
178
|
null,
|
|
262
179
|
null,
|
|
263
180
|
null
|
|
264
181
|
);
|
|
265
|
-
|
|
266
|
-
for (let t in s)
|
|
267
|
-
this[t] = s[t];
|
|
268
|
-
}
|
|
269
|
-
const x = /* @__PURE__ */ function() {
|
|
270
|
-
return d.exports;
|
|
271
|
-
}();
|
|
182
|
+
const _ = h.exports;
|
|
272
183
|
export {
|
|
273
|
-
|
|
184
|
+
_ as default
|
|
274
185
|
};
|
|
@@ -1,57 +1,6 @@
|
|
|
1
|
-
import { isNotEmpty as
|
|
2
|
-
import { n as
|
|
3
|
-
|
|
4
|
-
var t = this, e = t.$createElement, n = t._self._c || e;
|
|
5
|
-
return n("div", {
|
|
6
|
-
staticClass: "input-number-range"
|
|
7
|
-
}, [n("ElInputNumber", {
|
|
8
|
-
staticClass: "flex-item",
|
|
9
|
-
staticStyle: {
|
|
10
|
-
width: "auto"
|
|
11
|
-
},
|
|
12
|
-
attrs: {
|
|
13
|
-
controls: t.controls,
|
|
14
|
-
disabled: t.disabled,
|
|
15
|
-
size: "mini"
|
|
16
|
-
},
|
|
17
|
-
on: {
|
|
18
|
-
input: t.emitInput
|
|
19
|
-
},
|
|
20
|
-
model: {
|
|
21
|
-
value: t.val[0],
|
|
22
|
-
callback: function(s) {
|
|
23
|
-
t.$set(t.val, 0, s);
|
|
24
|
-
},
|
|
25
|
-
expression: "val[0]"
|
|
26
|
-
}
|
|
27
|
-
}), n("span", {
|
|
28
|
-
staticStyle: {
|
|
29
|
-
padding: "0 6px",
|
|
30
|
-
"font-size": "12px"
|
|
31
|
-
}
|
|
32
|
-
}, [t._v(t._s(t.separator))]), n("ElInputNumber", {
|
|
33
|
-
staticClass: "flex-item",
|
|
34
|
-
staticStyle: {
|
|
35
|
-
width: "auto"
|
|
36
|
-
},
|
|
37
|
-
attrs: {
|
|
38
|
-
controls: t.controls,
|
|
39
|
-
disabled: t.disabled,
|
|
40
|
-
size: "mini"
|
|
41
|
-
},
|
|
42
|
-
on: {
|
|
43
|
-
input: t.emitInput
|
|
44
|
-
},
|
|
45
|
-
model: {
|
|
46
|
-
value: t.val[1],
|
|
47
|
-
callback: function(s) {
|
|
48
|
-
t.$set(t.val, 1, s);
|
|
49
|
-
},
|
|
50
|
-
expression: "val[1]"
|
|
51
|
-
}
|
|
52
|
-
})], 1);
|
|
53
|
-
}, l = [];
|
|
54
|
-
const u = {
|
|
1
|
+
import { isNotEmpty as s } from "@web-utils/core";
|
|
2
|
+
import { n as i } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
3
|
+
const l = {
|
|
55
4
|
name: "InputNumberRange",
|
|
56
5
|
props: {
|
|
57
6
|
value: {
|
|
@@ -76,9 +25,9 @@ const u = {
|
|
|
76
25
|
watch: {
|
|
77
26
|
value: {
|
|
78
27
|
immediate: !0,
|
|
79
|
-
handler(
|
|
80
|
-
const
|
|
81
|
-
|
|
28
|
+
handler(e) {
|
|
29
|
+
const t = [void 0, void 0];
|
|
30
|
+
s(e == null ? void 0 : e[0]) && (t[0] = e[0]), s(e == null ? void 0 : e[1]) && (t[1] = e[1]), this.val = t;
|
|
82
31
|
}
|
|
83
32
|
}
|
|
84
33
|
},
|
|
@@ -87,24 +36,25 @@ const u = {
|
|
|
87
36
|
this.$emit("input", this.val);
|
|
88
37
|
}
|
|
89
38
|
}
|
|
90
|
-
}
|
|
91
|
-
var
|
|
92
|
-
|
|
93
|
-
|
|
39
|
+
};
|
|
40
|
+
var r = function() {
|
|
41
|
+
var t = this, n = t._self._c;
|
|
42
|
+
return n("div", { staticClass: "input-number-range" }, [n("ElInputNumber", { staticClass: "flex-item", staticStyle: { width: "auto" }, attrs: { controls: t.controls, disabled: t.disabled, size: "mini" }, on: { input: t.emitInput }, model: { value: t.val[0], callback: function(a) {
|
|
43
|
+
t.$set(t.val, 0, a);
|
|
44
|
+
}, expression: "val[0]" } }), n("span", { staticStyle: { padding: "0 6px", "font-size": "12px" } }, [t._v(t._s(t.separator))]), n("ElInputNumber", { staticClass: "flex-item", staticStyle: { width: "auto" }, attrs: { controls: t.controls, disabled: t.disabled, size: "mini" }, on: { input: t.emitInput }, model: { value: t.val[1], callback: function(a) {
|
|
45
|
+
t.$set(t.val, 1, a);
|
|
46
|
+
}, expression: "val[1]" } })], 1);
|
|
47
|
+
}, o = [], u = /* @__PURE__ */ i(
|
|
94
48
|
l,
|
|
49
|
+
r,
|
|
50
|
+
o,
|
|
95
51
|
!1,
|
|
96
|
-
|
|
52
|
+
null,
|
|
97
53
|
null,
|
|
98
54
|
null,
|
|
99
55
|
null
|
|
100
56
|
);
|
|
101
|
-
|
|
102
|
-
for (let e in a)
|
|
103
|
-
this[e] = a[e];
|
|
104
|
-
}
|
|
105
|
-
const v = /* @__PURE__ */ function() {
|
|
106
|
-
return d.exports;
|
|
107
|
-
}();
|
|
57
|
+
const c = u.exports;
|
|
108
58
|
export {
|
|
109
|
-
|
|
59
|
+
c as default
|
|
110
60
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { h as t } from "vue";
|
|
2
|
+
const n = {
|
|
2
3
|
name: "JSXComponent",
|
|
3
4
|
props: {
|
|
4
5
|
msg: {
|
|
@@ -7,10 +8,9 @@ const e = {
|
|
|
7
8
|
}
|
|
8
9
|
},
|
|
9
10
|
render() {
|
|
10
|
-
const t = arguments[0];
|
|
11
11
|
return t("div", [this.msg]);
|
|
12
12
|
}
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
n as default
|
|
16
16
|
};
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { n as
|
|
1
|
+
import { n as y } from "../chunks/_plugin-vue2_normalizer.446f5dc4.mjs";
|
|
2
2
|
const C = Object.prototype.toString;
|
|
3
|
-
function
|
|
3
|
+
function f(e) {
|
|
4
4
|
return e != null;
|
|
5
5
|
}
|
|
6
6
|
function g(e) {
|
|
7
7
|
return e.isComment && e.asyncFactory;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function x(e) {
|
|
10
10
|
if (Array.isArray(e))
|
|
11
|
-
for (let
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
return
|
|
11
|
+
for (let n = 0; n < e.length; n++) {
|
|
12
|
+
const t = e[n];
|
|
13
|
+
if (f(t) && (f(t.componentOptions) || g(t)))
|
|
14
|
+
return t;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
function
|
|
17
|
+
function _(e) {
|
|
18
18
|
return C.call(e) === "[object RegExp]";
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function d(e) {
|
|
21
21
|
return e && (e.Ctor.options.name || e.tag);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
return Array.isArray(e) ? e.indexOf(
|
|
23
|
+
function u(e, n) {
|
|
24
|
+
return Array.isArray(e) ? e.indexOf(n) > -1 : typeof e == "string" ? e.split(",").indexOf(n) > -1 : _(e) ? e.test(n) : !1;
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function p(e, n) {
|
|
27
27
|
if (e.length) {
|
|
28
|
-
const
|
|
29
|
-
if (
|
|
30
|
-
return e.splice(
|
|
28
|
+
const t = e.indexOf(n);
|
|
29
|
+
if (t > -1)
|
|
30
|
+
return e.splice(t, 1);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const { cache:
|
|
35
|
-
for (const i in
|
|
36
|
-
const s =
|
|
33
|
+
function m(e, n) {
|
|
34
|
+
const { cache: t, keys: o, _vnode: c } = e;
|
|
35
|
+
for (const i in t) {
|
|
36
|
+
const s = t[i];
|
|
37
37
|
if (s) {
|
|
38
38
|
const a = s.name;
|
|
39
|
-
a && !
|
|
39
|
+
a && !n(a) && h(t, i, o, c);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
function h(e,
|
|
44
|
-
const c = e[
|
|
45
|
-
c && (!o || c.tag !== o.tag) && c.componentInstance.$destroy(), e[
|
|
43
|
+
function h(e, n, t, o) {
|
|
44
|
+
const c = e[n];
|
|
45
|
+
c && (!o || c.tag !== o.tag) && c.componentInstance.$destroy(), e[n] = null, p(t, n);
|
|
46
46
|
}
|
|
47
47
|
const k = {
|
|
48
48
|
name: "KeepViewAlive",
|
|
@@ -61,9 +61,9 @@ const k = {
|
|
|
61
61
|
},
|
|
62
62
|
mounted() {
|
|
63
63
|
this.cacheVNode(), this.$watch("include", (e) => {
|
|
64
|
-
|
|
64
|
+
m(this, (n) => u(e, n));
|
|
65
65
|
}), this.$watch("exclude", (e) => {
|
|
66
|
-
|
|
66
|
+
m(this, (n) => !u(e, n));
|
|
67
67
|
});
|
|
68
68
|
},
|
|
69
69
|
updated() {
|
|
@@ -71,57 +71,49 @@ const k = {
|
|
|
71
71
|
},
|
|
72
72
|
methods: {
|
|
73
73
|
cacheVNode() {
|
|
74
|
-
const { cache: e, keys:
|
|
75
|
-
if (
|
|
76
|
-
const { tag: c, componentInstance: i, componentOptions: s } =
|
|
74
|
+
const { cache: e, keys: n, vnodeToCache: t, keyToCache: o } = this;
|
|
75
|
+
if (t) {
|
|
76
|
+
const { tag: c, componentInstance: i, componentOptions: s } = t;
|
|
77
77
|
e[o] = {
|
|
78
|
-
name:
|
|
78
|
+
name: d(s),
|
|
79
79
|
tag: c,
|
|
80
80
|
cid: s.Ctor.cid,
|
|
81
81
|
componentInstance: i
|
|
82
|
-
},
|
|
82
|
+
}, n.push(o), this.max && n.length > parseInt(this.max) && h(e, n[0], n, this._vnode), this.vnodeToCache = null;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
render() {
|
|
87
|
-
const e = this.$slots.default,
|
|
88
|
-
if (
|
|
89
|
-
const o =
|
|
87
|
+
const e = this.$slots.default, n = x(e), t = n && n.componentOptions;
|
|
88
|
+
if (t) {
|
|
89
|
+
const o = d(t), { include: c, exclude: i } = this;
|
|
90
90
|
if (
|
|
91
91
|
// not included
|
|
92
|
-
c && (!o || !
|
|
93
|
-
i && o &&
|
|
92
|
+
c && (!o || !u(c, o)) || // excluded
|
|
93
|
+
i && o && u(i, o)
|
|
94
94
|
)
|
|
95
|
-
return
|
|
96
|
-
const { cache: s, keys: a } = this, r =
|
|
95
|
+
return n;
|
|
96
|
+
const { cache: s, keys: a } = this, r = n.key == null ? (
|
|
97
97
|
// same constructor may get registered as different local components
|
|
98
98
|
// so cid alone is not enough (#3269)
|
|
99
|
-
|
|
100
|
-
) :
|
|
101
|
-
|
|
99
|
+
t.Ctor.cid + (t.tag ? `::${t.tag}` : "")
|
|
100
|
+
) : n.key, l = s[r];
|
|
101
|
+
l ? l.cid === t.Ctor.cid ? (n.componentInstance = l.componentInstance, p(a, r), a.push(r)) : (l.componentInstance.$destroy(), s[r] = null, this.vnodeToCache = n, this.keyToCache = r) : (this.vnodeToCache = n, this.keyToCache = r), n.data.keepAlive = !0;
|
|
102
102
|
}
|
|
103
|
-
return
|
|
103
|
+
return n || e && e[0];
|
|
104
104
|
}
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
const m = {};
|
|
108
|
-
var T = /* @__PURE__ */ _(
|
|
105
|
+
}, v = null, A = null;
|
|
106
|
+
var O = /* @__PURE__ */ y(
|
|
109
107
|
k,
|
|
108
|
+
v,
|
|
110
109
|
A,
|
|
111
|
-
O,
|
|
112
110
|
!1,
|
|
113
|
-
|
|
111
|
+
null,
|
|
114
112
|
null,
|
|
115
113
|
null,
|
|
116
114
|
null
|
|
117
115
|
);
|
|
118
|
-
|
|
119
|
-
for (let t in m)
|
|
120
|
-
this[t] = m[t];
|
|
121
|
-
}
|
|
122
|
-
const b = /* @__PURE__ */ function() {
|
|
123
|
-
return T.exports;
|
|
124
|
-
}();
|
|
116
|
+
const I = O.exports;
|
|
125
117
|
export {
|
|
126
|
-
|
|
118
|
+
I as default
|
|
127
119
|
};
|