bk-magic-vue 2.5.3-beta.11 → 2.5.3-beta.13
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 +6 -7
- 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 +5 -6
- package/lib/input.js +5 -6
- package/lib/pagination.js +5 -6
- package/lib/slider.js +5 -6
- package/lib/table.js +5 -6
- package/lib/tag-input.js +1 -1
- package/lib/transfer.js +5 -6
- package/package.json +1 -1
package/dist/bk-magic-vue.js
CHANGED
|
@@ -29543,13 +29543,12 @@
|
|
|
29543
29543
|
handlerBlur: function handlerBlur(event) {
|
|
29544
29544
|
var value = event.target.value;
|
|
29545
29545
|
if (/^number$/i.test(this.type) && value !== '') {
|
|
29546
|
+
if (isNaN(value)) {
|
|
29547
|
+
value = this.min === minSafeInteger$1 ? 0 : this.min;
|
|
29548
|
+
}
|
|
29546
29549
|
if (value !== '' && /^-?\d*(.\d*)?$/i.test(value)) {
|
|
29547
|
-
if (value
|
|
29548
|
-
value = this.
|
|
29549
|
-
} else {
|
|
29550
|
-
if (value > this.max || value < this.min) {
|
|
29551
|
-
value = this.getCurrentNumberValue();
|
|
29552
|
-
}
|
|
29550
|
+
if (value > this.max || value < this.min) {
|
|
29551
|
+
value = this.getCurrentNumberValue();
|
|
29553
29552
|
}
|
|
29554
29553
|
}
|
|
29555
29554
|
if (typeof this.precision !== 'undefined') {
|
|
@@ -43830,7 +43829,7 @@
|
|
|
43830
43829
|
if (!this.allowCreate && this.showList || this.allowCreate && this.focusItemIndex >= 0 && this.showList) {
|
|
43831
43830
|
this.handlerResultSelect(this.renderList[this.focusItemIndex], 'select');
|
|
43832
43831
|
this.showList = false;
|
|
43833
|
-
} else if (this.allowCreate) {
|
|
43832
|
+
} else if (this.allowCreate && this.curInputValue.trim()) {
|
|
43834
43833
|
event.preventDefault();
|
|
43835
43834
|
var tag = this.curInputValue;
|
|
43836
43835
|
this.handlerResultSelect(tag, 'custom');
|