bk-magic-vue 2.5.3-beta.2 → 2.5.3-beta.3
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 +42 -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 +2035 -1664
- package/lib/input.js +1664 -1293
- package/lib/pagination.js +42 -7
- package/lib/slider.js +392 -21
- package/lib/table.js +42 -7
- package/lib/transfer.js +378 -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,44 @@
|
|
|
29581
29582
|
}
|
|
29582
29583
|
return '';
|
|
29583
29584
|
},
|
|
29585
|
+
handlerCompositionstart: function handlerCompositionstart(e) {
|
|
29586
|
+
if (this.inputType === 'number') {
|
|
29587
|
+
this.isOnComposition = true;
|
|
29588
|
+
}
|
|
29589
|
+
},
|
|
29590
|
+
handlerCompositionend: function handlerCompositionend(e) {
|
|
29591
|
+
this.isOnComposition = false;
|
|
29592
|
+
},
|
|
29584
29593
|
handlerInput: function handlerInput(event) {
|
|
29585
|
-
var
|
|
29586
|
-
|
|
29587
|
-
|
|
29588
|
-
|
|
29589
|
-
|
|
29594
|
+
var _this3 = this;
|
|
29595
|
+
return _asyncToGenerator( _regeneratorRuntime().mark(function _callee() {
|
|
29596
|
+
var value;
|
|
29597
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
29598
|
+
while (1) {
|
|
29599
|
+
switch (_context.prev = _context.next) {
|
|
29600
|
+
case 0:
|
|
29601
|
+
if (!_this3.isOnComposition) {
|
|
29602
|
+
_context.next = 6;
|
|
29603
|
+
break;
|
|
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
|
+
}))();
|
|
29590
29623
|
},
|
|
29591
29624
|
handlerClear: function handlerClear(event) {
|
|
29592
29625
|
this.curValue = '';
|
|
@@ -29709,7 +29742,9 @@
|
|
|
29709
29742
|
"focus": _vm.handlerFocus,
|
|
29710
29743
|
"blur": _vm.handlerBlur,
|
|
29711
29744
|
"input": _vm.handlerInput,
|
|
29712
|
-
"paste": _vm.handlerPaste
|
|
29745
|
+
"paste": _vm.handlerPaste,
|
|
29746
|
+
"compositionstart": _vm.handlerCompositionstart,
|
|
29747
|
+
"compositionend": _vm.handlerCompositionend
|
|
29713
29748
|
}
|
|
29714
29749
|
}, 'input', _vm.bindAttribute, false)), /^number$/i.test(_vm.type) && !_vm.disabled && !_vm.readonly ? [_vm.showControls ? _c('span', {
|
|
29715
29750
|
staticClass: "input-number-option"
|