bk-magic-vue 2.5.1 → 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 +25 -2
- 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/directives/tooltips.js +9 -2
- package/lib/form-item.js +9 -2
- package/lib/input.js +16 -0
- package/lib/pagination.js +16 -0
- package/lib/slider.js +25 -2
- package/lib/table.js +16 -0
- package/lib/tag-input.js +9 -2
- package/lib/transfer.js +16 -0
- package/package.json +1 -1
package/dist/bk-magic-vue.js
CHANGED
|
@@ -28401,8 +28401,15 @@
|
|
|
28401
28401
|
if (selector instanceof Vue) {
|
|
28402
28402
|
options.content = selector.$el;
|
|
28403
28403
|
} else if (typeof selector === 'string') {
|
|
28404
|
-
|
|
28405
|
-
|
|
28404
|
+
try {
|
|
28405
|
+
var element = document.querySelector(selector);
|
|
28406
|
+
if (element) {
|
|
28407
|
+
options.content = element;
|
|
28408
|
+
}
|
|
28409
|
+
} catch (e) {
|
|
28410
|
+
var _element = document.createElement('div');
|
|
28411
|
+
_element.innerHTML = selector;
|
|
28412
|
+
}
|
|
28406
28413
|
}
|
|
28407
28414
|
}
|
|
28408
28415
|
if (options.html) {
|
|
@@ -29500,6 +29507,22 @@
|
|
|
29500
29507
|
event.preventDefault();
|
|
29501
29508
|
this.handleNumberDelete(event);
|
|
29502
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
|
+
}
|
|
29503
29526
|
}
|
|
29504
29527
|
this.$emit('keydown', value, event);
|
|
29505
29528
|
},
|