@kdcloudjs/kdesign 1.8.38 → 1.8.39-stable.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.
package/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.8.38
3
+ * @kdcloudjs/kdesign v1.8.39-stable.0
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -6278,9 +6278,16 @@ var InternalCarousel = function InternalCarousel(props, ref) {
6278
6278
  }, [itemWidth]);
6279
6279
  var setScrollXEffectStyle = react__WEBPACK_IMPORTED_MODULE_11___default.a.useCallback(function () {
6280
6280
  var tempChild = processChildren(children);
6281
- if (!listRef.current || tempChild.length <= 1) return;
6282
- listRef.current.style.cssText = needAnimation ? "transform: translateX(".concat(posX, "px); transition:all 0.3s ").concat(easing) : "transform: translateX(".concat(posX, "px); transition:none");
6281
+ if (!listRef.current) return;
6282
+ if (tempChild.length <= 1) {
6283
+ listRef.current.style.cssText = '';
6284
+ } else {
6285
+ listRef.current.style.cssText = needAnimation ? "transform: translateX(".concat(posX, "px); transition:all 0.3s ").concat(easing) : "transform: translateX(".concat(posX, "px); transition:none");
6286
+ }
6283
6287
  }, [children === null || children === void 0 ? void 0 : children.length, needAnimation, easing, posX]);
6288
+ Object(react__WEBPACK_IMPORTED_MODULE_11__["useEffect"])(function () {
6289
+ setCurrentIndex(0);
6290
+ }, [children === null || children === void 0 ? void 0 : children.length]);
6284
6291
  var jumpTo = react__WEBPACK_IMPORTED_MODULE_11___default.a.useCallback(function (index, needAnimation) {
6285
6292
  var tempChild = processChildren(children);
6286
6293
  if (isFadeEffect) {
@@ -27386,7 +27393,7 @@ var InternalModal = function InternalModal(props, ref) {
27386
27393
  onStop: onDragStop,
27387
27394
  bounds: bounds,
27388
27395
  cancel: ".".concat(modalPrefixCls, "-title-container, .").concat(modalPrefixCls, "-close-icon"),
27389
- "data-ignore-auto-rtl": true
27396
+ "data-ignore-auto-rtl": direction === 'rtl'
27390
27397
  }, container))) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_draggable__WEBPACK_IMPORTED_MODULE_15___default.a, {
27391
27398
  handle: ".".concat(headerClass),
27392
27399
  disabled: !draggable,
@@ -38794,7 +38801,7 @@ var Tabs = function Tabs(props) {
38794
38801
  }
38795
38802
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div", {
38796
38803
  className: tabsClasses,
38797
- "data-ignore-auto-rtl": true
38804
+ "data-ignore-auto-rtl": direction === 'rtl'
38798
38805
  }, renderTabPane(), renderContainer()));
38799
38806
  };
38800
38807
  Tabs.displayName = 'Tabs';