@kdcloudjs/kdesign 1.8.30 → 1.8.32

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.
Files changed (157) hide show
  1. package/dist/kdesign-complete.less +798 -83
  2. package/dist/kdesign.css +578 -7
  3. package/dist/kdesign.css.map +1 -1
  4. package/dist/kdesign.js +166 -93
  5. package/dist/kdesign.js.map +1 -1
  6. package/dist/kdesign.min.css +3 -3
  7. package/dist/kdesign.min.js +5 -5
  8. package/dist/kdesign.min.js.map +1 -1
  9. package/es/anchor/anchor.js +7 -5
  10. package/es/anchor/style/index.css +14 -0
  11. package/es/anchor/style/index.less +15 -0
  12. package/es/button/button.js +4 -2
  13. package/es/button/group.js +5 -3
  14. package/es/button/style/index.css +32 -0
  15. package/es/button/style/index.less +42 -1
  16. package/es/checkbox/checkbox.js +5 -3
  17. package/es/checkbox/group.js +4 -2
  18. package/es/checkbox/style/index.css +38 -1
  19. package/es/checkbox/style/index.less +56 -15
  20. package/es/city-picker/city-picker.js +32 -14
  21. package/es/city-picker/option.js +7 -2
  22. package/es/city-picker/style/index.css +54 -0
  23. package/es/city-picker/style/index.less +67 -0
  24. package/es/collapse/collapse.js +4 -2
  25. package/es/collapse/style/index.css +24 -0
  26. package/es/collapse/style/index.less +26 -0
  27. package/es/color-picker/color-picker.js +6 -4
  28. package/es/color-picker/style/index.css +129 -4
  29. package/es/color-picker/style/index.less +174 -29
  30. package/es/config-provider/compDefaultProps.d.ts +0 -1
  31. package/es/config-provider/compDefaultProps.js +0 -5
  32. package/es/dropdown/dropdown.js +5 -2
  33. package/es/dropdown/menu.js +4 -2
  34. package/es/dropdown/style/index.css +3 -0
  35. package/es/dropdown/style/index.less +4 -0
  36. package/es/image/preview.js +6 -4
  37. package/es/image/style/index.css +11 -0
  38. package/es/image/style/index.less +20 -4
  39. package/es/input/ClearableLabeledInput.d.ts +1 -0
  40. package/es/input/ClearableLabeledInput.js +6 -4
  41. package/es/input/TextArea.js +7 -4
  42. package/es/input/input.js +6 -3
  43. package/es/input/style/index.css +48 -0
  44. package/es/input/style/index.less +55 -0
  45. package/es/link/link.js +4 -2
  46. package/es/link/style/index.css +11 -0
  47. package/es/link/style/index.less +14 -0
  48. package/es/menu/menu.js +4 -2
  49. package/es/menu/menuItem.js +5 -3
  50. package/es/menu/style/index.css +10 -0
  51. package/es/menu/style/index.less +33 -22
  52. package/es/menu/subMenu.js +6 -4
  53. package/es/modal/modal.js +4 -2
  54. package/es/modal/style/index.css +7 -0
  55. package/es/modal/style/index.less +14 -0
  56. package/es/qr-code/qr-code.js +4 -2
  57. package/es/qr-code/style/index.css +3 -0
  58. package/es/qr-code/style/index.less +7 -3
  59. package/es/radio/group.js +4 -2
  60. package/es/radio/radio.js +4 -2
  61. package/es/radio/style/index.css +38 -0
  62. package/es/radio/style/index.less +46 -0
  63. package/es/select/option.js +4 -2
  64. package/es/select/select.js +8 -6
  65. package/es/select/style/index.css +61 -0
  66. package/es/select/style/index.less +87 -0
  67. package/es/steps/Steps.js +4 -2
  68. package/es/steps/style/index.css +35 -0
  69. package/es/steps/style/index.less +59 -5
  70. package/es/switch/style/index.css +9 -0
  71. package/es/switch/style/index.less +9 -2
  72. package/es/switch/switch.js +4 -2
  73. package/es/tag/style/index.css +7 -0
  74. package/es/tag/style/index.less +8 -0
  75. package/es/tag/tag.js +4 -2
  76. package/es/tree/style/index.css +19 -0
  77. package/es/tree/style/index.less +27 -0
  78. package/es/tree/tree.js +4 -2
  79. package/es/tree/treeNode.js +3 -2
  80. package/es/upload/style/index.css +24 -1
  81. package/es/upload/style/index.less +40 -2
  82. package/es/upload/upload.js +4 -2
  83. package/lib/anchor/anchor.js +7 -5
  84. package/lib/anchor/style/index.css +14 -0
  85. package/lib/anchor/style/index.less +15 -0
  86. package/lib/button/button.js +4 -2
  87. package/lib/button/group.js +5 -3
  88. package/lib/button/style/index.css +32 -0
  89. package/lib/button/style/index.less +42 -1
  90. package/lib/checkbox/checkbox.js +5 -3
  91. package/lib/checkbox/group.js +4 -2
  92. package/lib/checkbox/style/index.css +38 -1
  93. package/lib/checkbox/style/index.less +56 -15
  94. package/lib/city-picker/city-picker.js +32 -14
  95. package/lib/city-picker/option.js +7 -2
  96. package/lib/city-picker/style/index.css +54 -0
  97. package/lib/city-picker/style/index.less +67 -0
  98. package/lib/collapse/collapse.js +4 -2
  99. package/lib/collapse/style/index.css +24 -0
  100. package/lib/collapse/style/index.less +26 -0
  101. package/lib/color-picker/color-picker.js +6 -4
  102. package/lib/color-picker/style/index.css +129 -4
  103. package/lib/color-picker/style/index.less +174 -29
  104. package/lib/config-provider/compDefaultProps.d.ts +0 -1
  105. package/lib/config-provider/compDefaultProps.js +0 -5
  106. package/lib/dropdown/dropdown.js +5 -2
  107. package/lib/dropdown/menu.js +4 -2
  108. package/lib/dropdown/style/index.css +3 -0
  109. package/lib/dropdown/style/index.less +4 -0
  110. package/lib/image/preview.js +6 -4
  111. package/lib/image/style/index.css +11 -0
  112. package/lib/image/style/index.less +20 -4
  113. package/lib/input/ClearableLabeledInput.d.ts +1 -0
  114. package/lib/input/ClearableLabeledInput.js +6 -4
  115. package/lib/input/TextArea.js +7 -4
  116. package/lib/input/input.js +6 -3
  117. package/lib/input/style/index.css +48 -0
  118. package/lib/input/style/index.less +55 -0
  119. package/lib/link/link.js +4 -2
  120. package/lib/link/style/index.css +11 -0
  121. package/lib/link/style/index.less +14 -0
  122. package/lib/menu/menu.js +4 -2
  123. package/lib/menu/menuItem.js +5 -3
  124. package/lib/menu/style/index.css +10 -0
  125. package/lib/menu/style/index.less +33 -22
  126. package/lib/menu/subMenu.js +6 -4
  127. package/lib/modal/modal.js +4 -2
  128. package/lib/modal/style/index.css +7 -0
  129. package/lib/modal/style/index.less +14 -0
  130. package/lib/qr-code/qr-code.js +4 -2
  131. package/lib/qr-code/style/index.css +3 -0
  132. package/lib/qr-code/style/index.less +7 -3
  133. package/lib/radio/group.js +4 -2
  134. package/lib/radio/radio.js +4 -2
  135. package/lib/radio/style/index.css +38 -0
  136. package/lib/radio/style/index.less +46 -0
  137. package/lib/select/option.js +4 -2
  138. package/lib/select/select.js +8 -6
  139. package/lib/select/style/index.css +61 -0
  140. package/lib/select/style/index.less +87 -0
  141. package/lib/steps/Steps.js +4 -2
  142. package/lib/steps/style/index.css +35 -0
  143. package/lib/steps/style/index.less +59 -5
  144. package/lib/switch/style/index.css +9 -0
  145. package/lib/switch/style/index.less +9 -2
  146. package/lib/switch/switch.js +4 -2
  147. package/lib/tag/style/index.css +7 -0
  148. package/lib/tag/style/index.less +8 -0
  149. package/lib/tag/tag.js +4 -2
  150. package/lib/tree/style/index.css +19 -0
  151. package/lib/tree/style/index.less +27 -0
  152. package/lib/tree/tree.js +4 -2
  153. package/lib/tree/treeNode.js +3 -2
  154. package/lib/upload/style/index.css +24 -1
  155. package/lib/upload/style/index.less +40 -2
  156. package/lib/upload/upload.js +4 -2
  157. package/package.json +1 -1
package/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.8.30
3
+ * @kdcloudjs/kdesign v1.8.32
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -3430,7 +3430,8 @@ var InternalAnchor = function InternalAnchor(props, ref) {
3430
3430
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_20__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_22__["default"]),
3431
3431
  getPrefixCls = _useContext.getPrefixCls,
3432
3432
  prefixCls = _useContext.prefixCls,
3433
- userDefaultProps = _useContext.compDefaultProps;
3433
+ userDefaultProps = _useContext.compDefaultProps,
3434
+ direction = _useContext.direction;
3434
3435
  var anchorProps = Object(_utils__WEBPACK_IMPORTED_MODULE_23__["getCompProps"])('Anchor', userDefaultProps, props);
3435
3436
  var customPrefixcls = anchorProps.prefixCls,
3436
3437
  className = anchorProps.className,
@@ -3453,7 +3454,7 @@ var InternalAnchor = function InternalAnchor(props, ref) {
3453
3454
  dropdownStyle = anchorProps.dropdownStyle,
3454
3455
  onVisibleChange = anchorProps.onVisibleChange;
3455
3456
  var anchorPrefixCls = getPrefixCls(prefixCls, 'anchor', customPrefixcls); // 锚点样式前缀
3456
-
3457
+ var rtlCls = direction === 'rtl' ? "".concat(anchorPrefixCls, "-rtl") : null;
3457
3458
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_26__["default"])(AnchorTypes.indexOf(type) === -1, 'anchor', "cannot found anchor type '".concat(type, "'"));
3458
3459
  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_20__["useState"])(null),
3459
3460
  _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
