bk-magic-vue 2.4.8-beta.2 → 2.4.8-beta.5

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) {
@@ -11097,7 +11094,7 @@
11097
11094
  return newDate["set".concat(_this3.capitalize(type))](date[type]);
11098
11095
  });
11099
11096
  if (emit) {
11100
- this.$emit('pick', newDate, 'time');
11097
+ this.$emit('pick', newDate, false, 'time');
11101
11098
  }
11102
11099
  }
11103
11100
  }
@@ -11729,7 +11726,7 @@
11729
11726
  }
11730
11727
  }
11731
11728
  if (emit) {
11732
- this.$emit('pick', [dateStart, dateEnd], 'time');
11729
+ this.$emit('pick', [dateStart, dateEnd], false, 'time');
11733
11730
  }
11734
11731
  },
11735
11732
  handleStartChange: function handleStartChange(date) {
@@ -36138,9 +36135,12 @@
36138
36135
  } else if (newPosition > 100) {
36139
36136
  newPosition = 100;
36140
36137
  }
36141
- 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);
36142
36142
  var steps = Math.round(newPosition / lengthPerStep);
36143
- var value = steps * lengthPerStep * (this.maxValue - this.minValue) * 0.01 + this.minValue;
36143
+ var value = steps * lengthPerStep * (maxValue - minValue) * 0.01 + minValue;
36144
36144
  value = _parseFloat$2(value.toFixed(this.precision));
36145
36145
  this.$emit('input', value);
36146
36146
  if (!this.dragging && this.value !== this.oldValue) {
@@ -36396,13 +36396,15 @@
36396
36396
  console.warn('WARNNING:step should not be 0');
36397
36397
  return [];
36398
36398
  }
36399
- var stepCount = (this.maxValue - this.minValue) / this.step;
36400
36399
  var stepWidth = 100 * this.step / (this.maxValue - this.minValue);
36401
36400
  var result = [];
36402
- 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++) {
36403
36405
  var item = {
36404
- stepWidth: i * stepWidth,
36405
- stepLabel: "".concat(i * this.step).concat(this.intervalLabelUnit)
36406
+ stepWidth: j * stepWidth,
36407
+ stepLabel: "".concat(i).concat(this.intervalLabelUnit)
36406
36408
  };
36407
36409
  result.push(item);
36408
36410
  }