bk-magic-vue 2.5.10-beta.1 → 2.5.10-beta.2

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.
@@ -29593,6 +29593,10 @@
29593
29593
  type: Boolean,
29594
29594
  default: false
29595
29595
  },
29596
+ allowNumberCopy: {
29597
+ type: Boolean,
29598
+ default: true
29599
+ },
29596
29600
  showOverflowTooltips: {
29597
29601
  type: Boolean,
29598
29602
  default: false
@@ -29952,8 +29956,9 @@
29952
29956
  var target = event.currentTarget;
29953
29957
  var value = target.value;
29954
29958
  var isPaste = (event.ctrlKey || event.metaKey) && keyCode === 86;
29959
+ var isCopy = (event.ctrlKey || event.metaKey) && (event.key === 'c' || event.key === 'C');
29955
29960
  if (this.inputType === 'number') {
29956
- if (!(this.allowNumberPaste && isPaste) && (this.validKeyCodeList.indexOf(keyCode) < 0 || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey)) {
29961
+ if (!(this.allowNumberPaste && isPaste) && !(this.allowNumberCopy && isCopy) && (this.validKeyCodeList.indexOf(keyCode) < 0 || event.shiftKey || event.altKey || event.ctrlKey || event.metaKey)) {
29957
29962
  event.stopPropagation();
29958
29963
  event.preventDefault();
29959
29964
  return false;