bk-magic-vue 2.5.5 → 2.5.6-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.
@@ -12359,6 +12359,13 @@
12359
12359
  instance.ins.remove();
12360
12360
  }
12361
12361
  }
12362
+ },
12363
+ isMaskShown: function isMaskShown() {
12364
+ var mask = document.querySelector('[data-bkpop-mask]');
12365
+ if (mask) {
12366
+ return mask.classList.contains('show-active');
12367
+ }
12368
+ return false;
12362
12369
  }
12363
12370
  };
12364
12371
  defineProperty$1(popManager, 'container', {
@@ -35507,7 +35514,7 @@
35507
35514
  default: true
35508
35515
  },
35509
35516
  width: {
35510
- type: Number,
35517
+ type: [String, Number],
35511
35518
  default: 400
35512
35519
  },
35513
35520
  beforeClose: {
@@ -35552,6 +35559,12 @@
35552
35559
  };
35553
35560
  },
35554
35561
  computed: {
35562
+ calcWidth: function calcWidth() {
35563
+ if (/^\d+$/.test(this.width)) {
35564
+ return "".concat(this.width, "px");
35565
+ }
35566
+ return this.width;
35567
+ },
35555
35568
  calcDirection: function calcDirection() {
35556
35569
  return this.direction === 'left' ? 'right' : 'left';
35557
35570
  }
@@ -35705,7 +35718,7 @@
35705
35718
  right: _vm.direction === 'right'
35706
35719
  }],
35707
35720
  style: {
35708
- width: _vm.width + 'px'
35721
+ width: _vm.calcWidth
35709
35722
  }
35710
35723
  }, [_c('div', {
35711
35724
  staticClass: "bk-sideslider-header"
@@ -52227,7 +52240,7 @@
52227
52240
  _this11.handleEnter(_this11.input.value, (_this11$handleEnter2 = {}, _defineProperty(_this11$handleEnter2, _this11.primaryKey, _this11.input.value), _defineProperty(_this11$handleEnter2, _this11.displayKey, _this11.input.value), _this11$handleEnter2), false, needShowPopover);
52228
52241
  }
52229
52242
  resolve();
52230
- }, 0);
52243
+ }, 10);
52231
52244
  }
52232
52245
  });
52233
52246
  case 2: