@kdcloudjs/kdesign 1.7.33-stable.12-hotfix.2 → 1.7.33-stable.12-hotfix.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.
package/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.7.33-stable.12-hotfix.1
3
+ * @kdcloudjs/kdesign v1.7.33-stable.12-hotfix.2
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -33203,7 +33203,15 @@ var Tabs = function Tabs(props) {
33203
33203
  isDragging.current = true;
33204
33204
  };
33205
33205
  var handleTouchMove = function handleTouchMove(e) {
33206
+ var _e$nativeEvent$compos, _e$nativeEvent;
33206
33207
  if (!isDragging.current || ListWidth <= boxWidth) return;
33208
+ var path = ((_e$nativeEvent$compos = (_e$nativeEvent = e.nativeEvent).composedPath) === null || _e$nativeEvent$compos === void 0 ? void 0 : _e$nativeEvent$compos.call(_e$nativeEvent)) || [];
33209
+ var isFromTabList = path.some(function (el) {
33210
+ var _classList, _classList$contains;
33211
+ return el === null || el === void 0 || (_classList = el.classList) === null || _classList === void 0 || (_classList$contains = _classList.contains) === null || _classList$contains === void 0 ? void 0 : _classList$contains.call(_classList, "".concat(tabsPrefixCls, "-tab-list"));
33212
+ });
33213
+ if (!isFromTabList) return; // 阻止非 tab 区域触发移动逻辑
33214
+
33207
33215
  var currentX = e.touches[0].clientX;
33208
33216
  var deltaX = currentX - touchStartX.current;
33209
33217
  var newPosition = lastListPosition.current + deltaX;