bk-magic-vue 2.4.8-beta.1 → 2.4.8-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.
@@ -8120,9 +8120,6 @@
8120
8120
  return this.selectionMode;
8121
8121
  },
8122
8122
  handleTransferClick: function handleTransferClick() {
8123
- if (this.transfer) {
8124
- this.disableCloseUnderTransfer = true;
8125
- }
8126
8123
  },
8127
8124
  handleClose: function handleClose(e) {
8128
8125
  if (this.disableCloseUnderTransfer) {
@@ -31605,9 +31602,10 @@
31605
31602
  }, this.$props, this.tippyOptions));
31606
31603
  var onShow = options.onShow;
31607
31604
  var onHide = options.onHide;
31605
+ var zIndex = typeof options.zIndex === 'number' ? options.zIndex : null;
31608
31606
  options.onShow = function (tip) {
31609
31607
  tip.set({
31610
- zIndex: _this.getLocalZIndex(_this.zIndex)
31608
+ zIndex: _this.getLocalZIndex(zIndex || _this.zIndex)
31611
31609
  });
31612
31610
  onShow && onShow(tip);
31613
31611
  _this.$emit('show');
@@ -36137,9 +36135,12 @@
36137
36135
  } else if (newPosition > 100) {
36138
36136
  newPosition = 100;
36139
36137
  }
36140
- var lengthPerStep = 100 / ((this.maxValue - this.minValue) / this.step);
36138
+ var maxValue = _parseFloat$2(this.maxValue);
36139
+ var minValue = _parseFloat$2(this.minValue);
36140
+ var step = _parseFloat$2(this.step);
36141
+ var lengthPerStep = 100 / ((maxValue - minValue) / step);
36141
36142
  var steps = Math.round(newPosition / lengthPerStep);
36142
- var value = steps * lengthPerStep * (this.maxValue - this.minValue) * 0.01 + this.minValue;
36143
+ var value = steps * lengthPerStep * (maxValue - minValue) * 0.01 + minValue;
36143
36144
  value = _parseFloat$2(value.toFixed(this.precision));
36144
36145
  this.$emit('input', value);
36145
36146
  if (!this.dragging && this.value !== this.oldValue) {
@@ -36395,13 +36396,15 @@
36395
36396
  console.warn('WARNNING:step should not be 0');
36396
36397
  return [];
36397
36398
  }
36398
- var stepCount = (this.maxValue - this.minValue) / this.step;
36399
36399
  var stepWidth = 100 * this.step / (this.maxValue - this.minValue);
36400
36400
  var result = [];
36401
- for (var i = 0; i <= stepCount; i++) {
36401
+ var minValue = _parseFloat$2(this.minValue);
36402
+ var maxValue = _parseFloat$2(this.maxValue);
36403
+ var step = _parseFloat$2(this.step);
36404
+ for (var i = minValue, j = 0; i <= maxValue; i += step, j++) {
36402
36405
  var item = {
36403
- stepWidth: i * stepWidth,
36404
- stepLabel: "".concat(i * this.step).concat(this.intervalLabelUnit)
36406
+ stepWidth: j * stepWidth,
36407
+ stepLabel: "".concat(i).concat(this.intervalLabelUnit)
36405
36408
  };
36406
36409
  result.push(item);
36407
36410
  }
@@ -40428,7 +40431,8 @@
40428
40431
  bkPopover: __vue_component__$H
40429
40432
  },
40430
40433
  props: {
40431
- column: Object
40434
+ column: Object,
40435
+ tippyOptions: Object
40432
40436
  },
40433
40437
  render: function render(h) {
40434
40438
  var popoverContent = this.column.settingContent ? this.column.settingContent(h) : '';
@@ -40437,7 +40441,8 @@
40437
40441
  "trigger": "click",
40438
40442
  "placement": "bottom-end",
40439
40443
  "theme": "light bk-table-setting-popover-content",
40440
- "distance": -2
40444
+ "distance": -2,
40445
+ "tippy-options": this.tippyOptions
40441
40446
  }
40442
40447
  }, [h("i", {
40443
40448
  "class": 'bk-table-setting-icon ' + this.column.icon
@@ -42501,7 +42506,8 @@
42501
42506
  if (fixed === 'right') {
42502
42507
  return h("bk-table-setting", {
42503
42508
  "attrs": {
42504
- "column": column
42509
+ "column": column,
42510
+ "tippyOptions": column.tippyOptions
42505
42511
  }
42506
42512
  });
42507
42513
  }
@@ -42612,7 +42618,8 @@
42612
42618
  },
42613
42619
  beforeExpandChange: Function,
42614
42620
  beforeSelectChange: Function,
42615
- beforeSelectAllChange: Function
42621
+ beforeSelectAllChange: Function,
42622
+ tippyOptions: Object
42616
42623
  },
42617
42624
  data: function data() {
42618
42625
  return {
@@ -42704,6 +42711,7 @@
42704
42711
  sortOrders: this.sortOrders,
42705
42712
  order: null,
42706
42713
  beforeExpandChange: this.beforeExpandChange,
42714
+ tippyOptions: this.tippyOptions,
42707
42715
  beforeSelectChange: createFuncWrapper(this.beforeSelectChange),
42708
42716
  beforeSelectAllChange: createFuncWrapper(this.beforeSelectAllChange)
42709
42717
  });