@@ -3507,7 +3508,7 @@ var InternalAnchor = function InternalAnchor(props, ref) {
3507
3508
  var anchorRef = ref || normalRef;
3508
3509
  var linksWidthRef = react__WEBPACK_IMPORTED_MODULE_20___default.a.useRef([]);
3509
3510
  var animating = react__WEBPACK_IMPORTED_MODULE_20___default.a.useRef(false);
3510
- var wrapperClass = classnames__WEBPACK_IMPORTED_MODULE_21___default()(className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(anchorPrefixCls, "-wrapper"), true));
3511
+ var wrapperClass = classnames__WEBPACK_IMPORTED_MODULE_21___default()(className, rtlCls, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(anchorPrefixCls, "-wrapper"), true));
3511
3512
 
3512
3513
  // classes
3513
3514
  var anchorMenuClass = classnames__WEBPACK_IMPORTED_MODULE_21___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(anchorPrefixCls, "-menu"), true));
@@ -3745,7 +3746,7 @@ var InternalAnchor = function InternalAnchor(props, ref) {
3745
3746
  className: leftClasses,
3746
3747
  onClick: handleLeft
3747
3748
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_27__["Icon"], {
3748
- type: "arrow-left"
3749
+ type: "".concat(direction === 'rtl' ? 'arrow-right' : 'arrow-left')
3749
3750
  }));
3750
3751
  };
3751
3752
  var findCurrentLinkPosition = function findCurrentLinkPosition(linksWidth, boxWidth, position) {
@@ -3774,12 +3775,12 @@ var InternalAnchor = function InternalAnchor(props, ref) {
3774
3775
  className: rightClasses,
3775
3776
  onClick: handleRight
3776
3777
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_27__["Icon"], {
3777
- type: "arrow-right"
3778
+ type: "".concat(direction === 'rtl' ? 'arrow-left' : 'arrow-right')
3778
3779
  }));
3779
3780
  };
