bkui-vue 1.0.3-beta.67.dialog.5 → 1.0.3-beta.68.dialog.1

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.
@@ -17783,7 +17783,8 @@ var BkScrollbarCore = /*#__PURE__*/function () {
17783
17783
  _defineProperty(this, "mouseX", 0);
17784
17784
  _defineProperty(this, "mouseY", 0);
17785
17785
  _defineProperty(this, "mouseWheelInstance", null);
17786
- _defineProperty(this, "wheelOffset", 0);
17786
+ _defineProperty(this, "wheelOffsetY", 0);
17787
+ _defineProperty(this, "wheelOffsetX", 0);
17787
17788
  /**
17788
17789
  * 最外层滚动容器滚动实际位置缓存器
17789
17790
  */
@@ -17988,7 +17989,10 @@ var BkScrollbarCore = /*#__PURE__*/function () {
17988
17989
  });
17989
17990
  }
17990
17991
  if (axisValue === 'y') {
17991
- _this.wheelOffset = resolvedValue;
17992
+ _this.wheelOffsetY = resolvedValue;
17993
+ }
17994
+ if (axisValue === 'x') {
17995
+ _this.wheelOffsetX = resolvedValue;
17992
17996
  }
17993
17997
  (_this$options = _this.options) === null || _this$options === void 0 || (_this$options$onScrol = _this$options.onScrollCallback) === null || _this$options$onScrol === void 0 || _this$options$onScrol.call(_this$options, {
17994
17998
  x: _this.wrapperScrollValue.scrollLeft,
@@ -18026,18 +18030,21 @@ var BkScrollbarCore = /*#__PURE__*/function () {
18026
18030
  e.stopPropagation();
18027
18031
  });
18028
18032
  _defineProperty(this, "mOnMouseWheel", function (args) {
18029
- var nextPostiion = _this.wheelOffset + args.y;
18030
- if (_this.scrollToAxisPosition(nextPostiion, 'y')) {
18033
+ var nextY = _this.wheelOffsetY + args.y;
18034
+ var nextX = _this.wheelOffsetX + args.x;
18035
+ if (_this.scrollToAxisPosition(nextY, 'y') || _this.scrollToAxisPosition(nextX, 'x')) {
18031
18036
  args.evt.stopPropagation();
18032
18037
  args.evt.preventDefault();
18033
18038
  args.evt.stopImmediatePropagation();
18034
18039
  _this.showScrollbar('y');
18040
+ _this.showScrollbar('x');
18035
18041
  if (_this.mouseWeelTimer) {
18036
18042
  clearTimeout(_this.mouseWeelTimer);
18037
18043
  _this.mouseWeelTimer = null;
18038
18044
  }
18039
18045
  _this.mouseWeelTimer = setTimeout(function () {
18040
18046
  _this.hideScrollbar('y');
18047
+ _this.showScrollbar('x');
18041
18048
  }, 200);
18042
18049
  }
18043
18050
  });
@@ -146,7 +146,8 @@ export default class BkScrollbarCore {
146
146
  mouseX: number;
147
147
  mouseY: number;
148
148
  mouseWheelInstance: MouseWheelInstance;
149
- wheelOffset: number;
149
+ wheelOffsetY: number;
150
+ wheelOffsetX: number;
150
151
  mouseWeelTimer: any;
151
152
  /**
152
153
  * 最外层滚动容器滚动实际位置缓存器
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "1.0.3-beta.67.dialog.5",
3
+ "version": "1.0.3-beta.68.dialog.1",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",