@kdcloudjs/kdesign 1.8.29 → 1.8.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/kdesign-complete.less +897 -83
- package/dist/kdesign.css +650 -7
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +188 -109
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +5 -5
- package/dist/kdesign.min.js.map +1 -1
- package/es/anchor/anchor.js +7 -5
- package/es/anchor/style/index.css +14 -0
- package/es/anchor/style/index.less +15 -0
- package/es/button/button.js +4 -2
- package/es/button/group.js +5 -3
- package/es/button/style/index.css +32 -0
- package/es/button/style/index.less +42 -1
- package/es/checkbox/checkbox.js +5 -3
- package/es/checkbox/group.js +4 -2
- package/es/checkbox/style/index.css +38 -1
- package/es/checkbox/style/index.less +56 -15
- package/es/city-picker/city-picker.js +32 -14
- package/es/city-picker/option.js +7 -2
- package/es/city-picker/style/index.css +54 -0
- package/es/city-picker/style/index.less +67 -0
- package/es/collapse/collapse.js +4 -2
- package/es/collapse/style/index.css +24 -0
- package/es/collapse/style/index.less +26 -0
- package/es/color-picker/color-picker.js +6 -4
- package/es/color-picker/style/index.css +129 -4
- package/es/color-picker/style/index.less +174 -29
- package/es/config-provider/ConfigContext.d.ts +4 -0
- package/es/config-provider/ConfigContext.js +2 -0
- package/es/config-provider/compDefaultProps.d.ts +0 -1
- package/es/config-provider/compDefaultProps.js +0 -5
- package/es/config-provider/defaultConfig.d.ts +1 -0
- package/es/config-provider/defaultConfig.js +2 -1
- package/es/dropdown/dropdown.js +4 -2
- package/es/dropdown/menu.js +4 -2
- package/es/dropdown/style/index.css +3 -0
- package/es/dropdown/style/index.less +4 -0
- package/es/image/preview.js +6 -4
- package/es/image/style/index.css +11 -0
- package/es/image/style/index.less +20 -4
- package/es/input/ClearableLabeledInput.d.ts +1 -0
- package/es/input/ClearableLabeledInput.js +6 -4
- package/es/input/TextArea.js +7 -4
- package/es/input/input.js +6 -3
- package/es/input/style/index.css +48 -0
- package/es/input/style/index.less +55 -0
- package/es/link/link.js +4 -2
- package/es/link/style/index.css +11 -0
- package/es/link/style/index.less +14 -0
- package/es/menu/menu.js +4 -2
- package/es/menu/menuItem.js +5 -3
- package/es/menu/style/index.css +10 -0
- package/es/menu/style/index.less +33 -22
- package/es/menu/subMenu.js +6 -4
- package/es/modal/modal.js +4 -2
- package/es/modal/style/index.css +7 -0
- package/es/modal/style/index.less +14 -0
- package/es/pagination/pagination.js +16 -13
- package/es/pagination/style/index.css +72 -0
- package/es/pagination/style/index.less +99 -0
- package/es/qr-code/qr-code.js +4 -2
- package/es/qr-code/style/index.css +3 -0
- package/es/qr-code/style/index.less +7 -3
- package/es/radio/group.js +4 -2
- package/es/radio/radio.js +4 -2
- package/es/radio/style/index.css +38 -0
- package/es/radio/style/index.less +46 -0
- package/es/select/option.js +4 -2
- package/es/select/select.js +8 -6
- package/es/select/style/index.css +61 -0
- package/es/select/style/index.less +87 -0
- package/es/steps/Steps.js +4 -2
- package/es/steps/style/index.css +35 -0
- package/es/steps/style/index.less +59 -5
- package/es/switch/style/index.css +9 -0
- package/es/switch/style/index.less +9 -2
- package/es/switch/switch.js +4 -2
- package/es/tag/style/index.css +7 -0
- package/es/tag/style/index.less +8 -0
- package/es/tag/tag.js +4 -2
- package/es/tree/style/index.css +19 -0
- package/es/tree/style/index.less +27 -0
- package/es/tree/tree.js +4 -2
- package/es/tree/treeNode.js +3 -2
- package/es/upload/style/index.css +24 -1
- package/es/upload/style/index.less +40 -2
- package/es/upload/upload.js +4 -2
- package/lib/anchor/anchor.js +7 -5
- package/lib/anchor/style/index.css +14 -0
- package/lib/anchor/style/index.less +15 -0
- package/lib/button/button.js +4 -2
- package/lib/button/group.js +5 -3
- package/lib/button/style/index.css +32 -0
- package/lib/button/style/index.less +42 -1
- package/lib/checkbox/checkbox.js +5 -3
- package/lib/checkbox/group.js +4 -2
- package/lib/checkbox/style/index.css +38 -1
- package/lib/checkbox/style/index.less +56 -15
- package/lib/city-picker/city-picker.js +32 -14
- package/lib/city-picker/option.js +7 -2
- package/lib/city-picker/style/index.css +54 -0
- package/lib/city-picker/style/index.less +67 -0
- package/lib/collapse/collapse.js +4 -2
- package/lib/collapse/style/index.css +24 -0
- package/lib/collapse/style/index.less +26 -0
- package/lib/color-picker/color-picker.js +6 -4
- package/lib/color-picker/style/index.css +129 -4
- package/lib/color-picker/style/index.less +174 -29
- package/lib/config-provider/ConfigContext.d.ts +4 -0
- package/lib/config-provider/ConfigContext.js +4 -1
- package/lib/config-provider/compDefaultProps.d.ts +0 -1
- package/lib/config-provider/compDefaultProps.js +0 -5
- package/lib/config-provider/defaultConfig.d.ts +1 -0
- package/lib/config-provider/defaultConfig.js +2 -1
- package/lib/dropdown/dropdown.js +4 -2
- package/lib/dropdown/menu.js +4 -2
- package/lib/dropdown/style/index.css +3 -0
- package/lib/dropdown/style/index.less +4 -0
- package/lib/image/preview.js +6 -4
- package/lib/image/style/index.css +11 -0
- package/lib/image/style/index.less +20 -4
- package/lib/input/ClearableLabeledInput.d.ts +1 -0
- package/lib/input/ClearableLabeledInput.js +6 -4
- package/lib/input/TextArea.js +7 -4
- package/lib/input/input.js +6 -3
- package/lib/input/style/index.css +48 -0
- package/lib/input/style/index.less +55 -0
- package/lib/link/link.js +4 -2
- package/lib/link/style/index.css +11 -0
- package/lib/link/style/index.less +14 -0
- package/lib/menu/menu.js +4 -2
- package/lib/menu/menuItem.js +5 -3
- package/lib/menu/style/index.css +10 -0
- package/lib/menu/style/index.less +33 -22
- package/lib/menu/subMenu.js +6 -4
- package/lib/modal/modal.js +4 -2
- package/lib/modal/style/index.css +7 -0
- package/lib/modal/style/index.less +14 -0
- package/lib/pagination/pagination.js +16 -13
- package/lib/pagination/style/index.css +72 -0
- package/lib/pagination/style/index.less +99 -0
- package/lib/qr-code/qr-code.js +4 -2
- package/lib/qr-code/style/index.css +3 -0
- package/lib/qr-code/style/index.less +7 -3
- package/lib/radio/group.js +4 -2
- package/lib/radio/radio.js +4 -2
- package/lib/radio/style/index.css +38 -0
- package/lib/radio/style/index.less +46 -0
- package/lib/select/option.js +4 -2
- package/lib/select/select.js +8 -6
- package/lib/select/style/index.css +61 -0
- package/lib/select/style/index.less +87 -0
- package/lib/steps/Steps.js +4 -2
- package/lib/steps/style/index.css +35 -0
- package/lib/steps/style/index.less +59 -5
- package/lib/switch/style/index.css +9 -0
- package/lib/switch/style/index.less +9 -2
- package/lib/switch/switch.js +4 -2
- package/lib/tag/style/index.css +7 -0
- package/lib/tag/style/index.less +8 -0
- package/lib/tag/tag.js +4 -2
- package/lib/tree/style/index.css +19 -0
- package/lib/tree/style/index.less +27 -0
- package/lib/tree/tree.js +4 -2
- package/lib/tree/treeNode.js +3 -2
- package/lib/upload/style/index.css +24 -1
- package/lib/upload/style/index.less +40 -2
- package/lib/upload/upload.js +4 -2
- package/package.json +1 -1
package/dist/kdesign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @kdcloudjs/kdesign v1.8.
|
|
3
|
+
* @kdcloudjs/kdesign v1.8.31
|
|
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
|
|
7826
|
-
var
|
|
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
|
|
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
|
|
10460
|
-
var
|
|
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,
|
|
@@ -11055,19 +11086,23 @@ function validateColor(color) {
|
|
|
11055
11086
|
/*!******************************************************!*\
|
|
11056
11087
|
!*** ./components/config-provider/ConfigContext.tsx ***!
|
|
11057
11088
|
\******************************************************/
|
|
11058
|
-
/*! exports provided: default */
|
|
11089
|
+
/*! exports provided: DirectionTypes, default */
|
|
11059
11090
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
11060
11091
|
|
|
11061
11092
|
"use strict";
|
|
11062
11093
|
__webpack_require__.r(__webpack_exports__);
|
|
11094
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DirectionTypes", function() { return DirectionTypes; });
|
|
11063
11095
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
|
11064
11096
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
11065
11097
|
/* harmony import */ var _defaultConfig__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./defaultConfig */ "./components/config-provider/defaultConfig.tsx");
|
|
11098
|
+
/* harmony import */ var _utils_type__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../_utils/type */ "./components/_utils/type.ts");
|
|
11066
11099
|
/**
|
|
11067
11100
|
* 提供外层注入属性的context
|
|
11068
11101
|
*/
|
|
11069
11102
|
|
|
11070
11103
|
|
|
11104
|
+
|
|
11105
|
+
var DirectionTypes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_2__["tuple"])('ltr', 'rtl');
|
|
11071
11106
|
var ConfigContext = /*#__PURE__*/Object(react__WEBPACK_IMPORTED_MODULE_0__["createContext"])(_defaultConfig__WEBPACK_IMPORTED_MODULE_1__["default"]);
|
|
11072
11107
|
/* harmony default export */ __webpack_exports__["default"] = (ConfigContext);
|
|
11073
11108
|
|
|
@@ -11454,11 +11489,9 @@ var compDefaultProps = {
|
|
|
11454
11489
|
disabled: false,
|
|
11455
11490
|
draggable: false,
|
|
11456
11491
|
virtual: true,
|
|
11457
|
-
switcherIcon: function
|
|
11458
|
-
|
|
11459
|
-
|
|
11460
|
-
});
|
|
11461
|
-
},
|
|
11492
|
+
// switcherIcon: function () {
|
|
11493
|
+
// return <Icon type="arrow-right-solid" />
|
|
11494
|
+
// },
|
|
11462
11495
|
estimatedItemSize: 32,
|
|
11463
11496
|
expandOnClickNode: true,
|
|
11464
11497
|
expandOnFilterNode: false
|
|
@@ -11706,7 +11739,8 @@ var defaultConfig = {
|
|
|
11706
11739
|
locale: {
|
|
11707
11740
|
getLangMsg: _locale__WEBPACK_IMPORTED_MODULE_1__["getLangMsg"],
|
|
11708
11741
|
getCompLangMsg: _locale__WEBPACK_IMPORTED_MODULE_1__["getCompLangMsg"]
|
|
11709
|
-
}
|
|
11742
|
+
},
|
|
11743
|
+
direction: 'ltr'
|
|
11710
11744
|
};
|
|
11711
11745
|
/* harmony default export */ __webpack_exports__["default"] = (defaultConfig);
|
|
11712
11746
|
|
|
@@ -17340,7 +17374,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
|
|
|
17340
17374
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_11__["useContext"](_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
17341
17375
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
17342
17376
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
17343
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
17377
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
17378
|
+
direction = _React$useContext.direction;
|
|
17344
17379
|
var allProps = Object(_utils__WEBPACK_IMPORTED_MODULE_14__["getCompProps"])('Dropdown', userDefaultProps, props);
|
|
17345
17380
|
var menu = allProps.menu,
|
|
17346
17381
|
disabled = allProps.disabled,
|
|
@@ -17451,7 +17486,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
|
|
|
17451
17486
|
popperStyle: innerAnimation ? popperStyle : _objectSpread({
|
|
17452
17487
|
animation: 'none'
|
|
17453
17488
|
}, popperStyle),
|
|
17454
|
-
onVisibleChange: handleVisibleChange
|
|
17489
|
+
onVisibleChange: handleVisibleChange,
|
|
17490
|
+
placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft'
|
|
17455
17491
|
});
|
|
17456
17492
|
return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_16__["default"])(child, menuElement, popperProps);
|
|
17457
17493
|
});
|
|
@@ -17515,7 +17551,8 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](functio
|
|
|
17515
17551
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__["useContext"](_config_provider__WEBPACK_IMPORTED_MODULE_4__["ConfigContext"]),
|
|
17516
17552
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
17517
17553
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
17518
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
17554
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
17555
|
+
direction = _React$useContext.direction;
|
|
17519
17556
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_5__["getCompProps"])('DropdownMenu', userDefaultProps, props),
|
|
17520
17557
|
customPrefixcls = _getCompProps.prefixCls,
|
|
17521
17558
|
children = _getCompProps.children,
|
|
@@ -17524,6 +17561,7 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](functio
|
|
|
17524
17561
|
className = _getCompProps.className,
|
|
17525
17562
|
restProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getCompProps, _excluded);
|
|
17526
17563
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'dropdown-menu', customPrefixcls);
|
|
17564
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
17527
17565
|
var cloneItem = function cloneItem(item, index) {
|
|
17528
17566
|
if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["isValidElement"](item)) {
|
|
17529
17567
|
return item;
|
|
@@ -17537,7 +17575,7 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](functio
|
|
|
17537
17575
|
});
|
|
17538
17576
|
};
|
|
17539
17577
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("ul", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
17540
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, className),
|
|
17578
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, rtlCls, className),
|
|
17541
17579
|
role: "menu"
|
|
17542
17580
|
}, restProps, {
|
|
17543
17581
|
ref: ref
|
|
@@ -22542,7 +22580,8 @@ var Preview = function Preview(props) {
|
|
|
22542
22580
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
22543
22581
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
22544
22582
|
userDefaultProps = _React$useContext.compDefaultProps,
|
|
22545
|
-
locale = _React$useContext.locale
|
|
22583
|
+
locale = _React$useContext.locale,
|
|
22584
|
+
direction = _React$useContext.direction;
|
|
22546
22585
|
|
|
22547
22586
|
// 属性需要合并一遍用户定义的默认属性
|
|
22548
22587
|
var allProps = Object(_utils__WEBPACK_IMPORTED_MODULE_15__["getCompProps"])('Image', userDefaultProps, props);
|
|
@@ -22563,6 +22602,7 @@ var Preview = function Preview(props) {
|
|
|
22563
22602
|
|
|
22564
22603
|
// className前缀
|
|
22565
22604
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'image', customPrefixcls);
|
|
22605
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
22566
22606
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_12__["useState"](visible),
|
|
22567
22607
|
_React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_React$useState, 2),
|
|
22568
22608
|
show = _React$useState2[0],
|
|
@@ -22635,7 +22675,7 @@ var Preview = function Preview(props) {
|
|
|
22635
22675
|
}
|
|
22636
22676
|
};
|
|
22637
22677
|
var peviewContainer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("div", {
|
|
22638
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_14___default()("".concat(prefixCls, "-preview"), props.className, {
|
|
22678
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_14___default()("".concat(prefixCls, "-preview"), rtlCls, props.className, {
|
|
22639
22679
|
show: show
|
|
22640
22680
|
}),
|
|
22641
22681
|
style: _objectSpread({}, props.style)
|
|
@@ -22653,7 +22693,7 @@ var Preview = function Preview(props) {
|
|
|
22653
22693
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("img", previewImgProps))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("div", {
|
|
22654
22694
|
className: "".concat(prefixCls, "-preview-action")
|
|
22655
22695
|
}, props.type !== 'upload' && length && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
|
22656
|
-
type:
|
|
22696
|
+
type: direction === 'rtl' ? 'arrow-right' : 'arrow-left',
|
|
22657
22697
|
className: classnames__WEBPACK_IMPORTED_MODULE_14___default()({
|
|
22658
22698
|
disabled: current <= 0
|
|
22659
22699
|
}),
|
|
@@ -22671,7 +22711,7 @@ var Preview = function Preview(props) {
|
|
|
22671
22711
|
}),
|
|
22672
22712
|
onClick: handleZoomIn
|
|
22673
22713
|
}), props.type !== 'upload' && operations, props.type !== 'upload' && length && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
|
22674
|
-
type:
|
|
22714
|
+
type: direction === 'rtl' ? 'arrow-left' : 'arrow-right',
|
|
22675
22715
|
className: classnames__WEBPACK_IMPORTED_MODULE_14___default()({
|
|
22676
22716
|
disabled: current >= length - 1
|
|
22677
22717
|
}),
|
|
@@ -23573,12 +23613,14 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
23573
23613
|
numberMark = props.numberMark,
|
|
23574
23614
|
inputCount = props.inputCount,
|
|
23575
23615
|
count = props.count,
|
|
23576
|
-
status = props.status
|
|
23616
|
+
status = props.status,
|
|
23617
|
+
direction = props.direction;
|
|
23577
23618
|
var fixRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null);
|
|
23578
23619
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false),
|
|
23579
23620
|
_useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
|
|
23580
23621
|
isMouseEnter = _useState2[0],
|
|
23581
23622
|
setIsMouseEnter = _useState2[1];
|
|
23623
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
23582
23624
|
var mouseEnterHandle = function mouseEnterHandle() {
|
|
23583
23625
|
setIsMouseEnter(true);
|
|
23584
23626
|
};
|
|
@@ -23632,7 +23674,7 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
23632
23674
|
className: "".concat(prefixCls, "-prefix"),
|
|
23633
23675
|
onMouseDown: mouseDownHandle
|
|
23634
23676
|
}, prefix) : null;
|
|
23635
|
-
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));
|
|
23677
|
+
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));
|
|
23636
23678
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
23637
23679
|
className: inputWrapperClasses,
|
|
23638
23680
|
ref: fixRef,
|
|
@@ -23656,7 +23698,7 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
23656
23698
|
var addonAfterNode = addonAfter ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
23657
23699
|
className: addonClassName
|
|
23658
23700
|
}, addonAfter) : null;
|
|
23659
|
-
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));
|
|
23701
|
+
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));
|
|
23660
23702
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
23661
23703
|
className: "".concat(prefixCls, "-group-wrapper")
|
|
23662
23704
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
@@ -23690,7 +23732,7 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
23690
23732
|
delete wrapperStyle[key];
|
|
23691
23733
|
}
|
|
23692
23734
|
}
|
|
23693
|
-
var textAreaWrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(prefixCls, "-wrapper-textarea"), true));
|
|
23735
|
+
var textAreaWrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, rtlCls, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(prefixCls, "-wrapper-textarea"), true));
|
|
23694
23736
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
23695
23737
|
className: textAreaWrapperClasses,
|
|
23696
23738
|
style: wrapperStyle,
|
|
@@ -23765,7 +23807,8 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23765
23807
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_7__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
23766
23808
|
getPrefixCls = _useContext.getPrefixCls,
|
|
23767
23809
|
prefixCls = _useContext.prefixCls,
|
|
23768
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
23810
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
23811
|
+
direction = _useContext.direction;
|
|
23769
23812
|
var textAreaProps = Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getCompProps"])('TextArea', userDefaultProps, props);
|
|
23770
23813
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])({}),
|
|
23771
23814
|
_useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
|
@@ -23796,6 +23839,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23796
23839
|
addonBefore = textAreaProps.addonBefore,
|
|
23797
23840
|
others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(textAreaProps, _excluded);
|
|
23798
23841
|
var textAreaPrefixCls = getPrefixCls(prefixCls, 'input', customPrefixcls);
|
|
23842
|
+
var rtlCls = direction === 'rtl' ? "".concat(textAreaPrefixCls, "-rtl") : null;
|
|
23799
23843
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_15__["default"])(_input__WEBPACK_IMPORTED_MODULE_12__["BorderTypes"].indexOf(borderType) === -1, 'textarea', "cannot found textarea borderType '".concat(borderType, "'"));
|
|
23800
23844
|
var _useMergedState = Object(_utils_hooks__WEBPACK_IMPORTED_MODULE_14__["useMergedState"])('', {
|
|
23801
23845
|
value: propsValue,
|
|
@@ -23918,7 +23962,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23918
23962
|
ref: textareaRef,
|
|
23919
23963
|
disabled: disabled,
|
|
23920
23964
|
style: _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
|
|
23921
|
-
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)),
|
|
23965
|
+
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)),
|
|
23922
23966
|
onChange: handleChange,
|
|
23923
23967
|
onFocus: !disabled ? handleFocus : undefined,
|
|
23924
23968
|
onBlur: !disabled ? handleBlur : undefined,
|
|
@@ -23928,7 +23972,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23928
23972
|
}, others));
|
|
23929
23973
|
return hadCount ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("span", {
|
|
23930
23974
|
style: wrapperStyle,
|
|
23931
|
-
className: "".concat(prefixCls, "-countWrapper ").concat(className && !allowClear ? className : '')
|
|
23975
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(rtlCls, "".concat(prefixCls, "-countWrapper ").concat(className && !allowClear ? className : ''))
|
|
23932
23976
|
}, textarea, renderNumberMark()) : textarea;
|
|
23933
23977
|
};
|
|
23934
23978
|
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, {
|
|
@@ -23942,7 +23986,8 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23942
23986
|
inputType: "text",
|
|
23943
23987
|
prefixCls: textAreaPrefixCls,
|
|
23944
23988
|
element: renderTextArea(textAreaPrefixCls),
|
|
23945
|
-
numberMark: renderNumberMark()
|
|
23989
|
+
numberMark: renderNumberMark(),
|
|
23990
|
+
direction: direction
|
|
23946
23991
|
}));
|
|
23947
23992
|
};
|
|
23948
23993
|
var TextArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.forwardRef(InternalTextarea);
|
|
@@ -24144,7 +24189,8 @@ var InternalInput = function InternalInput(props, ref) {
|
|
|
24144
24189
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_5__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
24145
24190
|
getPrefixCls = _useContext.getPrefixCls,
|
|
24146
24191
|
prefixCls = _useContext.prefixCls,
|
|
24147
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
24192
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
24193
|
+
direction = _useContext.direction;
|
|
24148
24194
|
var inputProps = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["getCompProps"])('Input', userDefaultProps, props);
|
|
24149
24195
|
var type = inputProps.type,
|
|
24150
24196
|
size = inputProps.size,
|
|
@@ -24187,7 +24233,8 @@ var InternalInput = function InternalInput(props, ref) {
|
|
|
24187
24233
|
setShowNumberMark = _useState4[1];
|
|
24188
24234
|
var inputRef = Object(react__WEBPACK_IMPORTED_MODULE_5__["useRef"])();
|
|
24189
24235
|
var inputPrefixCls = getPrefixCls(prefixCls, 'input', customPrefixcls);
|
|
24190
|
-
var
|
|
24236
|
+
var rtlCls = direction === 'rtl' ? "".concat(inputPrefixCls, "-rtl") : null;
|
|
24237
|
+
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));
|
|
24191
24238
|
var handleFocus = function handleFocus(event) {
|
|
24192
24239
|
setFocused(true);
|
|
24193
24240
|
onFocus && onFocus(event);
|
|
@@ -24288,7 +24335,8 @@ var InternalInput = function InternalInput(props, ref) {
|
|
|
24288
24335
|
element: renderInput(),
|
|
24289
24336
|
focused: focused,
|
|
24290
24337
|
count: count,
|
|
24291
|
-
inputCount: renderCount()
|
|
24338
|
+
inputCount: renderCount(),
|
|
24339
|
+
direction: direction
|
|
24292
24340
|
}));
|
|
24293
24341
|
};
|
|
24294
24342
|
var Input = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.forwardRef(InternalInput);
|
|
@@ -24866,7 +24914,8 @@ var InternalLink = function InternalLink(props, ref) {
|
|
|
24866
24914
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
24867
24915
|
getPrefixCls = _useContext.getPrefixCls,
|
|
24868
24916
|
prefixCls = _useContext.prefixCls,
|
|
24869
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
24917
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
24918
|
+
direction = _useContext.direction;
|
|
24870
24919
|
var linkProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["getCompProps"])('Link', userDefaultProps, props);
|
|
24871
24920
|
var size = linkProps.size,
|
|
24872
24921
|
style = linkProps.style,
|
|
@@ -24885,8 +24934,8 @@ var InternalLink = function InternalLink(props, ref) {
|
|
|
24885
24934
|
// ref
|
|
24886
24935
|
var linkRef = ref || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createRef();
|
|
24887
24936
|
var linkPrefixCls = getPrefixCls(prefixCls, 'link', customPrefixcls); // 按钮样式前缀
|
|
24888
|
-
|
|
24889
|
-
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));
|
|
24937
|
+
var rtlCls = direction === 'rtl' ? "".concat(linkPrefixCls, "-rtl") : null; // 文字方向
|
|
24938
|
+
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));
|
|
24890
24939
|
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));
|
|
24891
24940
|
var handleClick = function handleClick(e) {
|
|
24892
24941
|
// 禁用状态 不跳转
|
|
@@ -25547,7 +25596,8 @@ var Menu = function Menu(props) {
|
|
|
25547
25596
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_18__["useContext"])(_config_provider__WEBPACK_IMPORTED_MODULE_20__["ConfigContext"]),
|
|
25548
25597
|
getPrefixCls = _useContext.getPrefixCls,
|
|
25549
25598
|
pkgPrefixCls = _useContext.prefixCls,
|
|
25550
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
25599
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
25600
|
+
direction = _useContext.direction;
|
|
25551
25601
|
var userSelectedKey = props.selectedKey,
|
|
25552
25602
|
userOpenKeys = props.openKeys;
|
|
25553
25603
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_21__["getCompProps"])('Menu', userDefaultProps, props),
|
|
@@ -25566,6 +25616,7 @@ var Menu = function Menu(props) {
|
|
|
25566
25616
|
defaultOpenKeys = _getCompProps.defaultOpenKeys,
|
|
25567
25617
|
restProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4___default()(_getCompProps, _excluded);
|
|
25568
25618
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'menu', customPrefixcls);
|
|
25619
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
25569
25620
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_23__["default"])(['inline', 'vertical', undefined].indexOf(mode) === -1, 'menu', "cannot found menu mode '".concat(mode, "'"));
|
|
25570
25621
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_23__["default"])(mode !== 'inline' && accordion !== undefined, 'menu', "'accordion' is valid only in mode='inline'");
|
|
25571
25622
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_18__["useState"])(''),
|
|
@@ -25685,7 +25736,7 @@ var Menu = function Menu(props) {
|
|
|
25685
25736
|
onMouseEnter: handleMouseEnterMenu
|
|
25686
25737
|
};
|
|
25687
25738
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
25688
|
-
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)),
|
|
25739
|
+
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)),
|
|
25689
25740
|
role: "menu",
|
|
25690
25741
|
style: style
|
|
25691
25742
|
}, mouseEvent), children && renderMenu(), additionalTools);
|
|
@@ -25743,7 +25794,8 @@ var InternalMenuItem = function InternalMenuItem(props, ref) {
|
|
|
25743
25794
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_5__["useContext"](_config_provider__WEBPACK_IMPORTED_MODULE_6__["ConfigContext"]),
|
|
25744
25795
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
25745
25796
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
25746
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
25797
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
25798
|
+
direction = _React$useContext.direction;
|
|
25747
25799
|
|
|
25748
25800
|
// 属性需要合并一遍用户定义的默认属性
|
|
25749
25801
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["getCompProps"])('MenuItem', userDefaultProps, props),
|
|
@@ -25825,9 +25877,10 @@ var InternalMenuItem = function InternalMenuItem(props, ref) {
|
|
|
25825
25877
|
onMouseLeave: handleOnMouseLeave,
|
|
25826
25878
|
onMouseEnter: handleOnMouseEnter
|
|
25827
25879
|
};
|
|
25880
|
+
var isRtl = direction === 'rtl';
|
|
25828
25881
|
var titleStyle = {
|
|
25829
|
-
paddingLeft: "".concat(getPaddingLeft(), "px"),
|
|
25830
|
-
paddingRight: mode !== 'inline' && level > 1 ? "".concat(_util__WEBPACK_IMPORTED_MODULE_9__["DEFAUTL_PADDING"], "px") : 0
|
|
25882
|
+
paddingLeft: isRtl ? mode !== 'inline' && level > 1 ? "".concat(_util__WEBPACK_IMPORTED_MODULE_9__["DEFAUTL_PADDING"], "px") : 0 : "".concat(getPaddingLeft(), "px"),
|
|
25883
|
+
paddingRight: isRtl ? "".concat(getPaddingLeft(), "px") : mode !== 'inline' && level > 1 ? "".concat(_util__WEBPACK_IMPORTED_MODULE_9__["DEFAUTL_PADDING"], "px") : 0
|
|
25831
25884
|
};
|
|
25832
25885
|
var renderTitle = function renderTitle() {
|
|
25833
25886
|
if (!icon && collapsed && level === 1 && typeof children === 'string') {
|
|
@@ -25951,7 +26004,8 @@ var SubMenu = function SubMenu(props) {
|
|
|
25951
26004
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_8___default.a.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_9__["ConfigContext"]),
|
|
25952
26005
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
25953
26006
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
25954
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
26007
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
26008
|
+
direction = _React$useContext.direction;
|
|
25955
26009
|
|
|
25956
26010
|
// 属性需要合并一遍用户定义的默认属性
|
|
25957
26011
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getCompProps"])('MenuSubMenu', userDefaultProps, props),
|
|
@@ -26158,9 +26212,10 @@ var SubMenu = function SubMenu(props) {
|
|
|
26158
26212
|
onMouseEnter: handleOnMouseEnter,
|
|
26159
26213
|
onClick: handleOnClickSubMenu
|
|
26160
26214
|
};
|
|
26215
|
+
var isRtl = direction === 'rtl';
|
|
26161
26216
|
var titleStyle = {
|
|
26162
|
-
paddingRight: "".concat(curPaddingRight, "px"),
|
|
26163
|
-
paddingLeft: "".concat(curPaddingLeft, "px")
|
|
26217
|
+
paddingRight: isRtl ? "".concat(curPaddingLeft, "px") : "".concat(curPaddingRight, "px"),
|
|
26218
|
+
paddingLeft: isRtl ? "".concat(curPaddingRight, "px") : "".concat(curPaddingLeft, "px")
|
|
26164
26219
|
};
|
|
26165
26220
|
|
|
26166
26221
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -26211,7 +26266,7 @@ var SubMenu = function SubMenu(props) {
|
|
|
26211
26266
|
});
|
|
26212
26267
|
}))), {
|
|
26213
26268
|
arrow: false,
|
|
26214
|
-
placement: 'rightTop',
|
|
26269
|
+
placement: direction === 'rtl' ? 'leftTop' : 'rightTop',
|
|
26215
26270
|
gap: 0,
|
|
26216
26271
|
visible: isVertical && !disabled ? visible : false,
|
|
26217
26272
|
disabled: isVertical ? undefined : true,
|
|
@@ -26829,7 +26884,8 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
26829
26884
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_6__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
26830
26885
|
getPrefixCls = _useContext.getPrefixCls,
|
|
26831
26886
|
prefixCls = _useContext.prefixCls,
|
|
26832
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
26887
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
26888
|
+
direction = _useContext.direction;
|
|
26833
26889
|
var modalProps = Object(_utils__WEBPACK_IMPORTED_MODULE_13__["getCompProps"])('Modal', userDefaultProps, props); // 属性需要合并一遍用户定义的默认属性
|
|
26834
26890
|
var body = modalProps.body,
|
|
26835
26891
|
bodyClassName = modalProps.bodyClassName,
|
|
@@ -26884,6 +26940,7 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
26884
26940
|
var wrapperRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
26885
26941
|
var containerRef = ref || innerRef;
|
|
26886
26942
|
var modalPrefixCls = getPrefixCls(prefixCls, 'modal', customPrefixcls);
|
|
26943
|
+
var rtlCls = direction === 'rtl' ? "".concat(modalPrefixCls, "-rtl") : null;
|
|
26887
26944
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_14__["default"])(ModalTypes.indexOf(type) === -1, 'modal', "cannot found modal type '".concat(type, "'"));
|
|
26888
26945
|
var modalContainer = typeof getContainer === 'function' ? getContainer() : getContainer;
|
|
26889
26946
|
if (modalContainer !== false && !(modalContainer instanceof HTMLElement)) {
|
|
@@ -27153,7 +27210,7 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
27153
27210
|
}
|
|
27154
27211
|
};
|
|
27155
27212
|
var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
|
|
27156
|
-
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));
|
|
27213
|
+
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));
|
|
27157
27214
|
var headerClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()("".concat(modalPrefixCls, "-header"), titleClassName);
|
|
27158
27215
|
var container = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
27159
27216
|
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)),
|
|
@@ -28059,7 +28116,8 @@ var Pagination = function Pagination(props) {
|
|
|
28059
28116
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
28060
28117
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
28061
28118
|
userDefaultProps = _React$useContext.compDefaultProps,
|
|
28062
|
-
locale = _React$useContext.locale
|
|
28119
|
+
locale = _React$useContext.locale,
|
|
28120
|
+
direction = _React$useContext.direction;
|
|
28063
28121
|
var paginationLangMsg = locale.getCompLangMsg({
|
|
28064
28122
|
componentName: 'Pagination'
|
|
28065
28123
|
});
|
|
@@ -28088,7 +28146,7 @@ var Pagination = function Pagination(props) {
|
|
|
28088
28146
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_17__["default"])(PageTypes.indexOf(pageType) === -1, 'Pagination', "cannot found pageType '".concat(pageType, "'"));
|
|
28089
28147
|
// className前缀
|
|
28090
28148
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'pagination', customPrefixcls);
|
|
28091
|
-
|
|
28149
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
28092
28150
|
// 每页显示的记录条数
|
|
28093
28151
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_10__["useState"](pageSize || defaultPageSize),
|
|
28094
28152
|
_React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_React$useState, 2),
|
|
@@ -28131,25 +28189,25 @@ var Pagination = function Pagination(props) {
|
|
|
28131
28189
|
// icons
|
|
28132
28190
|
var innerIcon = _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_2___default()({
|
|
28133
28191
|
first: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
28134
|
-
type: "first
|
|
28192
|
+
type: "".concat(direction === 'rtl' ? 'last' : 'first')
|
|
28135
28193
|
}),
|
|
28136
28194
|
last: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
28137
|
-
type: "last
|
|
28195
|
+
type: "".concat(direction === 'rtl' ? 'first' : 'last')
|
|
28138
28196
|
}),
|
|
28139
28197
|
prev: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
28140
|
-
type: "arrow-left
|
|
28198
|
+
type: "arrow-".concat(direction === 'rtl' ? 'right' : 'left')
|
|
28141
28199
|
}),
|
|
28142
28200
|
next: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
28143
|
-
type: "arrow-right
|
|
28201
|
+
type: "arrow-".concat(direction === 'rtl' ? 'left' : 'right')
|
|
28144
28202
|
}),
|
|
28145
28203
|
down: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
28146
28204
|
type: "arrow-down"
|
|
28147
28205
|
}),
|
|
28148
28206
|
jumpPrev: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
28149
|
-
type: "double-arrow-left
|
|
28207
|
+
type: "double-arrow-".concat(direction === 'rtl' ? 'right' : 'left')
|
|
28150
28208
|
}),
|
|
28151
28209
|
jumpNext: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_15__["default"], {
|
|
28152
|
-
type: "double-arrow-right
|
|
28210
|
+
type: "double-arrow-".concat(direction === 'rtl' ? 'left' : 'right')
|
|
28153
28211
|
})
|
|
28154
28212
|
}, icons || {});
|
|
28155
28213
|
|
|
@@ -28272,7 +28330,7 @@ var Pagination = function Pagination(props) {
|
|
|
28272
28330
|
className: "".concat(prefixCls, "-total")
|
|
28273
28331
|
}, mapTotalText[showTotal]);
|
|
28274
28332
|
var normalPagination = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("div", {
|
|
28275
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(prefixCls, className),
|
|
28333
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(prefixCls, rtlCls, className),
|
|
28276
28334
|
style: style
|
|
28277
28335
|
}, Total, showJumper && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("span", {
|
|
28278
28336
|
className: "".concat(prefixCls, "-current")
|
|
@@ -28307,7 +28365,7 @@ var Pagination = function Pagination(props) {
|
|
|
28307
28365
|
selectedKey: size,
|
|
28308
28366
|
menu: sizeOptions,
|
|
28309
28367
|
trigger: "click",
|
|
28310
|
-
placement:
|
|
28368
|
+
placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft',
|
|
28311
28369
|
disabled: disabled,
|
|
28312
28370
|
prefix: "".concat(prefixCls, "-dropdown"),
|
|
28313
28371
|
popperStyle: {
|
|
@@ -28325,7 +28383,7 @@ var Pagination = function Pagination(props) {
|
|
|
28325
28383
|
size: size
|
|
28326
28384
|
})), innerIcon.down))));
|
|
28327
28385
|
var simplePagination = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("div", {
|
|
28328
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(prefixCls, 'simple', className),
|
|
28386
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(prefixCls, rtlCls, 'simple', className),
|
|
28329
28387
|
style: style
|
|
28330
28388
|
}, Total, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("ul", {
|
|
28331
28389
|
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()("".concat(prefixCls, "-action"), {
|
|
@@ -28355,7 +28413,7 @@ var Pagination = function Pagination(props) {
|
|
|
28355
28413
|
var lessPagination = null;
|
|
28356
28414
|
if (pageType === 'less') {
|
|
28357
28415
|
lessPagination = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("div", {
|
|
28358
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(prefixCls, 'less', {
|
|
28416
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(prefixCls, rtlCls, 'less', {
|
|
28359
28417
|
bordered: bordered,
|
|
28360
28418
|
disabled: disabled
|
|
28361
28419
|
}, className),
|
|
@@ -28393,7 +28451,7 @@ var Pagination = function Pagination(props) {
|
|
|
28393
28451
|
page >= 5 && nicetyPages.unshift(1, '<<');
|
|
28394
28452
|
}
|
|
28395
28453
|
var nicetyPagination = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("div", {
|
|
28396
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(prefixCls, 'nicety', {
|
|
28454
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_11___default()(prefixCls, rtlCls, 'nicety', {
|
|
28397
28455
|
bordered: bordered,
|
|
28398
28456
|
disabled: disabled
|
|
28399
28457
|
}, className),
|
|
@@ -28450,7 +28508,8 @@ var Pagination = function Pagination(props) {
|
|
|
28450
28508
|
onItemClick: handleChangeSize,
|
|
28451
28509
|
getPopupContainer: function getPopupContainer(triggerNode) {
|
|
28452
28510
|
return triggerNode === null || triggerNode === void 0 ? void 0 : triggerNode.parentElement;
|
|
28453
|
-
}
|
|
28511
|
+
},
|
|
28512
|
+
placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft'
|
|
28454
28513
|
}, dropdownProps, {
|
|
28455
28514
|
onVisibleChange: dropdownVisibleChange
|
|
28456
28515
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_10__["createElement"]("button", {
|
|
@@ -29992,7 +30051,8 @@ var QRCode = function QRCode(props) {
|
|
|
29992
30051
|
getPrefixCls = _useContext.getPrefixCls,
|
|
29993
30052
|
prefixCls = _useContext.prefixCls,
|
|
29994
30053
|
userDefaultProps = _useContext.compDefaultProps,
|
|
29995
|
-
getCompLangMsg = _useContext.locale.getCompLangMsg
|
|
30054
|
+
getCompLangMsg = _useContext.locale.getCompLangMsg,
|
|
30055
|
+
direction = _useContext.direction;
|
|
29996
30056
|
var qrCodeProps = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getCompProps"])('QRCode', userDefaultProps, props);
|
|
29997
30057
|
var value = qrCodeProps.value,
|
|
29998
30058
|
size = qrCodeProps.size,
|
|
@@ -30011,7 +30071,8 @@ var QRCode = function QRCode(props) {
|
|
|
30011
30071
|
var className = qrCodeProps.className,
|
|
30012
30072
|
customPrefixcls = qrCodeProps.prefixCls;
|
|
30013
30073
|
var qrCodePrefixCls = getPrefixCls(prefixCls, 'qrcode', customPrefixcls);
|
|
30014
|
-
var
|
|
30074
|
+
var rtlCls = direction === 'rtl' ? "".concat(qrCodePrefixCls, "-rtl") : null;
|
|
30075
|
+
var qrCodeClass = classnames__WEBPACK_IMPORTED_MODULE_9___default()(qrCodePrefixCls, rtlCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_7___default()({}, "".concat(qrCodePrefixCls, "-borderless"), !bordered));
|
|
30015
30076
|
var qrCodeLangMsg = getCompLangMsg({
|
|
30016
30077
|
componentName: 'QRCode'
|
|
30017
30078
|
});
|
|
@@ -30146,7 +30207,8 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
|
|
|
30146
30207
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_4__["useContext"](_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
30147
30208
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
30148
30209
|
prefixCls = _React$useContext.prefixCls,
|
|
30149
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
30210
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
30211
|
+
direction = _React$useContext.direction;
|
|
30150
30212
|
var initValue = typeof props.value === 'undefined' ? props.defaultValue : props.value;
|
|
30151
30213
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__["useState"](initValue),
|
|
30152
30214
|
_React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_React$useState, 2),
|
|
@@ -30180,6 +30242,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
|
|
|
30180
30242
|
optionType = _getCompProps.optionType,
|
|
30181
30243
|
customPrefixcls = _getCompProps.prefixCls; // 属性需要合并一遍用户定义的默认属性
|
|
30182
30244
|
var groupPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio-group", customPrefixcls); // 单选组样式前缀
|
|
30245
|
+
var rtlCls = direction === 'rtl' ? "".concat(groupPrefixCls, "-rtl") : null;
|
|
30183
30246
|
var radioPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio", customPrefixcls); // 单选样式前缀
|
|
30184
30247
|
var childrenToRender = children;
|
|
30185
30248
|
// 如果存在 options, 优先使用
|
|
@@ -30208,7 +30271,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
|
|
|
30208
30271
|
});
|
|
30209
30272
|
}
|
|
30210
30273
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
|
|
30211
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(groupPrefixCls, className),
|
|
30274
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(groupPrefixCls, rtlCls, className),
|
|
30212
30275
|
style: style,
|
|
30213
30276
|
id: id,
|
|
30214
30277
|
ref: ref
|
|
@@ -30398,7 +30461,8 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
30398
30461
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_5___default.a.useContext(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
30399
30462
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
30400
30463
|
prefixCls = _React$useContext.prefixCls,
|
|
30401
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
30464
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
30465
|
+
direction = _React$useContext.direction;
|
|
30402
30466
|
var innerRef = react__WEBPACK_IMPORTED_MODULE_5___default.a.useRef();
|
|
30403
30467
|
var mergedRef = ref || innerRef;
|
|
30404
30468
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getCompProps"])('Radio', userDefaultProps, props),
|
|
@@ -30421,6 +30485,7 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
30421
30485
|
return "radio".concat(radioType === 'square' ? "-".concat(radioType) : '');
|
|
30422
30486
|
};
|
|
30423
30487
|
var radioPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, getPrefix(radioType), customPrefixcls); // 样式前缀
|
|
30488
|
+
var rtlCls = direction === 'rtl' ? "".concat(radioPrefixCls, "-rtl") : null;
|
|
30424
30489
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_5___default.a.useState(initValue),
|
|
30425
30490
|
_React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_React$useState, 2),
|
|
30426
30491
|
isChecked = _React$useState2[0],
|
|
@@ -30441,7 +30506,7 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
30441
30506
|
context.onChange(e, value);
|
|
30442
30507
|
}
|
|
30443
30508
|
};
|
|
30444
|
-
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名称
|
|
30509
|
+
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名称
|
|
30445
30510
|
|
|
30446
30511
|
Object(react__WEBPACK_IMPORTED_MODULE_5__["useEffect"])(function () {
|
|
30447
30512
|
var _radioRef$current;
|
|
@@ -32132,8 +32197,10 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
32132
32197
|
var optionProps = _objectSpread({}, props);
|
|
32133
32198
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_12__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
32134
32199
|
getPrefixCls = _useContext.getPrefixCls,
|
|
32135
|
-
prefixCls = _useContext.prefixCls
|
|
32200
|
+
prefixCls = _useContext.prefixCls,
|
|
32201
|
+
direction = _useContext.direction;
|
|
32136
32202
|
var selectOptionPrefixCls = getPrefixCls(prefixCls, 'select-item');
|
|
32203
|
+
var rtlCls = direction === 'rtl' ? "".concat(selectOptionPrefixCls, "-rtl") : null;
|
|
32137
32204
|
Object(react__WEBPACK_IMPORTED_MODULE_12__["useEffect"])(function () {
|
|
32138
32205
|
if (isMultiple) {
|
|
32139
32206
|
setSelected((values === null || values === void 0 ? void 0 : values.indexOf(value)) > -1);
|
|
@@ -32141,7 +32208,7 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
32141
32208
|
setSelected(value !== undefined ? value === values : false);
|
|
32142
32209
|
}
|
|
32143
32210
|
});
|
|
32144
|
-
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));
|
|
32211
|
+
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));
|
|
32145
32212
|
var contentCls = classnames__WEBPACK_IMPORTED_MODULE_13___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(selectOptionPrefixCls, "-option-content"), true));
|
|
32146
32213
|
var handleClick = function handleClick(e) {
|
|
32147
32214
|
e.preventDefault();
|
|
@@ -32319,7 +32386,8 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
32319
32386
|
getPrefixCls = _useContext.getPrefixCls,
|
|
32320
32387
|
prefixCls = _useContext.prefixCls,
|
|
32321
32388
|
userDefaultProps = _useContext.compDefaultProps,
|
|
32322
|
-
locale = _useContext.locale
|
|
32389
|
+
locale = _useContext.locale,
|
|
32390
|
+
direction = _useContext.direction;
|
|
32323
32391
|
var selectProps = Object(_utils__WEBPACK_IMPORTED_MODULE_33__["getCompProps"])('Select', userDefaultProps, props);
|
|
32324
32392
|
var selectLangMsg = locale.getCompLangMsg({
|
|
32325
32393
|
componentName: 'Select'
|
|
@@ -32411,8 +32479,9 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
32411
32479
|
return lodash_isBoolean__WEBPACK_IMPORTED_MODULE_30___default()(showSearch) ? showSearch : isMultiple;
|
|
32412
32480
|
}, [isMultiple, showSearch]);
|
|
32413
32481
|
var selectPrefixCls = getPrefixCls(prefixCls, 'select', customPrefixcls);
|
|
32482
|
+
var rtlCls = direction === 'rtl' ? "".concat(selectPrefixCls, "-rtl") : null;
|
|
32414
32483
|
// 选择器样式
|
|
32415
|
-
var selectCls = classnames__WEBPACK_IMPORTED_MODULE_31___default()(selectPrefixCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()({}, "".concat(selectPrefixCls, "-visible"), optionShow));
|
|
32484
|
+
var selectCls = classnames__WEBPACK_IMPORTED_MODULE_31___default()(selectPrefixCls, rtlCls, className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()({}, "".concat(selectPrefixCls, "-visible"), optionShow));
|
|
32416
32485
|
var selectionCls = classnames__WEBPACK_IMPORTED_MODULE_31___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()({}, "".concat(selectPrefixCls, "-selector"), true));
|
|
32417
32486
|
|
|
32418
32487
|
// 下拉子项列表样式
|
|
@@ -33024,7 +33093,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
33024
33093
|
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));
|
|
33025
33094
|
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));
|
|
33026
33095
|
var TagStyle = {
|
|
33027
|
-
margin: '2px 8px 2px 0',
|
|
33096
|
+
margin: direction === 'rtl' ? '2px 0 2px 8px' : '2px 8px 2px 0',
|
|
33028
33097
|
maxWidth: '100%'
|
|
33029
33098
|
};
|
|
33030
33099
|
var totalText = locale.getLangMsg('Select', 'total', {
|
|
@@ -33247,7 +33316,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
33247
33316
|
}
|
|
33248
33317
|
};
|
|
33249
33318
|
var popperProps = _objectSpread(_objectSpread({}, selectProps), {}, {
|
|
33250
|
-
prefixCls: "".concat(selectPrefixCls, "-dropdown-panel").concat(isMultiple ? " ".concat(selectPrefixCls, "-multiple-dropdown-panel") : ''),
|
|
33319
|
+
prefixCls: "".concat(selectPrefixCls, "-dropdown-panel").concat(isMultiple ? " ".concat(selectPrefixCls, "-multiple-dropdown-panel") : '', " ").concat(rtlCls),
|
|
33251
33320
|
placement: 'bottomLeft',
|
|
33252
33321
|
popperStyle: catchStyle(),
|
|
33253
33322
|
defaultVisible: optionShow,
|
|
@@ -36612,7 +36681,8 @@ var Steps = function Steps(props) {
|
|
|
36612
36681
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_12__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
36613
36682
|
getPrefixCls = _useContext.getPrefixCls,
|
|
36614
36683
|
prefixCls = _useContext.prefixCls,
|
|
36615
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
36684
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
36685
|
+
rtlDirection = _useContext.direction;
|
|
36616
36686
|
var stepsProps = Object(_utils__WEBPACK_IMPORTED_MODULE_15__["getCompProps"])('Steps', userDefaultProps, props);
|
|
36617
36687
|
var direction = stepsProps.direction,
|
|
36618
36688
|
initial = stepsProps.initial,
|
|
@@ -36634,8 +36704,8 @@ var Steps = function Steps(props) {
|
|
|
36634
36704
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_16__["default"])(_interface__WEBPACK_IMPORTED_MODULE_19__["Statuses"].indexOf(status) === -1, 'steps', "cannot found steps status '".concat(status, "'"));
|
|
36635
36705
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_16__["default"])(_interface__WEBPACK_IMPORTED_MODULE_19__["LabelPlacements"].indexOf(labelPlacement) === -1, 'steps', "cannot found steps labelPlacement '".concat(labelPlacement, "'"));
|
|
36636
36706
|
var stepsPrefixCls = getPrefixCls(prefixCls, 'steps', customPrefixcls); // 按钮样式前缀
|
|
36637
|
-
|
|
36638
|
-
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));
|
|
36707
|
+
var rtlCls = rtlDirection === 'rtl' ? "".concat(stepsPrefixCls, "-rtl") : null;
|
|
36708
|
+
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));
|
|
36639
36709
|
var onStepClick = function onStepClick(next) {
|
|
36640
36710
|
if (canClickCurrentStep || onChange && current !== next) {
|
|
36641
36711
|
onChange(next);
|
|
@@ -36877,7 +36947,8 @@ var Switch = function Switch(props) {
|
|
|
36877
36947
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_5__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
36878
36948
|
getPrefixCls = _useContext.getPrefixCls,
|
|
36879
36949
|
prefixCls = _useContext.prefixCls,
|
|
36880
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
36950
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
36951
|
+
direction = _useContext.direction;
|
|
36881
36952
|
var switchProps = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getCompProps"])('Switch', userDefaultProps, props);
|
|
36882
36953
|
var size = switchProps.size,
|
|
36883
36954
|
className = switchProps.className,
|
|
@@ -36899,6 +36970,7 @@ var Switch = function Switch(props) {
|
|
|
36899
36970
|
newChecked = _useMergedState2[0],
|
|
36900
36971
|
setChecked = _useMergedState2[1];
|
|
36901
36972
|
var switchPrefixCls = getPrefixCls(prefixCls, 'switch', customPrefixcls);
|
|
36973
|
+
var rtlCls = direction === 'rtl' ? "".concat(switchPrefixCls, "-rtl") : null;
|
|
36902
36974
|
var handleClick = function handleClick(e) {
|
|
36903
36975
|
var newV = triggerChange(!newChecked, e);
|
|
36904
36976
|
onClick && onClick(newV, e);
|
|
@@ -36914,7 +36986,7 @@ var Switch = function Switch(props) {
|
|
|
36914
36986
|
return afterChangedChecked;
|
|
36915
36987
|
}
|
|
36916
36988
|
// ref
|
|
36917
|
-
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));
|
|
36989
|
+
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));
|
|
36918
36990
|
var loadingIcon = loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("span", {
|
|
36919
36991
|
className: "".concat(switchPrefixCls, "-loading-icon")
|
|
36920
36992
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
@@ -38726,7 +38798,8 @@ var InteranalTag = function InteranalTag(props, ref) {
|
|
|
38726
38798
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_11__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
38727
38799
|
getPrefixCls = _useContext.getPrefixCls,
|
|
38728
38800
|
prefixCls = _useContext.prefixCls,
|
|
38729
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
38801
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
38802
|
+
direction = _useContext.direction;
|
|
38730
38803
|
var tagProps = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getCompProps"])('Tag', userDefaultProps, props);
|
|
38731
38804
|
var className = tagProps.className,
|
|
38732
38805
|
clickable = tagProps.clickable,
|
|
@@ -38746,6 +38819,7 @@ var InteranalTag = function InteranalTag(props, ref) {
|
|
|
38746
38819
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_17__["default"])(TagTypes.indexOf(type) === -1, 'tag', "cannot found tag type '".concat(type, "'"));
|
|
38747
38820
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_17__["default"])(TagSizes.indexOf(size) === -1, 'tag', "cannot found tag size '".concat(size, "'"));
|
|
38748
38821
|
var tagPrefixCls = getPrefixCls(prefixCls, 'tag', customPrefixcls);
|
|
38822
|
+
var rtlCls = direction === 'rtl' ? "".concat(tagPrefixCls, "-rtl") : null;
|
|
38749
38823
|
var handleClick = function handleClick(e) {
|
|
38750
38824
|
if (!clickable) return;
|
|
38751
38825
|
onClick && onClick(e);
|
|
@@ -38780,7 +38854,7 @@ var InteranalTag = function InteranalTag(props, ref) {
|
|
|
38780
38854
|
|
|
38781
38855
|
// 预设的颜色值
|
|
38782
38856
|
var isPresetColor = ['process', 'success', 'warning', 'error', 'end', 'expired'].indexOf(color) > -1;
|
|
38783
|
-
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));
|
|
38857
|
+
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));
|
|
38784
38858
|
|
|
38785
38859
|
// 设置自定义颜色值的样式
|
|
38786
38860
|
var tagColorStyle = !isPresetColor && color && type === 'attribute' ? {
|
|
@@ -41102,7 +41176,8 @@ var InternalTree = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.fo
|
|
|
41102
41176
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_16__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_19__["default"]),
|
|
41103
41177
|
getPrefixCls = _useContext.getPrefixCls,
|
|
41104
41178
|
prefixCls = _useContext.prefixCls,
|
|
41105
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
41179
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
41180
|
+
direction = _useContext.direction;
|
|
41106
41181
|
var TreeProps = Object(_utils__WEBPACK_IMPORTED_MODULE_20__["getCompProps"])('Tree', userDefaultProps, props); // 按钮属性需要合并一遍用户定义的默认属性
|
|
41107
41182
|
var customPrefixcls = TreeProps.prefixCls,
|
|
41108
41183
|
treeData = TreeProps.treeData,
|
|
@@ -41151,7 +41226,8 @@ var InternalTree = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.fo
|
|
|
41151
41226
|
renderExtra = TreeProps.renderExtra,
|
|
41152
41227
|
others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4___default()(TreeProps, _excluded);
|
|
41153
41228
|
var treePrefixCls = getPrefixCls(prefixCls, 'tree', customPrefixcls); // 树样式前缀
|
|
41154
|
-
var
|
|
41229
|
+
var rtlCls = direction === 'rtl' ? "".concat(treePrefixCls, "-rtl") : null;
|
|
41230
|
+
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));
|
|
41155
41231
|
var treeRootClassName = "".concat(treePrefixCls, "-root");
|
|
41156
41232
|
var estimatedItemSize = innerEstimatedItemSize; // 节点高度
|
|
41157
41233
|
|
|
@@ -41754,7 +41830,8 @@ var TreeNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.forwar
|
|
|
41754
41830
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_11__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
41755
41831
|
getPrefixCls = _useContext.getPrefixCls,
|
|
41756
41832
|
prefixCls = _useContext.prefixCls,
|
|
41757
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
41833
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
41834
|
+
direction = _useContext.direction;
|
|
41758
41835
|
var TreeNodeProps = Object(_utils__WEBPACK_IMPORTED_MODULE_14__["getCompProps"])('TreeNode', userDefaultProps, props); // 按钮属性需要合并一遍用户定义的默认属性
|
|
41759
41836
|
var nodeKey = TreeNodeProps.nodeKey,
|
|
41760
41837
|
customPrefixcls = TreeNodeProps.prefixCls,
|
|
@@ -41910,7 +41987,7 @@ var TreeNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.forwar
|
|
|
41910
41987
|
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)),
|
|
41911
41988
|
onClick: expandOnClickNode ? onlyExpandOnClickIcon ? handleExpandIconClick : undefined : handleExpandIconClick
|
|
41912
41989
|
}, renderIcon(switcherIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_16__["default"], {
|
|
41913
|
-
type: "arrow-right-solid"
|
|
41990
|
+
type: "arrow-".concat(direction === 'rtl' ? 'left' : 'right', "-solid")
|
|
41914
41991
|
})));
|
|
41915
41992
|
} else {
|
|
41916
41993
|
// 叶子结点 隐藏展开按钮
|
|
@@ -43526,7 +43603,8 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
43526
43603
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_22__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_24__["default"]),
|
|
43527
43604
|
getPrefixCls = _useContext.getPrefixCls,
|
|
43528
43605
|
pkgPrefixCls = _useContext.prefixCls,
|
|
43529
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
43606
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
43607
|
+
direction = _useContext.direction;
|
|
43530
43608
|
var inputRef = Object(react__WEBPACK_IMPORTED_MODULE_22__["useRef"])(null);
|
|
43531
43609
|
var allProps = Object(_utils__WEBPACK_IMPORTED_MODULE_25__["getCompProps"])('Upload', userDefaultProps, props); // 属性需要合并一遍用户定义的默认属性
|
|
43532
43610
|
|
|
@@ -43766,6 +43844,7 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
43766
43844
|
}
|
|
43767
43845
|
};
|
|
43768
43846
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'upload', customPrefixcls);
|
|
43847
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
43769
43848
|
var inputFileProps = {
|
|
43770
43849
|
accept: accept,
|
|
43771
43850
|
onClick: onClick,
|
|
@@ -43838,7 +43917,7 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
43838
43917
|
};
|
|
43839
43918
|
});
|
|
43840
43919
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
|
|
43841
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_23___default()(prefixCls, {
|
|
43920
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_23___default()(prefixCls, rtlCls, {
|
|
43842
43921
|
disabled: disabled
|
|
43843
43922
|
}, className),
|
|
43844
43923
|
style: style
|