@kdcloudjs/kdesign 1.8.51 → 1.8.53

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.8.51
3
+ * @kdcloudjs/kdesign v1.8.53
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -38667,7 +38667,15 @@ var Tabs = function Tabs(props) {
38667
38667
  isDragging.current = true;
38668
38668
  };
38669
38669
  var handleTouchMove = function handleTouchMove(e) {
38670
+ var _e$nativeEvent$compos, _e$nativeEvent;
38670
38671
  if (!isDragging.current || ListWidth <= boxWidth) return;
38672
+ var path = ((_e$nativeEvent$compos = (_e$nativeEvent = e.nativeEvent).composedPath) === null || _e$nativeEvent$compos === void 0 ? void 0 : _e$nativeEvent$compos.call(_e$nativeEvent)) || [];
38673
+ var isFromTabList = path.some(function (el) {
38674
+ var _classList, _classList$contains;
38675
+ return el === null || el === void 0 ? void 0 : (_classList = el.classList) === null || _classList === void 0 ? void 0 : (_classList$contains = _classList.contains) === null || _classList$contains === void 0 ? void 0 : _classList$contains.call(_classList, "".concat(tabsPrefixCls, "-tab-list"));
38676
+ });
38677
+ if (!isFromTabList) return; // 阻止非 tab 区域触发移动逻辑
38678
+
38671
38679
  var currentX = e.touches[0].clientX;
38672
38680
  var deltaX = currentX - touchStartX.current;
38673
38681
  var newPosition = lastListPosition.current + deltaX;
@@ -51703,7 +51711,8 @@ var BaseTable = /*#__PURE__*/function (_React$Component) {
51703
51711
  components = _this$props8.components,
51704
51712
  bordered = _this$props8.bordered,
51705
51713
  direction = _this$props8.direction,
51706
- prefixCls = _this$props8.prefixCls;
51714
+ _prefixCls = _this$props8.prefixCls;
51715
+ var prefixCls = _prefixCls === 'kd' || !_prefixCls ? undefined : _prefixCls; // 不生效上层传的prefix为kd,只有传除'kd'外的前缀才生效,kui默认传kd,避免对之前的样式层级有影响
51707
51716
  info.direction = direction;
51708
51717
  var artTableWrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_15___default()(_styles__WEBPACK_IMPORTED_MODULE_28__["Classes"].artTableWrapper, (_cx = {
51709
51718
  'use-outer-border': useOuterBorder,