bk-magic-vue 2.5.3-beta.2 → 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 +26 -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 +26 -7
- package/lib/input.js +26 -7
- package/lib/pagination.js +26 -7
- package/lib/slider.js +26 -7
- package/lib/table.js +26 -7
- package/lib/transfer.js +26 -7
- package/package.json +1 -1
package/dist/bk-magic-vue.js
CHANGED
|
@@ -29211,7 +29211,8 @@
|
|
|
29211
29211
|
38, 40, 37, 39,
|
|
29212
29212
|
46,
|
|
29213
29213
|
9
|
|
29214
|
-
]
|
|
29214
|
+
],
|
|
29215
|
+
isOnComposition: false
|
|
29215
29216
|
};
|
|
29216
29217
|
},
|
|
29217
29218
|
computed: {
|
|
@@ -29581,12 +29582,28 @@
|
|
|
29581
29582
|
}
|
|
29582
29583
|
return '';
|
|
29583
29584
|
},
|
|
29585
|
+
handlerCompositionstart: function handlerCompositionstart(e) {
|
|
29586
|
+
this.isOnComposition = true;
|
|
29587
|
+
},
|
|
29588
|
+
handlerCompositionend: function handlerCompositionend(e) {
|
|
29589
|
+
if (this.inputType === 'number' && this.isOnComposition) {
|
|
29590
|
+
e.target.value = this.curValue;
|
|
29591
|
+
this.isOnComposition = false;
|
|
29592
|
+
this.handlerInput(e);
|
|
29593
|
+
}
|
|
29594
|
+
},
|
|
29584
29595
|
handlerInput: function handlerInput(event) {
|
|
29585
|
-
var
|
|
29586
|
-
this.
|
|
29587
|
-
|
|
29588
|
-
|
|
29589
|
-
this
|
|
29596
|
+
var _this3 = this;
|
|
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
|
+
});
|
|
29590
29607
|
},
|
|
29591
29608
|
handlerClear: function handlerClear(event) {
|
|
29592
29609
|
this.curValue = '';
|
|
@@ -29709,7 +29726,9 @@
|
|
|
29709
29726
|
"focus": _vm.handlerFocus,
|
|
29710
29727
|
"blur": _vm.handlerBlur,
|
|
29711
29728
|
"input": _vm.handlerInput,
|
|
29712
|
-
"paste": _vm.handlerPaste
|
|
29729
|
+
"paste": _vm.handlerPaste,
|
|
29730
|
+
"compositionstart": _vm.handlerCompositionstart,
|
|
29731
|
+
"compositionend": _vm.handlerCompositionend
|
|
29713
29732
|
}
|
|
29714
29733
|
}, 'input', _vm.bindAttribute, false)), /^number$/i.test(_vm.type) && !_vm.disabled && !_vm.readonly ? [_vm.showControls ? _c('span', {
|
|
29715
29734
|
staticClass: "input-number-option"
|