@v-c/input-number 1.1.1 → 1.1.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/dist/InputNumber.js +4 -3
- package/package.json +4 -4
package/dist/InputNumber.js
CHANGED
|
@@ -266,14 +266,15 @@ var InputNumber = /* @__PURE__ */ defineComponent((props, { attrs, slots, expose
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
watchEffect((onCleanup) => {
|
|
269
|
-
|
|
269
|
+
const input = inputRef.value;
|
|
270
|
+
if (props.changeOnWheel && focus.value && input) {
|
|
270
271
|
const onWheel = (event) => {
|
|
271
272
|
onInternalWheel(event);
|
|
272
273
|
event.preventDefault();
|
|
273
274
|
};
|
|
274
|
-
|
|
275
|
+
input.addEventListener("wheel", onWheel, { passive: false });
|
|
275
276
|
onCleanup(() => {
|
|
276
|
-
|
|
277
|
+
input.removeEventListener("wheel", onWheel);
|
|
277
278
|
resetWheel();
|
|
278
279
|
});
|
|
279
280
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/input-number",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.2",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/antdv-next/vue-components/tree/next/packages/input-number",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"vue": "^3.0.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@v-c/input": "^1.
|
|
34
|
-
"@v-c/
|
|
35
|
-
"@v-c/
|
|
33
|
+
"@v-c/input": "^1.2.0",
|
|
34
|
+
"@v-c/util": "^1.3.2",
|
|
35
|
+
"@v-c/mini-decimal": "^1.0.2"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "vite build",
|