3780
3781
  var anchorMenuContent = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_20___default.a.createElement("div", {
3781
3782
  ref: anchorRef,
3782
- className: "".concat(anchorPrefixCls, "-menu-wrapper"),
3783
+ className: classnames__WEBPACK_IMPORTED_MODULE_21___default()("".concat(anchorPrefixCls, "-menu-wrapper"), rtlCls),
3783
3784
  style: _objectSpread({
3784
3785
  width: '100%'
3785
3786
  }, style)
@@ -5641,7 +5642,8 @@ var InternalButton = function InternalButton(props, ref) {
5641
5642
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_7__["default"]),
5642
5643
  getPrefixCls = _useContext.getPrefixCls,
5643
5644
  prefixCls = _useContext.prefixCls,
5644
- userDefaultProps = _useContext.compDefaultProps;
5645
+ userDefaultProps = _useContext.compDefaultProps,
5646
+ direction = _useContext.direction;
5645
5647
  var buttonProps = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["getCompProps"])('Button', userDefaultProps, props); // 按钮属性需要合并一遍用户定义的默认属性
5646
5648
  var type = buttonProps.type,
5647
5649
  iconPlace = buttonProps.iconPlace,
@@ -5662,6 +5664,7 @@ var InternalButton = function InternalButton(props, ref) {
5662
5664
  others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(buttonProps, _excluded);
5663
5665
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_10__["default"])(ButtonTypes.indexOf(type) === -1, 'button', "cannot found button type '".concat(type, "'"));
5664
5666
  var btnPrefixCls = getPrefixCls(prefixCls, 'btn', customPrefixcls); // 按钮样式前缀
5667
+ var rtlCls = direction === 'rtl' ? "".concat(btnPrefixCls, "-rtl") : null;
5665
5668
  /**
5666
5669
  * 按钮click事件处理
5667
5670
  * @param {React.MouseEvent<HTMLButtonElement | HTMLAnchorElement, MouseEvent>} e 事件对象
@@ -5703,7 +5706,7 @@ var InternalButton = function InternalButton(props, ref) {
5703
5706
  return child;
5704
5707
  };
5705
5708
  var isTextBtn = type === 'text'; // 判断按钮是否文本类型。这些类型下有部分样式不适用
5706
- var btnClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()(btnPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-").concat(type), type), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-shape-").concat(shape), shape && !isTextBtn), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-no-border"), !bordered), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-background-ghost"), ghost && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-loading"), loading && !isTextBtn), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-block"), block && !shape), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-icon-only"), !children && children !== 0 && icon), _classNames));
5709
+ var btnClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()(btnPrefixCls, rtlCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-").concat(type), type), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-shape-").concat(shape), shape && !isTextBtn), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-no-border"), !bordered), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-background-ghost"), ghost && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-loading"), loading && !isTextBtn), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-block"), block && !shape), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-icon-only"), !children && children !== 0 && icon), _classNames));
5707
5710
  var iconWrapperClassName = "".concat(btnPrefixCls, "-iconWrapper-").concat(iconPlace === 'left' ? 'left' : 'right');
5708
5711
  var iconNode = icon && !loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
5709
5712
  className: iconWrapperClassName
@@ -5816,7 +5819,8 @@ var InternalButtonGroup = function InternalButtonGroup(props, ref) {
5816
5819
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_12__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
5817
5820
  getPrefixCls = _useContext.getPrefixCls,
5818
5821
  prefixCls = _useContext.prefixCls,
5819
- userDefaultProps = _useContext.compDefaultProps;
5822
+ userDefaultProps = _useContext.compDefaultProps,
5823
+ direction = _useContext.direction;
5820
5824
  var buttonGoupProps = Object(_utils__WEBPACK_IMPORTED_MODULE_15__["getCompProps"])('ButtonGroup', userDefaultProps, props);
5821
5825
  var style = buttonGoupProps.style,
5822
5826
  className = buttonGoupProps.className,
@@ -5841,6 +5845,7 @@ var InternalButtonGroup = function InternalButtonGroup(props, ref) {
5841
5845
  var triggerRef = react__WEBPACK_IMPORTED_MODULE_12___default.a.useRef(null);
5842
5846
  var isBsicType = type === 'basic';
5843
5847
  var btnGroupPrefixCls = getPrefixCls(prefixCls, 'btn-group', customPrefixcls);
5848
+ var rtlCls = direction === 'rtl' ? "".concat(btnGroupPrefixCls, "-rtl") : null;
5844
5849
  var btnGroupClasses = classnames__WEBPACK_IMPORTED_MODULE_13___default()("".concat(btnGroupPrefixCls), className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(btnGroupPrefixCls, "-").concat(type), type));
5845
5850
  var renderTriggerButton = Object(react__WEBPACK_IMPORTED_MODULE_12__["useCallback"])(function () {
5846
5851
  var _toArray = Object(_utils_react_children__WEBPACK_IMPORTED_MODULE_17__["toArray"])(icon),
@@ -5907,11 +5912,11 @@ var InternalButtonGroup = function InternalButtonGroup(props, ref) {
5907
5912
  onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(visible);
5908
5913
  };
5909
5914
  var popperProps = _objectSpread(_objectSpread({
5910
- placement: 'bottomLeft',
5915
+ placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
5911
5916
  trigger: 'click',
5912
5917
  gap: 0
5913
5918
  }, buttonGoupProps), {}, {
5914
- prefixCls: btnGroupPrefixCls,
5919
+ prefixCls: classnames__WEBPACK_IMPORTED_MODULE_13___default()(btnGroupPrefixCls, rtlCls),
5915
5920
  defaultVisible: optionShow,
5916
5921
  visible: optionShow,
5917
5922
  onVisibleChange: handleVisibleChange,
@@ -7783,7 +7788,8 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
7783
7788
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_6__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_9__["default"]),
7784
7789
  getPrefixCls = _useContext.getPrefixCls,
7785
7790
  prefixCls = _useContext.prefixCls,
7786
- userDefaultProps = _useContext.compDefaultProps;
7791
+ userDefaultProps = _useContext.compDefaultProps,
7792
+ direction = _useContext.direction;
7787
7793
  var CheckboxProps = Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getCompProps"])('Checkbox', userDefaultProps, props);
7788
7794
  var checkboxType = CheckboxProps.checkboxType,
7789
7795
  className = CheckboxProps.className,
@@ -7822,8 +7828,9 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
7822
7828
  var getIndeterminate = function getIndeterminate() {
7823
7829
  return selected ? false : indeterminate;
7824
7830
  };
7825
- var getDefaultClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()(className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(mergedSize), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-disabled"), mergedDisabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "checked", selected), _classNames));
7826
- var getSquareClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()(className, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(mergedSize), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-disabled"), mergedDisabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-checked"), selected && !mergedDisabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "checked", selected), _classNames2));
7831
+ var rtlCls = direction === 'rtl' ? "".concat(checkboxPrefixCls, "-rtl") : null;
7832
+ var getDefaultClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()(className, rtlCls, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(mergedSize), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-disabled"), mergedDisabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "checked", selected), _classNames));
7833
+ var getSquareClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()(className, rtlCls, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(mergedSize), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-disabled"), mergedDisabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-checked"), selected && !mergedDisabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "checked", selected), _classNames2));
7827
7834
  var getRootClassName = isDefaultType() ? getDefaultClassName : getSquareClassName;
7828
7835
  var inputClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(checkboxPrefixCls, "-input"), true));
7829
7836
  var checkedWrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_7___default()((_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-wrapper-size"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-margin"), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-checked"), selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-indeterminate"), getIndeterminate()), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-disabled"), mergedDisabled && !selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(mergedCheckboxType, "-checked-disabled"), mergedDisabled && selected), _classNames4));
@@ -7966,7 +7973,8 @@ var CheckboxGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.fo
7966
7973
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_8__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_10__["default"]),
7967
7974
  getPrefixCls = _useContext.getPrefixCls,
7968
7975
  prefixCls = _useContext.prefixCls,
7969
- userDefaultProps = _useContext.compDefaultProps;
7976
+ userDefaultProps = _useContext.compDefaultProps,
7977
+ direction = _useContext.direction;
7970
7978
  var CheckboxProps = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getCompProps"])('CheckboxGroup', userDefaultProps, props); // 多选组属性需要合并一遍用户定义的默认属性
7971
7979
  var checkboxType = CheckboxProps.checkboxType,
7972
7980
  className = CheckboxProps.className,
@@ -7993,7 +8001,7 @@ var CheckboxGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.fo
7993
8001
  }, [value, defaultValue]);
7994
8002
  var isControlled = typeof value !== 'undefined';
7995
8003
  var checkboxGroupPrefixCls = getPrefixCls(prefixCls, 'checkbox-group', customPrefixcls); // 按钮样式前缀
7996
-
8004
+ var rtlCls = direction === 'rtl' ? "".concat(checkboxGroupPrefixCls, "-rtl") : null;
7997
8005
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_15__["default"])(Object(_utils_arrayUtil__WEBPACK_IMPORTED_MODULE_13__["isArrayValueRepeat"])(groupValue), 'checkboxGroup', "variable value's value should be unique ");
7998
8006
  var getReduceItem = function getReduceItem(targetValue) {
7999
8007
  return innerValue.current.filter(function (d) {
@@ -8042,7 +8050,7 @@ var CheckboxGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.fo
8042
8050
  });
8043
8051
  };
8044
8052
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("ul", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
8045
- className: classnames__WEBPACK_IMPORTED_MODULE_9___default()(checkboxGroupPrefixCls, className),
8053
+ className: classnames__WEBPACK_IMPORTED_MODULE_9___default()(checkboxGroupPrefixCls, rtlCls, className),
8046
8054
  style: style,
8047
8055
  ref: ref
8048
8056
  }, rest), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(GroupContext.Provider, {
@@ -8237,7 +8245,8 @@ var InternalSelect = function InternalSelect(props, ref) {
8237
8245
  getPrefixCls = _useContext.getPrefixCls,
8238
8246
  prefixCls = _useContext.prefixCls,
8239
8247
  userDefaultProps = _useContext.compDefaultProps,
8240
- locale = _useContext.locale;
8248
+ locale = _useContext.locale,
8249
+ direction = _useContext.direction;
8241
8250
  var selectProps = Object(_utils__WEBPACK_IMPORTED_MODULE_26__["getCompProps"])('CityPicker', userDefaultProps, props);
8242
8251
  var cityPickerLangMsg = locale.getCompLangMsg({
8243
8252
  componentName: 'CityPicker'
@@ -8328,7 +8337,8 @@ var InternalSelect = function InternalSelect(props, ref) {
8328
8337
  return type === 'domestic';
8329
8338
  };
8330
8339
  var selectPrefixCls = getPrefixCls(prefixCls, 'city-picker', customPrefixcls);
8331
- var cityPickerCls = classnames__WEBPACK_IMPORTED_MODULE_24___default()(selectPrefixCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, "".concat(selectPrefixCls, "-visible"), optionShow));
8340
+ var rtlCls = direction === 'rtl' ? "".concat(selectPrefixCls, "-rtl") : null;
8341
+ var cityPickerCls = classnames__WEBPACK_IMPORTED_MODULE_24___default()(selectPrefixCls, rtlCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, "".concat(selectPrefixCls, "-visible"), optionShow));
8332
8342
  var selectionCls = classnames__WEBPACK_IMPORTED_MODULE_24___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_2___default()({}, "".concat(selectPrefixCls, "-selector"), true));
8333
8343
 
8334
8344
  // 公共样式
@@ -8513,15 +8523,27 @@ var InternalSelect = function InternalSelect(props, ref) {
8513
8523
  if (isDomestic(type)) {
8514
8524
  if (isCommon) {
8515
8525
  var _curVal = data !== null && data !== void 0 && data.province ? data === null || data === void 0 ? void 0 : data.province : (data === null || data === void 0 ? void 0 : data.country) || '';
8526
+ if (direction === 'rtl') {
8527
+ return "".concat(_curVal).concat(flag && _curVal ? symbol : '');
8528
+ }
8516
8529
  return "".concat(flag && _curVal ? symbol : '').concat(_curVal);
8517
8530
  }
8518
8531
  if (data !== null && data !== void 0 && data.type) {
8519
8532
  var _curVal2 = (data.type === 'domestic' ? (data === null || data === void 0 ? void 0 : data.province) || (data === null || data === void 0 ? void 0 : data.country) : [data === null || data === void 0 ? void 0 : data.province, data === null || data === void 0 ? void 0 : data.country].filter(Boolean).join(symbol)) || '';
8533
+ if (direction === 'rtl') {
8534
+ return "".concat(_curVal2).concat(flag && _curVal2 ? symbol : '');
8535
+ }
8520
8536
  return "".concat(flag && _curVal2 ? symbol : '').concat(_curVal2);
8521
8537
  }
8522
8538
  var curVal = tabsValue === 'domestic' ? (data === null || data === void 0 ? void 0 : data.province) || (data === null || data === void 0 ? void 0 : data.country) || '' : [data === null || data === void 0 ? void 0 : data.province, data === null || data === void 0 ? void 0 : data.country].filter(Boolean).join(symbol);
8539
+ if (direction === 'rtl') {
8540
+ return "".concat(curVal).concat(flag && curVal ? symbol : '');
8541
+ }
8523
8542
  return "".concat(flag && curVal ? symbol : '').concat(curVal);
8524
8543
  } else {
8544
+ if (direction === 'rtl') {
8545
+ return "".concat([data === null || data === void 0 ? void 0 : data.province, data === null || data === void 0 ? void 0 : data.country].filter(Boolean).join(symbol)).concat(flag && (data !== null && data !== void 0 && data.province || data !== null && data !== void 0 && data.country) ? symbol : '');
8546
+ }
8525
8547
  return "".concat(flag && (data !== null && data !== void 0 && data.province || data !== null && data !== void 0 && data.country) ? symbol : '').concat([data === null || data === void 0 ? void 0 : data.province, data === null || data === void 0 ? void 0 : data.country].filter(Boolean).join(symbol));
8526
8548
  }
8527
8549
  }, [type, tabsValue]);
@@ -8688,8 +8710,8 @@ var InternalSelect = function InternalSelect(props, ref) {
8688
8710
  }
8689
8711
  };
8690
8712
  var popperProps = _objectSpread(_objectSpread({}, selectProps), {}, {
8691
- prefixCls: "".concat(selectPrefixCls, "-dropdown"),
8692
- placement: 'bottomLeft',
8713
+ prefixCls: classnames__WEBPACK_IMPORTED_MODULE_24___default()("".concat(selectPrefixCls, "-dropdown"), rtlCls),
8714
+ placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
8693
8715
  popperStyle: catchStyle(),
8694
8716
  defaultVisible: optionShow,
8695
8717
  visible: optionShow,
@@ -8805,7 +8827,8 @@ var InternalOption = function InternalOption(props, ref) {
8805
8827
  name = _ref.name;
8806
8828
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_2__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_4__["default"]),
8807
8829
  getPrefixCls = _useContext.getPrefixCls,
8808
- prefixCls = _useContext.prefixCls;
8830
+ prefixCls = _useContext.prefixCls,
8831
+ direction = _useContext.direction;
8809
8832
  var selectOptionPrefixCls = getPrefixCls(prefixCls, 'city-picker-list-item');
8810
8833
  var isSelected = id !== undefined ? id === value : false;
8811
8834
  var optionCls = classnames__WEBPACK_IMPORTED_MODULE_3___default()(selectOptionPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(selectOptionPrefixCls, "-selected"), isSelected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(selectOptionPrefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(selectOptionPrefixCls, "-active"), activeIndex === index), _classNames));
@@ -8823,7 +8846,11 @@ var InternalOption = function InternalOption(props, ref) {
8823
8846
  title: name,
8824
8847
  onClick: handleClick,
8825
8848
  onMouseEnter: handleOnMouseEnter
8826
- }, typeof itemRender === 'function' ? itemRender(city) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8849
+ }, typeof itemRender === 'function' ? itemRender(city) : direction === 'rtl' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8850
+ className: "".concat(selectOptionPrefixCls, "-info")
8851
+ }, renderCityInfo === null || renderCityInfo === void 0 ? void 0 : renderCityInfo(city, true)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8852
+ className: "".concat(selectOptionPrefixCls, "-content")
8853
+ }, children)) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_2___default.a.Fragment, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8827
8854
  className: "".concat(selectOptionPrefixCls, "-content")
8828
8855
  }, children), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", {
8829
8856
  className: "".concat(selectOptionPrefixCls, "-info")
@@ -9350,7 +9377,8 @@ var InternalCollapse = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_14___default.
9350
9377
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_14___default.a.useContext(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_15__["default"]),
9351
9378
  getPrefixCls = _React$useContext.getPrefixCls,
9352
9379
  prefixCls = _React$useContext.prefixCls,
9353
- userDefaultProps = _React$useContext.compDefaultProps;
9380
+ userDefaultProps = _React$useContext.compDefaultProps,
9381
+ direction = _React$useContext.direction;
9354
9382
  var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getCompProps"])('Collapse', userDefaultProps, props),
9355
9383
  accordion = _getCompProps.accordion,
9356
9384
  activeKey = _getCompProps.activeKey,
@@ -9364,6 +9392,7 @@ var InternalCollapse = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_14___default.
9364
9392
  children = _getCompProps.children,
9365
9393
  customPrefixcls = _getCompProps.prefixCls;
9366
9394
  var CollapsePrefixCls = getPrefixCls(prefixCls, 'collapse', customPrefixcls);
9395
+ var rtlCls = direction === 'rtl' ? "".concat(CollapsePrefixCls, "-rtl") : null;
9367
9396
  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_14__["useState"])([]),
9368
9397
  _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_useState, 2),
9369
9398
  innerKey = _useState2[0],
@@ -9428,7 +9457,7 @@ var InternalCollapse = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_14___default.
9428
9457
  }, item.props));
9429
9458
  });
9430
9459
  };
9431
- var rootClassName = classnames__WEBPACK_IMPORTED_MODULE_17___default()(className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(CollapsePrefixCls), true));
9460
+ var rootClassName = classnames__WEBPACK_IMPORTED_MODULE_17___default()(className, rtlCls, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(CollapsePrefixCls), true));
9432
9461
  var collapseRef = ref || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_14___default.a.createRef();
9433
9462
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_14___default.a.createElement("div", {
9434
9463
  className: rootClassName,
@@ -10379,7 +10408,8 @@ var InternalColorPicker = function InternalColorPicker(props, ref) {
10379
10408
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_12__["useContext"])(_config_provider__WEBPACK_IMPORTED_MODULE_14__["ConfigContext"]),
10380
10409
  getPrefixCls = _useContext.getPrefixCls,
10381
10410
  prefixCls = _useContext.prefixCls,
10382
- userDefaultProps = _useContext.compDefaultProps;
10411
+ userDefaultProps = _useContext.compDefaultProps,
10412
+ direction = _useContext.direction;
10383
10413
  var colorPickerProps = Object(_utils__WEBPACK_IMPORTED_MODULE_22__["getCompProps"])('ColorPicker', userDefaultProps, props);
10384
10414
  var value = colorPickerProps.value,
10385
10415
  className = colorPickerProps.className,
@@ -10456,8 +10486,9 @@ var InternalColorPicker = function InternalColorPicker(props, ref) {
10456
10486
  clickedHistoricalColorIndex = _useState22[0],
10457
10487
  setClickedHistoricalColorIndex = _useState22[1];
10458
10488
  var colorPickerPrefixCls = getPrefixCls(prefixCls, 'color-picker');
10459
- var popUpLayer = classnames__WEBPACK_IMPORTED_MODULE_13___default()(getPrefixCls(prefixCls, 'color-picker-pop'), popperClassName);
10460
- var containerCls = classnames__WEBPACK_IMPORTED_MODULE_13___default()("".concat(colorPickerPrefixCls, "-container"), className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(colorPickerPrefixCls, "-container-pure"), pure));
10489
+ var rtlCls = direction === 'rtl' ? "".concat(colorPickerPrefixCls, "-rtl") : null;
10490
+ var popUpLayer = classnames__WEBPACK_IMPORTED_MODULE_13___default()(getPrefixCls(prefixCls, 'color-picker-pop'), rtlCls, popperClassName);
10491
+ var containerCls = classnames__WEBPACK_IMPORTED_MODULE_13___default()("".concat(colorPickerPrefixCls, "-container"), rtlCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(colorPickerPrefixCls, "-container-pure"), pure));
10461
10492
  var inputCls = classnames__WEBPACK_IMPORTED_MODULE_13___default()("".concat(colorPickerPrefixCls, "-input"));
10462
10493
  var inputRef = Object(react__WEBPACK_IMPORTED_MODULE_12__["useRef"])(null);
10463
10494
  var showColorPickerPanel = showColorTransfer || typeof showPresetColor === 'boolean' && showPresetColor && ((presetColor === null || presetColor === void 0 ? void 0 : presetColor.length) || _constant_systemPresetColor__WEBPACK_IMPORTED_MODULE_24__["systemPresetColor"].length) || typeof showPresetColor === 'undefined' || showClear || (historicalColor === null || historicalColor === void 0 ? void 0 : historicalColor.length) || (functionalColor === null || functionalColor === void 0 ? void 0 : functionalColor.length) && showSwitch || (showColorPickerBox === null || showColorPickerBox === void 0 ? void 0 : showColorPickerBox.showBox) || (showColorPickerBox === null || showColorPickerBox === void 0 ? void 0 : showColorPickerBox.showHue) || (showColorPickerBox === null || showColorPickerBox === void 0 ? void 0 : showColorPickerBox.showOpacity);
@@ -10652,7 +10683,7 @@ var InternalColorPicker = function InternalColorPicker(props, ref) {
10652
10683
  });
10653
10684
  var popperProps = _objectSpread(_objectSpread({}, otherProps), {}, {
10654
10685
  popperClassName: popUpLayer,
10655
- placement: 'bottomLeft',
10686
+ placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
10656
10687
  defaultVisible: showPanel,
10657
10688
  visible: showPanel,
10658
10689
  onVisibleChange: null,
@@ -11458,11 +11489,9 @@ var compDefaultProps = {
11458
11489
  disabled: false,
11459
11490
  draggable: false,
11460
11491
  virtual: true,
11461
- switcherIcon: function switcherIcon() {
11462
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1__["createElement"](_index__WEBPACK_IMPORTED_MODULE_2__["Icon"], {
11463
- type: "arrow-right-solid"
11464
- });
11465
- },
11492
+ // switcherIcon: function () {
11493
+ // return <Icon type="arrow-right-solid" />
11494
+ // },
11466
11495
  estimatedItemSize: 32,
11467
11496
  expandOnClickNode: true,
11468
11497
  expandOnFilterNode: false
@@ -17345,7 +17374,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
17345
17374
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_11__["useContext"](_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__["default"]),
17346
17375
  getPrefixCls = _React$useContext.getPrefixCls,
17347
17376
  pkgPrefixCls = _React$useContext.prefixCls,
17348
- userDefaultProps = _React$useContext.compDefaultProps;
17377
+ userDefaultProps = _React$useContext.compDefaultProps,
17378
+ direction = _React$useContext.direction;
17349
17379
  var allProps = Object(_utils__WEBPACK_IMPORTED_MODULE_14__["getCompProps"])('Dropdown', userDefaultProps, props);
17350
17380
  var menu = allProps.menu,
17351
17381
  disabled = allProps.disabled,
@@ -17355,6 +17385,7 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
17355
17385
  defaultVisible = allProps.defaultVisible,
17356
17386
  onVisibleChange = allProps.onVisibleChange,
17357
17387
  trigger = allProps.trigger,
17388
+ placement = allProps.placement,
17358
17389
  customPrefixcls = allProps.prefixCls,
17359
17390
  menuAnimation = allProps.menuAnimation,
17360
17391
  popperStyle = allProps.popperStyle;
@@ -17456,7 +17487,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
17456
17487
  popperStyle: innerAnimation ? popperStyle : _objectSpread({
17457
17488
  animation: 'none'
17458
17489
  }, popperStyle),
17459
- onVisibleChange: handleVisibleChange
17490
+ onVisibleChange: handleVisibleChange,
17491
+ placement: placement || (direction === 'rtl' ? 'bottomRight' : 'bottomLeft')
17460
17492
  });
17461
17493
  return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_16__["default"])(child, menuElement, popperProps);
17462
17494
  });
@@ -17520,7 +17552,8 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](functio
17520
17552
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__["useContext"](_config_provider__WEBPACK_IMPORTED_MODULE_4__["ConfigContext"]),
17521
17553
  getPrefixCls = _React$useContext.getPrefixCls,
17522
17554
  pkgPrefixCls = _React$useContext.prefixCls,
17523
- userDefaultProps = _React$useContext.compDefaultProps;
17555
+ userDefaultProps = _React$useContext.compDefaultProps,
17556
+ direction = _React$useContext.direction;
17524
17557
  var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_5__["getCompProps"])('DropdownMenu', userDefaultProps, props),
17525
17558
  customPrefixcls = _getCompProps.prefixCls,
17526
17559
  children = _getCompProps.children,
@@ -17529,6 +17562,7 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](functio
17529
17562
  className = _getCompProps.className,
17530
17563
  restProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getCompProps, _excluded);
17531
17564
  var prefixCls = getPrefixCls(pkgPrefixCls, 'dropdown-menu', customPrefixcls);
17565
+ var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
17532
17566
  var cloneItem = function cloneItem(item, index) {
17533
17567
  if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["isValidElement"](item)) {
17534
17568
  return item;
@@ -17542,7 +17576,7 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](functio
17542
17576
  });
17543
17577
  };
17544
17578
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("ul", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
17545
- className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, className),
17579
+ className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, rtlCls, className),
17546
17580
  role: "menu"
17547
17581
  }, restProps, {
17548
17582
  ref: ref
@@ -22547,7 +22581,8 @@ var Preview = function Preview(props) {
22547
22581
  getPrefixCls = _React$useContext.getPrefixCls,
22548
22582
  pkgPrefixCls = _React$useContext.prefixCls,
22549
22583
  userDefaultProps = _React$useContext.compDefaultProps,
22550
- locale = _React$useContext.locale;
22584
+ locale = _React$useContext.locale,
22585
+ direction = _React$useContext.direction;
22551
22586
 
22552
22587
  // 属性需要合并一遍用户定义的默认属性
22553
22588
  var allProps = Object(_utils__WEBPACK_IMPORTED_MODULE_15__["getCompProps"])('Image', userDefaultProps, props);
@@ -22568,6 +22603,7 @@ var Preview = function Preview(props) {
22568
22603
 
22569
22604
  // className前缀
22570
22605
  var prefixCls = getPrefixCls(pkgPrefixCls, 'image', customPrefixcls);
22606
+ var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
22571
22607
  var _React$useState = react__WEBPACK_IMPORTED_MODULE_12__["useState"](visible),
22572
22608
  _React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_React$useState, 2),
22573
22609
  show = _React$useState2[0],
@@ -22640,7 +22676,7 @@ var Preview = function Preview(props) {
22640
22676
  }
22641
22677
  };
22642
22678
  var peviewContainer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("div", {
22643
- className: classnames__WEBPACK_IMPORTED_MODULE_14___default()("".concat(prefixCls, "-preview"), props.className, {
22679
+ className: classnames__WEBPACK_IMPORTED_MODULE_14___default()("".concat(prefixCls, "-preview"), rtlCls, props.className, {
22644
22680
  show: show
22645
22681
  }),
22646
22682
  style: _objectSpread({}, props.style)
@@ -22658,7 +22694,7 @@ var Preview = function Preview(props) {
22658
22694
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("img", previewImgProps))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("div", {
22659
22695
  className: "".concat(prefixCls, "-preview-action")
22660
22696
  }, props.type !== 'upload' && length && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_17__["default"], {
22661
- type: "arrow-left",
22697
+ type: direction === 'rtl' ? 'arrow-right' : 'arrow-left',
22662
22698
  className: classnames__WEBPACK_IMPORTED_MODULE_14___default()({
22663
22699
  disabled: current <= 0
22664
22700
  }),
@@ -22676,7 +22712,7 @@ var Preview = function Preview(props) {
22676
22712
  }),
22677
22713
  onClick: handleZoomIn
22678
22714
  }), props.type !== 'upload' && operations, props.type !== 'upload' && length && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_17__["default"], {
22679
- type: "arrow-right",
22715
+ type: direction === 'rtl' ? 'arrow-left' : 'arrow-right',
22680
22716
  className: classnames__WEBPACK_IMPORTED_MODULE_14___default()({
22681
22717
  disabled: current >= length - 1
22682
22718
  }),
@@ -23578,12 +23614,14 @@ var ClearableInput = function ClearableInput(props) {
23578
23614
  numberMark = props.numberMark,
23579
23615
  inputCount = props.inputCount,
23580
23616
  count = props.count,
23581
- status = props.status;
23617
+ status = props.status,
23618
+ direction = props.direction;
23582
23619
  var fixRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null);
23583
23620
  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false),
23584
23621
  _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
23585
23622
  isMouseEnter = _useState2[0],
23586
23623
  setIsMouseEnter = _useState2[1];
23624
+ var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
23587
23625
  var mouseEnterHandle = function mouseEnterHandle() {
23588
23626
  setIsMouseEnter(true);
23589
23627
  };
@@ -23637,7 +23675,7 @@ var ClearableInput = function ClearableInput(props) {
23637
23675
  className: "".concat(prefixCls, "-prefix"),
23638
23676
  onMouseDown: mouseDownHandle
23639
23677
  }, prefix) : null;
23640
- var inputWrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-focused"), focused && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, className, className && !addonBefore && !addonAfter));
23678
+ var inputWrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(rtlCls, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-focused"), focused && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, className, className && !addonBefore && !addonAfter));
23641
23679
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
23642
23680
  className: inputWrapperClasses,
23643
23681
  ref: fixRef,
@@ -23661,7 +23699,7 @@ var ClearableInput = function ClearableInput(props) {
23661
23699
  var addonAfterNode = addonAfter ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
23662
23700
  className: addonClassName
23663
23701
  }, addonAfter) : null;
23664
- var inputGroupClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, (_classNames5 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(prefixCls, "-group"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(prefixCls, "-group-size-").concat(size), size), _classNames5));
23702
+ var inputGroupClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, rtlCls, (_classNames5 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(prefixCls, "-group"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(prefixCls, "-group-size-").concat(size), size), _classNames5));
23665
23703
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
23666
23704
  className: "".concat(prefixCls, "-group-wrapper")
23667
23705
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
@@ -23695,7 +23733,7 @@ var ClearableInput = function ClearableInput(props) {
23695
23733
  delete wrapperStyle[key];
23696
23734
  }
23697
23735
  }
23698
- var textAreaWrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(prefixCls, "-wrapper-textarea"), true));
23736
+ var textAreaWrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, rtlCls, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(prefixCls, "-wrapper-textarea"), true));
23699
23737
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
23700
23738
  className: textAreaWrapperClasses,
23701
23739
  style: wrapperStyle,
@@ -23770,7 +23808,8 @@ var InternalTextarea = function InternalTextarea(props, ref) {
23770
23808
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_7__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_9__["default"]),
23771
23809
  getPrefixCls = _useContext.getPrefixCls,
23772
23810
  prefixCls = _useContext.prefixCls,
23773
- userDefaultProps = _useContext.compDefaultProps;
23811
+ userDefaultProps = _useContext.compDefaultProps,
23812
+ direction = _useContext.direction;
23774
23813
  var textAreaProps = Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getCompProps"])('TextArea', userDefaultProps, props);
23775
23814
  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])({}),
23776
23815
  _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
@@ -23801,6 +23840,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
23801
23840
  addonBefore = textAreaProps.addonBefore,
23802
23841
  others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(textAreaProps, _excluded);
23803
23842
  var textAreaPrefixCls = getPrefixCls(prefixCls, 'input', customPrefixcls);
23843
+ var rtlCls = direction === 'rtl' ? "".concat(textAreaPrefixCls, "-rtl") : null;
23804
23844
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_15__["default"])(_input__WEBPACK_IMPORTED_MODULE_12__["BorderTypes"].indexOf(borderType) === -1, 'textarea', "cannot found textarea borderType '".concat(borderType, "'"));
23805
23845
  var _useMergedState = Object(_utils_hooks__WEBPACK_IMPORTED_MODULE_14__["useMergedState"])('', {
23806
23846
  value: propsValue,
@@ -23923,7 +23963,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
23923
23963
  ref: textareaRef,
23924
23964
  disabled: disabled,
23925
23965
  style: _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
23926
- className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error' || numberMarkError), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !allowClear && !hadCount)),
23966
+ className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), rtlCls, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error' || numberMarkError), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !allowClear && !hadCount)),
23927
23967
  onChange: handleChange,
23928
23968
  onFocus: !disabled ? handleFocus : undefined,
23929
23969
  onBlur: !disabled ? handleBlur : undefined,
@@ -23933,7 +23973,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
23933
23973
  }, others));
23934
23974
  return hadCount ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("span", {
23935
23975
  style: wrapperStyle,
23936
- className: "".concat(prefixCls, "-countWrapper ").concat(className && !allowClear ? className : '')
23976
+ className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(rtlCls, "".concat(prefixCls, "-countWrapper ").concat(className && !allowClear ? className : ''))
23937
23977
  }, textarea, renderNumberMark()) : textarea;
23938
23978
  };
23939
23979
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_11__["default"], _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, textAreaProps, {
@@ -23947,7 +23987,8 @@ var InternalTextarea = function InternalTextarea(props, ref) {
23947
23987
  inputType: "text",
23948
23988
  prefixCls: textAreaPrefixCls,
23949
23989
  element: renderTextArea(textAreaPrefixCls),
23950
- numberMark: renderNumberMark()
23990
+ numberMark: renderNumberMark(),
23991
+ direction: direction
23951
23992
  }));
23952
23993
  };
23953
23994
  var TextArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.forwardRef(InternalTextarea);
@@ -24149,7 +24190,8 @@ var InternalInput = function InternalInput(props, ref) {
24149
24190
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_5__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_7__["default"]),
24150
24191
  getPrefixCls = _useContext.getPrefixCls,
24151
24192
  prefixCls = _useContext.prefixCls,
24152
- userDefaultProps = _useContext.compDefaultProps;
24193
+ userDefaultProps = _useContext.compDefaultProps,
24194
+ direction = _useContext.direction;
24153
24195
  var inputProps = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["getCompProps"])('Input', userDefaultProps, props);
24154
24196
  var type = inputProps.type,
24155
24197
  size = inputProps.size,
@@ -24192,7 +24234,8 @@ var InternalInput = function InternalInput(props, ref) {
24192
24234
  setShowNumberMark = _useState4[1];
24193
24235
  var inputRef = Object(react__WEBPACK_IMPORTED_MODULE_5__["useRef"])();
24194
24236
  var inputPrefixCls = getPrefixCls(prefixCls, 'input', customPrefixcls);
24195
- var inputClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()(inputPrefixCls, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-disabled"), disabled), _classNames), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !Object(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_10__["hasPrefixSuffix"])(inputProps) && !addonBefore && !addonAfter));
24237
+ var rtlCls = direction === 'rtl' ? "".concat(inputPrefixCls, "-rtl") : null;
24238
+ var inputClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()(inputPrefixCls, rtlCls, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(inputPrefixCls, "-disabled"), disabled), _classNames), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !Object(_ClearableLabeledInput__WEBPACK_IMPORTED_MODULE_10__["hasPrefixSuffix"])(inputProps) && !addonBefore && !addonAfter));
24196
24239
  var handleFocus = function handleFocus(event) {
24197
24240
  setFocused(true);
24198
24241
  onFocus && onFocus(event);
@@ -24293,7 +24336,8 @@ var InternalInput = function InternalInput(props, ref) {
24293
24336
  element: renderInput(),
24294
24337
  focused: focused,
24295
24338
  count: count,
24296
- inputCount: renderCount()
24339
+ inputCount: renderCount(),
24340
+ direction: direction
24297
24341
  }));
24298
24342
  };
24299
24343
  var Input = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.forwardRef(InternalInput);
@@ -24871,7 +24915,8 @@ var InternalLink = function InternalLink(props, ref) {
24871
24915
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
24872
24916
  getPrefixCls = _useContext.getPrefixCls,
24873
24917
  prefixCls = _useContext.prefixCls,
24874
- userDefaultProps = _useContext.compDefaultProps;
24918
+ userDefaultProps = _useContext.compDefaultProps,
24919
+ direction = _useContext.direction;
24875
24920
  var linkProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["getCompProps"])('Link', userDefaultProps, props);
24876
24921
  var size = linkProps.size,
24877
24922
  style = linkProps.style,
@@ -24890,8 +24935,8 @@ var InternalLink = function InternalLink(props, ref) {
24890
24935
  // ref
24891
24936
  var linkRef = ref || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createRef();
24892
24937
  var linkPrefixCls = getPrefixCls(prefixCls, 'link', customPrefixcls); // 按钮样式前缀
24893
-
24894
- var wrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(linkPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(linkPrefixCls, "-size-").concat(size), size), _classNames));
24938
+ var rtlCls = direction === 'rtl' ? "".concat(linkPrefixCls, "-rtl") : null; // 文字方向
24939
+ var wrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(rtlCls, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(linkPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(linkPrefixCls, "-size-").concat(size), size), _classNames));
24895
24940
  var linkClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(linkPrefixCls, "-text"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(linkPrefixCls, "-underscore"), underscore), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(linkPrefixCls, "-disabled"), disabled), _classNames2));
24896
24941
  var handleClick = function handleClick(e) {
24897
24942
  // 禁用状态 不跳转
@@ -25552,7 +25597,8 @@ var Menu = function Menu(props) {
25552
25597
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_18__["useContext"])(_config_provider__WEBPACK_IMPORTED_MODULE_20__["ConfigContext"]),
25553
25598
  getPrefixCls = _useContext.getPrefixCls,
25554
25599
  pkgPrefixCls = _useContext.prefixCls,
25555
- userDefaultProps = _useContext.compDefaultProps;
25600
+ userDefaultProps = _useContext.compDefaultProps,
25601
+ direction = _useContext.direction;
25556
25602
  var userSelectedKey = props.selectedKey,
25557
25603
  userOpenKeys = props.openKeys;
25558
25604
  var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_21__["getCompProps"])('Menu', userDefaultProps, props),
@@ -25571,6 +25617,7 @@ var Menu = function Menu(props) {
25571
25617
  defaultOpenKeys = _getCompProps.defaultOpenKeys,
25572
25618
  restProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4___default()(_getCompProps, _excluded);
25573
25619
  var prefixCls = getPrefixCls(pkgPrefixCls, 'menu', customPrefixcls);
25620
+ var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
25574
25621
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_23__["default"])(['inline', 'vertical', undefined].indexOf(mode) === -1, 'menu', "cannot found menu mode '".concat(mode, "'"));
25575
25622
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_23__["default"])(mode !== 'inline' && accordion !== undefined, 'menu', "'accordion' is valid only in mode='inline'");
25576
25623
  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_18__["useState"])(''),
@@ -25690,7 +25737,7 @@ var Menu = function Menu(props) {
25690
25737
  onMouseEnter: handleMouseEnterMenu
25691
25738
  };
25692
25739
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
25693
- className: classnames__WEBPACK_IMPORTED_MODULE_22___default()(prefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-inline"), mode === 'inline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-vertical"), mode !== 'inline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-collapsed"), collapsed), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-").concat(theme === 'light' ? 'light' : 'dark'), true), _classNames)),
25740
+ className: classnames__WEBPACK_IMPORTED_MODULE_22___default()(prefixCls, rtlCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-inline"), mode === 'inline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-vertical"), mode !== 'inline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-collapsed"), collapsed), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-").concat(theme === 'light' ? 'light' : 'dark'), true), _classNames)),
25694
25741
  role: "menu",
25695
25742
  style: style
25696
25743
  }, mouseEvent), children && renderMenu(), additionalTools);
@@ -25748,7 +25795,8 @@ var InternalMenuItem = function InternalMenuItem(props, ref) {
25748
25795
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_5__["useContext"](_config_provider__WEBPACK_IMPORTED_MODULE_6__["ConfigContext"]),
25749
25796
  getPrefixCls = _React$useContext.getPrefixCls,
25750
25797
  pkgPrefixCls = _React$useContext.prefixCls,
25751
- userDefaultProps = _React$useContext.compDefaultProps;
25798
+ userDefaultProps = _React$useContext.compDefaultProps,
25799
+ direction = _React$useContext.direction;
25752
25800
 
25753
25801
  // 属性需要合并一遍用户定义的默认属性
25754
25802
  var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["getCompProps"])('MenuItem', userDefaultProps, props),
@@ -25830,9 +25878,10 @@ var InternalMenuItem = function InternalMenuItem(props, ref) {
25830
25878
  onMouseLeave: handleOnMouseLeave,
25831
25879
  onMouseEnter: handleOnMouseEnter
25832
25880
  };
25881
+ var isRtl = direction === 'rtl';
25833
25882
  var titleStyle = {
25834
- paddingLeft: "".concat(getPaddingLeft(), "px"),
25835
- paddingRight: mode !== 'inline' && level > 1 ? "".concat(_util__WEBPACK_IMPORTED_MODULE_9__["DEFAUTL_PADDING"], "px") : 0
25883
+ paddingLeft: isRtl ? mode !== 'inline' && level > 1 ? "".concat(_util__WEBPACK_IMPORTED_MODULE_9__["DEFAUTL_PADDING"], "px") : 0 : "".concat(getPaddingLeft(), "px"),
25884
+ paddingRight: isRtl ? "".concat(getPaddingLeft(), "px") : mode !== 'inline' && level > 1 ? "".concat(_util__WEBPACK_IMPORTED_MODULE_9__["DEFAUTL_PADDING"], "px") : 0
25836
25885
  };
25837
25886
  var renderTitle = function renderTitle() {
25838
25887
  if (!icon && collapsed && level === 1 && typeof children === 'string') {
@@ -25956,7 +26005,8 @@ var SubMenu = function SubMenu(props) {
25956
26005
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_8___default.a.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_9__["ConfigContext"]),
25957
26006
  getPrefixCls = _React$useContext.getPrefixCls,
25958
26007
  pkgPrefixCls = _React$useContext.prefixCls,
25959
- userDefaultProps = _React$useContext.compDefaultProps;
26008
+ userDefaultProps = _React$useContext.compDefaultProps,
26009
+ direction = _React$useContext.direction;
25960
26010
 
25961
26011
  // 属性需要合并一遍用户定义的默认属性
25962
26012
  var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getCompProps"])('MenuSubMenu', userDefaultProps, props),
@@ -26163,9 +26213,10 @@ var SubMenu = function SubMenu(props) {
26163
26213
  onMouseEnter: handleOnMouseEnter,
26164
26214
  onClick: handleOnClickSubMenu
26165
26215
  };
26216
+ var isRtl = direction === 'rtl';
26166
26217
  var titleStyle = {
26167
- paddingRight: "".concat(curPaddingRight, "px"),
26168
- paddingLeft: "".concat(curPaddingLeft, "px")
26218
+ paddingRight: isRtl ? "".concat(curPaddingLeft, "px") : "".concat(curPaddingRight, "px"),
26219
+ paddingLeft: isRtl ? "".concat(curPaddingRight, "px") : "".concat(curPaddingLeft, "px")
26169
26220
  };
26170
26221
 
26171
26222
  // eslint-disable-next-line react-hooks/rules-of-hooks
@@ -26216,7 +26267,7 @@ var SubMenu = function SubMenu(props) {
26216
26267
  });
26217
26268
  }))), {
26218
26269
  arrow: false,
26219
- placement: 'rightTop',
26270
+ placement: direction === 'rtl' ? 'leftTop' : 'rightTop',
26220
26271
  gap: 0,
26221
26272
  visible: isVertical && !disabled ? visible : false,
26222
26273
  disabled: isVertical ? undefined : true,
@@ -26834,7 +26885,8 @@ var InternalModal = function InternalModal(props, ref) {
26834
26885
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_6__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_12__["default"]),
26835
26886
  getPrefixCls = _useContext.getPrefixCls,
26836
26887
  prefixCls = _useContext.prefixCls,
26837
- userDefaultProps = _useContext.compDefaultProps;
26888
+ userDefaultProps = _useContext.compDefaultProps,
26889
+ direction = _useContext.direction;
26838
26890
  var modalProps = Object(_utils__WEBPACK_IMPORTED_MODULE_13__["getCompProps"])('Modal', userDefaultProps, props); // 属性需要合并一遍用户定义的默认属性
26839
26891
  var body = modalProps.body,
26840
26892
  bodyClassName = modalProps.bodyClassName,
@@ -26889,6 +26941,7 @@ var InternalModal = function InternalModal(props, ref) {
26889
26941
  var wrapperRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
26890
26942
  var containerRef = ref || innerRef;
26891
26943
  var modalPrefixCls = getPrefixCls(prefixCls, 'modal', customPrefixcls);
26944
+ var rtlCls = direction === 'rtl' ? "".concat(modalPrefixCls, "-rtl") : null;
26892
26945
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_14__["default"])(ModalTypes.indexOf(type) === -1, 'modal', "cannot found modal type '".concat(type, "'"));
26893
26946
  var modalContainer = typeof getContainer === 'function' ? getContainer() : getContainer;
26894
26947
  if (modalContainer !== false && !(modalContainer instanceof HTMLElement)) {
@@ -27158,7 +27211,7 @@ var InternalModal = function InternalModal(props, ref) {
27158
27211
  }
27159
27212
  };
27160
27213
  var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
27161
- var modalClasses = classnames__WEBPACK_IMPORTED_MODULE_11___default()(modalPrefixCls, className, (_classNames3 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container-ie"), _utils_ieUtil__WEBPACK_IMPORTED_MODULE_18__["isIE"]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
27214
+ var modalClasses = classnames__WEBPACK_IMPORTED_MODULE_11___default()(modalPrefixCls, rtlCls, className, (_classNames3 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container-ie"), _utils_ieUtil__WEBPACK_IMPORTED_MODULE_18__["isIE"]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
27162
27215
  var headerClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()("".concat(modalPrefixCls, "-header"), titleClassName);
27163
27216
  var container = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
27164
27217
  className: classnames__WEBPACK_IMPORTED_MODULE_11___default()((_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(modalPrefixCls, "-container-box"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(modalPrefixCls, "-has-container-box"), modalContainer && !overroll), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(modalPrefixCls, "-showline"), showline), _classNames4)),
@@ -29999,7 +30052,8 @@ var QRCode = function QRCode(props) {
29999
30052
  getPrefixCls = _useContext.getPrefixCls,
30000
30053
  prefixCls = _useContext.prefixCls,
30001
30054
  userDefaultProps = _useContext.compDefaultProps,
30002
- getCompLangMsg = _useContext.locale.getCompLangMsg;
30055
+ getCompLangMsg = _useContext.locale.getCompLangMsg,
30056
+ direction = _useContext.direction;
30003
30057
  var qrCodeProps = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getCompProps"])('QRCode', userDefaultProps, props);
30004
30058
  var value = qrCodeProps.value,
30005
30059
  size = qrCodeProps.size,
@@ -30018,7 +30072,8 @@ var QRCode = function QRCode(props) {
30018
30072
  var className = qrCodeProps.className,
30019
30073
  customPrefixcls = qrCodeProps.prefixCls;
30020
30074
  var qrCodePrefixCls = getPrefixCls(prefixCls, 'qrcode', customPrefixcls);
30021
- var qrCodeClass = classnames__WEBPACK_IMPORTED_MODULE_9___default()(qrCodePrefixCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()({}, "".concat(qrCodePrefixCls, "-borderless"), !bordered));
30075
+ var rtlCls = direction === 'rtl' ? "".concat(qrCodePrefixCls, "-rtl") : null;
30076
+ var qrCodeClass = classnames__WEBPACK_IMPORTED_MODULE_9___default()(qrCodePrefixCls, rtlCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()({}, "".concat(qrCodePrefixCls, "-borderless"), !bordered));
30022
30077
  var qrCodeLangMsg = getCompLangMsg({
30023
30078
  componentName: 'QRCode'
30024
30079
  });
@@ -30153,7 +30208,8 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
30153
30208
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_4__["useContext"](_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
30154
30209
  getPrefixCls = _React$useContext.getPrefixCls,
30155
30210
  prefixCls = _React$useContext.prefixCls,
30156
- userDefaultProps = _React$useContext.compDefaultProps;
30211
+ userDefaultProps = _React$useContext.compDefaultProps,
30212
+ direction = _React$useContext.direction;
30157
30213
  var initValue = typeof props.value === 'undefined' ? props.defaultValue : props.value;
30158
30214
  var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__["useState"](initValue),
30159
30215
  _React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_React$useState, 2),
@@ -30187,6 +30243,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
30187
30243
  optionType = _getCompProps.optionType,
30188
30244
  customPrefixcls = _getCompProps.prefixCls; // 属性需要合并一遍用户定义的默认属性
30189
30245
  var groupPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio-group", customPrefixcls); // 单选组样式前缀
30246
+ var rtlCls = direction === 'rtl' ? "".concat(groupPrefixCls, "-rtl") : null;
30190
30247
  var radioPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio", customPrefixcls); // 单选样式前缀
30191
30248
  var childrenToRender = children;
30192
30249
  // 如果存在 options, 优先使用
@@ -30215,7 +30272,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
30215
30272
  });
30216
30273
  }
30217
30274
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
30218
- className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(groupPrefixCls, className),
30275
+ className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(groupPrefixCls, rtlCls, className),
30219
30276
  style: style,
30220
30277
  id: id,
30221
30278
  ref: ref
@@ -30405,7 +30462,8 @@ var InternalRadio = function InternalRadio(props, ref) {
30405
30462
  var _React$useContext = react__WEBPACK_IMPORTED_MODULE_5___default.a.useContext(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_10__["default"]),
30406
30463
  getPrefixCls = _React$useContext.getPrefixCls,
30407
30464
  prefixCls = _React$useContext.prefixCls,
30408
- userDefaultProps = _React$useContext.compDefaultProps;
30465
+ userDefaultProps = _React$useContext.compDefaultProps,
30466
+ direction = _React$useContext.direction;
30409
30467
  var innerRef = react__WEBPACK_IMPORTED_MODULE_5___default.a.useRef();
30410
30468
  var mergedRef = ref || innerRef;
30411
30469
  var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getCompProps"])('Radio', userDefaultProps, props),
@@ -30428,6 +30486,7 @@ var InternalRadio = function InternalRadio(props, ref) {
30428
30486
  return "radio".concat(radioType === 'square' ? "-".concat(radioType) : '');
30429
30487
  };
30430
30488
  var radioPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, getPrefix(radioType), customPrefixcls); // 样式前缀
30489
+ var rtlCls = direction === 'rtl' ? "".concat(radioPrefixCls, "-rtl") : null;
30431
30490
  var _React$useState = react__WEBPACK_IMPORTED_MODULE_5___default.a.useState(initValue),
30432
30491
  _React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_React$useState, 2),
30433
30492
  isChecked = _React$useState2[0],
@@ -30448,7 +30507,7 @@ var InternalRadio = function InternalRadio(props, ref) {
30448
30507
  context.onChange(e, value);
30449
30508
  }
30450
30509
  };
30451
- var classString = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls, "-checked"), isChecked), _classNames), className); // 单选包裹元素class名称
30510
+ var classString = classnames__WEBPACK_IMPORTED_MODULE_6___default()(rtlCls, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls, "-checked"), isChecked), _classNames), className); // 单选包裹元素class名称
30452
30511
 
30453
30512
  Object(react__WEBPACK_IMPORTED_MODULE_5__["useEffect"])(function () {
30454
30513
  var _radioRef$current;
@@ -32139,8 +32198,10 @@ var InternalOption = function InternalOption(props, ref) {
32139
32198
  var optionProps = _objectSpread({}, props);
32140
32199
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_12__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
32141
32200
  getPrefixCls = _useContext.getPrefixCls,
32142
- prefixCls = _useContext.prefixCls;
32201
+ prefixCls = _useContext.prefixCls,
32202
+ direction = _useContext.direction;
32143
32203
  var selectOptionPrefixCls = getPrefixCls(prefixCls, 'select-item');
32204
+ var rtlCls = direction === 'rtl' ? "".concat(selectOptionPrefixCls, "-rtl") : null;
32144
32205
  Object(react__WEBPACK_IMPORTED_MODULE_12__["useEffect"])(function () {
32145
32206
  if (isMultiple) {
32146
32207
  setSelected((values === null || values === void 0 ? void 0 : values.indexOf(value)) > -1);
@@ -32148,7 +32209,7 @@ var InternalOption = function InternalOption(props, ref) {
32148
32209
  setSelected(value !== undefined ? value === values : false);
32149
32210
  }
32150
32211
  });
32151
- var optionCls = classnames__WEBPACK_IMPORTED_MODULE_13___default()(selectOptionPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option-active"), activeIndex === index), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option-selected"), isSelected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option-disabled"), disabled), _classNames));
32212
+ var optionCls = classnames__WEBPACK_IMPORTED_MODULE_13___default()(selectOptionPrefixCls, rtlCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option-active"), activeIndex === index), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option-selected"), isSelected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option-disabled"), disabled), _classNames));
32152
32213
  var contentCls = classnames__WEBPACK_IMPORTED_MODULE_13___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(selectOptionPrefixCls, "-option-content"), true));
32153
32214
  var handleClick = function handleClick(e) {
32154
32215
  e.preventDefault();
@@ -32326,7 +32387,8 @@ var InternalSelect = function InternalSelect(props, ref) {
32326
32387
  getPrefixCls = _useContext.getPrefixCls,
32327
32388
  prefixCls = _useContext.prefixCls,
32328
32389
  userDefaultProps = _useContext.compDefaultProps,
32329
- locale = _useContext.locale;
32390
+ locale = _useContext.locale,
32391
+ direction = _useContext.direction;
32330
32392
  var selectProps = Object(_utils__WEBPACK_IMPORTED_MODULE_33__["getCompProps"])('Select', userDefaultProps, props);
32331
32393
  var selectLangMsg = locale.getCompLangMsg({
32332
32394
  componentName: 'Select'
@@ -32418,8 +32480,9 @@ var InternalSelect = function InternalSelect(props, ref) {
32418
32480
  return lodash_isBoolean__WEBPACK_IMPORTED_MODULE_30___default()(showSearch) ? showSearch : isMultiple;
32419
32481
  }, [isMultiple, showSearch]);
32420
32482
  var selectPrefixCls = getPrefixCls(prefixCls, 'select', customPrefixcls);
32483
+ var rtlCls = direction === 'rtl' ? "".concat(selectPrefixCls, "-rtl") : null;
32421
32484
  // 选择器样式
32422
- var selectCls = classnames__WEBPACK_IMPORTED_MODULE_31___default()(selectPrefixCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()({}, "".concat(selectPrefixCls, "-visible"), optionShow));
32485
+ var selectCls = classnames__WEBPACK_IMPORTED_MODULE_31___default()(selectPrefixCls, rtlCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()({}, "".concat(selectPrefixCls, "-visible"), optionShow));
32423
32486
  var selectionCls = classnames__WEBPACK_IMPORTED_MODULE_31___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()({}, "".concat(selectPrefixCls, "-selector"), true));
32424
32487
 
32425
32488
  // 下拉子项列表样式
@@ -33031,7 +33094,7 @@ var InternalSelect = function InternalSelect(props, ref) {
33031
33094
  var multipleCls = classnames__WEBPACK_IMPORTED_MODULE_31___default()(commCls, (_classNames10 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()(_classNames10, "".concat(selectPrefixCls, "-multiple-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()(_classNames10, "".concat(selectPrefixCls, "-").concat(mode), mode), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()(_classNames10, "".concat(selectPrefixCls, "-focused"), focusd || optionShow), _classNames10));
33032
33095
  var itemCls = classnames__WEBPACK_IMPORTED_MODULE_31___default()((_classNames11 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()(_classNames11, "".concat(selectPrefixCls, "-selection-item"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()(_classNames11, "".concat(selectPrefixCls, "-selection-item-").concat(size), size), _classNames11));
33033
33096
  var TagStyle = {
33034
- margin: '2px 8px 2px 0',
33097
+ margin: direction === 'rtl' ? '2px 0 2px 8px' : '2px 8px 2px 0',
33035
33098
  maxWidth: '100%'
33036
33099
  };
33037
33100
  var totalText = locale.getLangMsg('Select', 'total', {
@@ -33254,7 +33317,7 @@ var InternalSelect = function InternalSelect(props, ref) {
33254
33317
  }
33255
33318
  };
33256
33319
  var popperProps = _objectSpread(_objectSpread({}, selectProps), {}, {
33257
- prefixCls: "".concat(selectPrefixCls, "-dropdown-panel").concat(isMultiple ? " ".concat(selectPrefixCls, "-multiple-dropdown-panel") : ''),
33320
+ prefixCls: "".concat(selectPrefixCls, "-dropdown-panel").concat(isMultiple ? " ".concat(selectPrefixCls, "-multiple-dropdown-panel") : '', " ").concat(rtlCls),
33258
33321
  placement: 'bottomLeft',
33259
33322
  popperStyle: catchStyle(),
33260
33323
  defaultVisible: optionShow,
@@ -36619,7 +36682,8 @@ var Steps = function Steps(props) {
36619
36682
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_12__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
36620
36683
  getPrefixCls = _useContext.getPrefixCls,
36621
36684
  prefixCls = _useContext.prefixCls,
36622
- userDefaultProps = _useContext.compDefaultProps;
36685
+ userDefaultProps = _useContext.compDefaultProps,
36686
+ rtlDirection = _useContext.direction;
36623
36687
  var stepsProps = Object(_utils__WEBPACK_IMPORTED_MODULE_15__["getCompProps"])('Steps', userDefaultProps, props);
36624
36688
  var direction = stepsProps.direction,
36625
36689
  initial = stepsProps.initial,
@@ -36641,8 +36705,8 @@ var Steps = function Steps(props) {
36641
36705
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_16__["default"])(_interface__WEBPACK_IMPORTED_MODULE_19__["Statuses"].indexOf(status) === -1, 'steps', "cannot found steps status '".concat(status, "'"));
36642
36706
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_16__["default"])(_interface__WEBPACK_IMPORTED_MODULE_19__["LabelPlacements"].indexOf(labelPlacement) === -1, 'steps', "cannot found steps labelPlacement '".concat(labelPlacement, "'"));
36643
36707
  var stepsPrefixCls = getPrefixCls(prefixCls, 'steps', customPrefixcls); // 按钮样式前缀
36644
-
36645
- var stepsClassName = classnames__WEBPACK_IMPORTED_MODULE_13___default()(stepsPrefixCls, "".concat(stepsPrefixCls, "-").concat(direction), className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-leftLable"), labelPlacement === 'left'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-rightLable"), labelPlacement === 'right'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-bottomLable"), labelPlacement === 'bottom'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-topLable"), labelPlacement === 'top'), _classNames));
36708
+ var rtlCls = rtlDirection === 'rtl' ? "".concat(stepsPrefixCls, "-rtl") : null;
36709
+ var stepsClassName = classnames__WEBPACK_IMPORTED_MODULE_13___default()(stepsPrefixCls, rtlCls, "".concat(stepsPrefixCls, "-").concat(direction), className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-leftLable"), labelPlacement === 'left'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-rightLable"), labelPlacement === 'right'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-bottomLable"), labelPlacement === 'bottom'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-topLable"), labelPlacement === 'top'), _classNames));
36646
36710
  var onStepClick = function onStepClick(next) {
36647
36711
  if (canClickCurrentStep || onChange && current !== next) {
36648
36712
  onChange(next);
@@ -36884,7 +36948,8 @@ var Switch = function Switch(props) {
36884
36948
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_5__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_8__["default"]),
36885
36949
  getPrefixCls = _useContext.getPrefixCls,
36886
36950
  prefixCls = _useContext.prefixCls,
36887
- userDefaultProps = _useContext.compDefaultProps;
36951
+ userDefaultProps = _useContext.compDefaultProps,
36952
+ direction = _useContext.direction;
36888
36953
  var switchProps = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getCompProps"])('Switch', userDefaultProps, props);
36889
36954
  var size = switchProps.size,
36890
36955
  className = switchProps.className,
@@ -36906,6 +36971,7 @@ var Switch = function Switch(props) {
36906
36971
  newChecked = _useMergedState2[0],
36907
36972
  setChecked = _useMergedState2[1];
36908
36973
  var switchPrefixCls = getPrefixCls(prefixCls, 'switch', customPrefixcls);
36974
+ var rtlCls = direction === 'rtl' ? "".concat(switchPrefixCls, "-rtl") : null;
36909
36975
  var handleClick = function handleClick(e) {
36910
36976
  var newV = triggerChange(!newChecked, e);
36911
36977
  onClick && onClick(newV, e);
@@ -36921,7 +36987,7 @@ var Switch = function Switch(props) {
36921
36987
  return afterChangedChecked;
36922
36988
  }
36923
36989
  // ref
36924
- var switchClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()(switchPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-disabled"), disabled || loading), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-loading"), loading), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-checked"), newChecked), _classNames));
36990
+ var switchClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()(switchPrefixCls, rtlCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-disabled"), disabled || loading), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-loading"), loading), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-checked"), newChecked), _classNames));
36925
36991
  var loadingIcon = loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("span", {
36926
36992
  className: "".concat(switchPrefixCls, "-loading-icon")
36927
36993
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
@@ -38733,7 +38799,8 @@ var InteranalTag = function InteranalTag(props, ref) {
38733
38799
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_11__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
38734
38800
  getPrefixCls = _useContext.getPrefixCls,
38735
38801
  prefixCls = _useContext.prefixCls,
38736
- userDefaultProps = _useContext.compDefaultProps;
38802
+ userDefaultProps = _useContext.compDefaultProps,
38803
+ direction = _useContext.direction;
38737
38804
  var tagProps = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getCompProps"])('Tag', userDefaultProps, props);
38738
38805
  var className = tagProps.className,
38739
38806
  clickable = tagProps.clickable,
@@ -38753,6 +38820,7 @@ var InteranalTag = function InteranalTag(props, ref) {
38753
38820
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_17__["default"])(TagTypes.indexOf(type) === -1, 'tag', "cannot found tag type '".concat(type, "'"));
38754
38821
  Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_17__["default"])(TagSizes.indexOf(size) === -1, 'tag', "cannot found tag size '".concat(size, "'"));
38755
38822
  var tagPrefixCls = getPrefixCls(prefixCls, 'tag', customPrefixcls);
38823
+ var rtlCls = direction === 'rtl' ? "".concat(tagPrefixCls, "-rtl") : null;
38756
38824
  var handleClick = function handleClick(e) {
38757
38825
  if (!clickable) return;
38758
38826
  onClick && onClick(e);
@@ -38787,7 +38855,7 @@ var InteranalTag = function InteranalTag(props, ref) {
38787
38855
 
38788
38856
  // 预设的颜色值
38789
38857
  var isPresetColor = ['process', 'success', 'warning', 'error', 'end', 'expired'].indexOf(color) > -1;
38790
- var tagClasses = classnames__WEBPACK_IMPORTED_MODULE_13___default()(tagPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-shape-").concat(type), type), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-").concat(color), isPresetColor), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-has-color"), !isPresetColor && color && type === 'attribute'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-clickable"), clickable), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-closable"), closable), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-closable-disabled"), type === 'edit' && disabled), _classNames));
38858
+ var tagClasses = classnames__WEBPACK_IMPORTED_MODULE_13___default()(tagPrefixCls, rtlCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-shape-").concat(type), type), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-").concat(color), isPresetColor), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-has-color"), !isPresetColor && color && type === 'attribute'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-clickable"), clickable), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-closable"), closable), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-closable-disabled"), type === 'edit' && disabled), _classNames));
38791
38859
 
38792
38860
  // 设置自定义颜色值的样式
38793
38861
  var tagColorStyle = !isPresetColor && color && type === 'attribute' ? {
@@ -41109,7 +41177,8 @@ var InternalTree = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.fo
41109
41177
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_16__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_19__["default"]),
41110
41178
  getPrefixCls = _useContext.getPrefixCls,
41111
41179
  prefixCls = _useContext.prefixCls,
41112
- userDefaultProps = _useContext.compDefaultProps;
41180
+ userDefaultProps = _useContext.compDefaultProps,
41181
+ direction = _useContext.direction;
41113
41182
  var TreeProps = Object(_utils__WEBPACK_IMPORTED_MODULE_20__["getCompProps"])('Tree', userDefaultProps, props); // 按钮属性需要合并一遍用户定义的默认属性
41114
41183
  var customPrefixcls = TreeProps.prefixCls,
41115
41184
  treeData = TreeProps.treeData,
@@ -41158,7 +41227,8 @@ var InternalTree = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.fo
41158
41227
  renderExtra = TreeProps.renderExtra,
41159
41228
  others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4___default()(TreeProps, _excluded);
41160
41229
  var treePrefixCls = getPrefixCls(prefixCls, 'tree', customPrefixcls); // 树样式前缀
41161
- var treeNodeClassName = classnames__WEBPACK_IMPORTED_MODULE_17___default()(className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_classNames, "".concat(treePrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_classNames, "".concat(treePrefixCls, "-show-line"), showLine), _classNames));
41230
+ var rtlCls = direction === 'rtl' ? "".concat(treePrefixCls, "-rtl") : null;
41231
+ var treeNodeClassName = classnames__WEBPACK_IMPORTED_MODULE_17___default()(className, rtlCls, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_classNames, "".concat(treePrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_3___default()(_classNames, "".concat(treePrefixCls, "-show-line"), showLine), _classNames));
41162
41232
  var treeRootClassName = "".concat(treePrefixCls, "-root");
41163
41233
  var estimatedItemSize = innerEstimatedItemSize; // 节点高度
41164
41234
 
@@ -41761,7 +41831,8 @@ var TreeNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.forwar
41761
41831
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_11__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__["default"]),
41762
41832
  getPrefixCls = _useContext.getPrefixCls,
41763
41833
  prefixCls = _useContext.prefixCls,
41764
- userDefaultProps = _useContext.compDefaultProps;
41834
+ userDefaultProps = _useContext.compDefaultProps,
41835
+ direction = _useContext.direction;
41765
41836
  var TreeNodeProps = Object(_utils__WEBPACK_IMPORTED_MODULE_14__["getCompProps"])('TreeNode', userDefaultProps, props); // 按钮属性需要合并一遍用户定义的默认属性
41766
41837
  var nodeKey = TreeNodeProps.nodeKey,
41767
41838
  customPrefixcls = TreeNodeProps.prefixCls,
@@ -41917,7 +41988,7 @@ var TreeNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.forwar
41917
41988
  className: classnames__WEBPACK_IMPORTED_MODULE_12___default()("".concat(treeNodePrefixCls, "-icon"), (_classNames3 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames3, "".concat(treeNodePrefixCls, "-animation-expand"), expandState), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames3, "".concat(treeNodePrefixCls, "-animation-collapse"), !expandState), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames3, "".concat(treeNodePrefixCls, "-icon-hover"), !expandOnClickNode), _classNames3)),
41918
41989
  onClick: expandOnClickNode ? onlyExpandOnClickIcon ? handleExpandIconClick : undefined : handleExpandIconClick
41919
41990
  }, renderIcon(switcherIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_16__["default"], {
41920
- type: "arrow-right-solid"
41991
+ type: "arrow-".concat(direction === 'rtl' ? 'left' : 'right', "-solid")
41921
41992
  })));
41922
41993
  } else {
41923
41994
  // 叶子结点 隐藏展开按钮
@@ -43533,7 +43604,8 @@ var InternalUpload = function InternalUpload(props, ref) {
43533
43604
  var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_22__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_24__["default"]),
43534
43605
  getPrefixCls = _useContext.getPrefixCls,
43535
43606
  pkgPrefixCls = _useContext.prefixCls,
43536
- userDefaultProps = _useContext.compDefaultProps;
43607
+ userDefaultProps = _useContext.compDefaultProps,
43608
+ direction = _useContext.direction;
43537
43609
  var inputRef = Object(react__WEBPACK_IMPORTED_MODULE_22__["useRef"])(null);
43538
43610
  var allProps = Object(_utils__WEBPACK_IMPORTED_MODULE_25__["getCompProps"])('Upload', userDefaultProps, props); // 属性需要合并一遍用户定义的默认属性
43539
43611
 
@@ -43773,6 +43845,7 @@ var InternalUpload = function InternalUpload(props, ref) {
43773
43845
  }
43774
43846
  };
43775
43847
  var prefixCls = getPrefixCls(pkgPrefixCls, 'upload', customPrefixcls);
43848
+ var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
43776
43849
  var inputFileProps = {
43777
43850
  accept: accept,
43778
43851
  onClick: onClick,
@@ -43845,7 +43918,7 @@ var InternalUpload = function InternalUpload(props, ref) {
43845
43918
  };
43846
43919
  });
43847
43920
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
43848
- className: classnames__WEBPACK_IMPORTED_MODULE_23___default()(prefixCls, {
43921
+ className: classnames__WEBPACK_IMPORTED_MODULE_23___default()(prefixCls, rtlCls, {
43849
43922
  disabled: disabled
43850
43923
  }, className),
43851
43924
  style: style