bk-magic-vue 2.5.3-beta.3 → 2.5.3-beta.4
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 -32
- 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 +1683 -2035
- package/lib/input.js +1312 -1664
- package/lib/pagination.js +16 -32
- package/lib/slider.js +30 -382
- package/lib/table.js +16 -32
- package/lib/transfer.js +16 -368
- package/package.json +1 -1
package/dist/bk-magic-vue.js
CHANGED
|
@@ -29583,43 +29583,27 @@
|
|
|
29583
29583
|
return '';
|
|
29584
29584
|
},
|
|
29585
29585
|
handlerCompositionstart: function handlerCompositionstart(e) {
|
|
29586
|
-
|
|
29587
|
-
this.isOnComposition = true;
|
|
29588
|
-
}
|
|
29586
|
+
this.isOnComposition = true;
|
|
29589
29587
|
},
|
|
29590
29588
|
handlerCompositionend: function handlerCompositionend(e) {
|
|
29591
|
-
this.isOnComposition
|
|
29589
|
+
if (this.inputType === 'number' && this.isOnComposition) {
|
|
29590
|
+
e.target.value = this.curValue;
|
|
29591
|
+
this.isOnComposition = false;
|
|
29592
|
+
this.handlerInput(e);
|
|
29593
|
+
}
|
|
29592
29594
|
},
|
|
29593
29595
|
handlerInput: function handlerInput(event) {
|
|
29594
29596
|
var _this3 = this;
|
|
29595
|
-
|
|
29596
|
-
|
|
29597
|
-
|
|
29598
|
-
|
|
29599
|
-
|
|
29600
|
-
|
|
29601
|
-
|
|
29602
|
-
|
|
29603
|
-
|
|
29604
|
-
|
|
29605
|
-
event.target.value = _this3.curValue;
|
|
29606
|
-
_this3.isOnComposition = false;
|
|
29607
|
-
event.stopPropagation();
|
|
29608
|
-
event.preventDefault();
|
|
29609
|
-
return _context.abrupt("return", false);
|
|
29610
|
-
case 6:
|
|
29611
|
-
value = event.target.value;
|
|
29612
|
-
_this3.setCurValue(value);
|
|
29613
|
-
_this3.$emit('input', value, event);
|
|
29614
|
-
_this3.$emit('change', value, event);
|
|
29615
|
-
_this3.dispatch('bk-form-item', 'form-change');
|
|
29616
|
-
case 11:
|
|
29617
|
-
case "end":
|
|
29618
|
-
return _context.stop();
|
|
29619
|
-
}
|
|
29620
|
-
}
|
|
29621
|
-
}, _callee);
|
|
29622
|
-
}))();
|
|
29597
|
+
if (this.isOnComposition) {
|
|
29598
|
+
return;
|
|
29599
|
+
}
|
|
29600
|
+
this.$nextTick(function () {
|
|
29601
|
+
var value = event.target.value;
|
|
29602
|
+
_this3.setCurValue(value);
|
|
29603
|
+
_this3.$emit('input', value, event);
|
|
29604
|
+
_this3.$emit('change', value, event);
|
|
29605
|
+
_this3.dispatch('bk-form-item', 'form-change');
|
|
29606
|
+
});
|
|
29623
29607
|
},
|
|
29624
29608
|
handlerClear: function handlerClear(event) {
|
|
29625
29609
|
this.curValue = '';
|