bk-magic-vue 2.5.2 → 2.5.3-beta.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/dist/bk-magic-vue.js +16 -0
- package/dist/bk-magic-vue.min.js +1 -1
- package/dist/bk-magic-vue.min.js.gz +0 -0
- package/dist/bk-magic-vue.min.js.map +1 -1
- package/lib/card.js +16 -0
- package/lib/input.js +16 -0
- package/lib/pagination.js +16 -0
- package/lib/slider.js +16 -0
- package/lib/table.js +16 -0
- package/lib/transfer.js +16 -0
- package/package.json +1 -1
package/dist/bk-magic-vue.js
CHANGED
|
@@ -29507,6 +29507,22 @@
|
|
|
29507
29507
|
event.preventDefault();
|
|
29508
29508
|
this.handleNumberDelete(event);
|
|
29509
29509
|
}
|
|
29510
|
+
if (document.getSelection().type !== 'Range') {
|
|
29511
|
+
if (value.substring(target.selectionStart, target.selectionEnd + 1) === '-') {
|
|
29512
|
+
var keyCodeList = [48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
|
|
29513
|
+
96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
|
|
29514
|
+
189,
|
|
29515
|
+
109,
|
|
29516
|
+
190,
|
|
29517
|
+
110
|
|
29518
|
+
];
|
|
29519
|
+
if (keyCodeList.indexOf(keyCode) > -1) {
|
|
29520
|
+
event.stopPropagation();
|
|
29521
|
+
event.preventDefault();
|
|
29522
|
+
return false;
|
|
29523
|
+
}
|
|
29524
|
+
}
|
|
29525
|
+
}
|
|
29510
29526
|
}
|
|
29511
29527
|
this.$emit('keydown', value, event);
|
|
29512
29528
|
},
|