@kdcloudjs/kdesign 1.8.30 → 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 +798 -83
- package/dist/kdesign.css +578 -7
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +165 -93
- 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/compDefaultProps.d.ts +0 -1
- package/es/config-provider/compDefaultProps.js +0 -5
- 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/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/compDefaultProps.d.ts +0 -1
- package/lib/config-provider/compDefaultProps.js +0 -5
- 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/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,
|
|
@@ -11458,11 +11489,9 @@ var compDefaultProps = {
|
|
|
11458
11489
|
disabled: false,
|
|
11459
11490
|
draggable: false,
|
|
11460
11491
|
virtual: true,
|
|
11461
|
-
switcherIcon: function
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
});
|
|
11465
|
-
},
|
|
11492
|
+
// switcherIcon: function () {
|
|
11493
|
+
// return <Icon type="arrow-right-solid" />
|
|
11494
|
+
// },
|
|
11466
11495
|
estimatedItemSize: 32,
|
|
11467
11496
|
expandOnClickNode: true,
|
|
11468
11497
|
expandOnFilterNode: false
|
|
@@ -17345,7 +17374,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
|
|
|
17345
17374
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_11__["useContext"](_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
17346
17375
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
17347
17376
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
17348
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
17377
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
17378
|
+
direction = _React$useContext.direction;
|
|
17349
17379
|
var allProps = Object(_utils__WEBPACK_IMPORTED_MODULE_14__["getCompProps"])('Dropdown', userDefaultProps, props);
|
|
17350
17380
|
var menu = allProps.menu,
|
|
17351
17381
|
disabled = allProps.disabled,
|
|
@@ -17456,7 +17486,8 @@ var Dropdown = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["forwardRef"](fu
|
|
|
17456
17486
|
popperStyle: innerAnimation ? popperStyle : _objectSpread({
|
|
17457
17487
|
animation: 'none'
|
|
17458
17488
|
}, popperStyle),
|
|
17459
|
-
onVisibleChange: handleVisibleChange
|
|
17489
|
+
onVisibleChange: handleVisibleChange,
|
|
17490
|
+
placement: direction === 'rtl' ? 'bottomRight' : 'bottomLeft'
|
|
17460
17491
|
});
|
|
17461
17492
|
return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_16__["default"])(child, menuElement, popperProps);
|
|
17462
17493
|
});
|
|
@@ -17520,7 +17551,8 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](functio
|
|
|
17520
17551
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_3__["useContext"](_config_provider__WEBPACK_IMPORTED_MODULE_4__["ConfigContext"]),
|
|
17521
17552
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
17522
17553
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
17523
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
17554
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
17555
|
+
direction = _React$useContext.direction;
|
|
17524
17556
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_5__["getCompProps"])('DropdownMenu', userDefaultProps, props),
|
|
17525
17557
|
customPrefixcls = _getCompProps.prefixCls,
|
|
17526
17558
|
children = _getCompProps.children,
|
|
@@ -17529,6 +17561,7 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](functio
|
|
|
17529
17561
|
className = _getCompProps.className,
|
|
17530
17562
|
restProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_1___default()(_getCompProps, _excluded);
|
|
17531
17563
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'dropdown-menu', customPrefixcls);
|
|
17564
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
17532
17565
|
var cloneItem = function cloneItem(item, index) {
|
|
17533
17566
|
if (! /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["isValidElement"](item)) {
|
|
17534
17567
|
return item;
|
|
@@ -17542,7 +17575,7 @@ var Menu = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["forwardRef"](functio
|
|
|
17542
17575
|
});
|
|
17543
17576
|
};
|
|
17544
17577
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3__["createElement"]("ul", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
17545
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, className),
|
|
17578
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_6___default()(prefixCls, rtlCls, className),
|
|
17546
17579
|
role: "menu"
|
|
17547
17580
|
}, restProps, {
|
|
17548
17581
|
ref: ref
|
|
@@ -22547,7 +22580,8 @@ var Preview = function Preview(props) {
|
|
|
22547
22580
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
22548
22581
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
22549
22582
|
userDefaultProps = _React$useContext.compDefaultProps,
|
|
22550
|
-
locale = _React$useContext.locale
|
|
22583
|
+
locale = _React$useContext.locale,
|
|
22584
|
+
direction = _React$useContext.direction;
|
|
22551
22585
|
|
|
22552
22586
|
// 属性需要合并一遍用户定义的默认属性
|
|
22553
22587
|
var allProps = Object(_utils__WEBPACK_IMPORTED_MODULE_15__["getCompProps"])('Image', userDefaultProps, props);
|
|
@@ -22568,6 +22602,7 @@ var Preview = function Preview(props) {
|
|
|
22568
22602
|
|
|
22569
22603
|
// className前缀
|
|
22570
22604
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'image', customPrefixcls);
|
|
22605
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
22571
22606
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_12__["useState"](visible),
|
|
22572
22607
|
_React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_React$useState, 2),
|
|
22573
22608
|
show = _React$useState2[0],
|
|
@@ -22640,7 +22675,7 @@ var Preview = function Preview(props) {
|
|
|
22640
22675
|
}
|
|
22641
22676
|
};
|
|
22642
22677
|
var peviewContainer = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("div", {
|
|
22643
|
-
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, {
|
|
22644
22679
|
show: show
|
|
22645
22680
|
}),
|
|
22646
22681
|
style: _objectSpread({}, props.style)
|
|
@@ -22658,7 +22693,7 @@ var Preview = function Preview(props) {
|
|
|
22658
22693
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("img", previewImgProps))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("div", {
|
|
22659
22694
|
className: "".concat(prefixCls, "-preview-action")
|
|
22660
22695
|
}, props.type !== 'upload' && length && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
|
22661
|
-
type:
|
|
22696
|
+
type: direction === 'rtl' ? 'arrow-right' : 'arrow-left',
|
|
22662
22697
|
className: classnames__WEBPACK_IMPORTED_MODULE_14___default()({
|
|
22663
22698
|
disabled: current <= 0
|
|
22664
22699
|
}),
|
|
@@ -22676,7 +22711,7 @@ var Preview = function Preview(props) {
|
|
|
22676
22711
|
}),
|
|
22677
22712
|
onClick: handleZoomIn
|
|
22678
22713
|
}), props.type !== 'upload' && operations, props.type !== 'upload' && length && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_17__["default"], {
|
|
22679
|
-
type:
|
|
22714
|
+
type: direction === 'rtl' ? 'arrow-left' : 'arrow-right',
|
|
22680
22715
|
className: classnames__WEBPACK_IMPORTED_MODULE_14___default()({
|
|
22681
22716
|
disabled: current >= length - 1
|
|
22682
22717
|
}),
|
|
@@ -23578,12 +23613,14 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
23578
23613
|
numberMark = props.numberMark,
|
|
23579
23614
|
inputCount = props.inputCount,
|
|
23580
23615
|
count = props.count,
|
|
23581
|
-
status = props.status
|
|
23616
|
+
status = props.status,
|
|
23617
|
+
direction = props.direction;
|
|
23582
23618
|
var fixRef = Object(react__WEBPACK_IMPORTED_MODULE_3__["useRef"])(null);
|
|
23583
23619
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_3__["useState"])(false),
|
|
23584
23620
|
_useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
|
|
23585
23621
|
isMouseEnter = _useState2[0],
|
|
23586
23622
|
setIsMouseEnter = _useState2[1];
|
|
23623
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
23587
23624
|
var mouseEnterHandle = function mouseEnterHandle() {
|
|
23588
23625
|
setIsMouseEnter(true);
|
|
23589
23626
|
};
|
|
@@ -23637,7 +23674,7 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
23637
23674
|
className: "".concat(prefixCls, "-prefix"),
|
|
23638
23675
|
onMouseDown: mouseDownHandle
|
|
23639
23676
|
}, prefix) : null;
|
|
23640
|
-
var inputWrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-focused"), focused && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-wrapper-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, className, className && !addonBefore && !addonAfter));
|
|
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));
|
|
23641
23678
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
23642
23679
|
className: inputWrapperClasses,
|
|
23643
23680
|
ref: fixRef,
|
|
@@ -23661,7 +23698,7 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
23661
23698
|
var addonAfterNode = addonAfter ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
23662
23699
|
className: addonClassName
|
|
23663
23700
|
}, addonAfter) : null;
|
|
23664
|
-
var inputGroupClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()(className, (_classNames5 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(prefixCls, "-group"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames5, "".concat(prefixCls, "-group-size-").concat(size), size), _classNames5));
|
|
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));
|
|
23665
23702
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
23666
23703
|
className: "".concat(prefixCls, "-group-wrapper")
|
|
23667
23704
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
@@ -23695,7 +23732,7 @@ var ClearableInput = function ClearableInput(props) {
|
|
|
23695
23732
|
delete wrapperStyle[key];
|
|
23696
23733
|
}
|
|
23697
23734
|
}
|
|
23698
|
-
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));
|
|
23699
23736
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
|
|
23700
23737
|
className: textAreaWrapperClasses,
|
|
23701
23738
|
style: wrapperStyle,
|
|
@@ -23770,7 +23807,8 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23770
23807
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_7__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_9__["default"]),
|
|
23771
23808
|
getPrefixCls = _useContext.getPrefixCls,
|
|
23772
23809
|
prefixCls = _useContext.prefixCls,
|
|
23773
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
23810
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
23811
|
+
direction = _useContext.direction;
|
|
23774
23812
|
var textAreaProps = Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getCompProps"])('TextArea', userDefaultProps, props);
|
|
23775
23813
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_7__["useState"])({}),
|
|
23776
23814
|
_useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_3___default()(_useState, 2),
|
|
@@ -23801,6 +23839,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23801
23839
|
addonBefore = textAreaProps.addonBefore,
|
|
23802
23840
|
others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_2___default()(textAreaProps, _excluded);
|
|
23803
23841
|
var textAreaPrefixCls = getPrefixCls(prefixCls, 'input', customPrefixcls);
|
|
23842
|
+
var rtlCls = direction === 'rtl' ? "".concat(textAreaPrefixCls, "-rtl") : null;
|
|
23804
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, "'"));
|
|
23805
23844
|
var _useMergedState = Object(_utils_hooks__WEBPACK_IMPORTED_MODULE_14__["useMergedState"])('', {
|
|
23806
23845
|
value: propsValue,
|
|
@@ -23923,7 +23962,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23923
23962
|
ref: textareaRef,
|
|
23924
23963
|
disabled: disabled,
|
|
23925
23964
|
style: _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({}, textareaStyles, hadCount || !!allowClear ? otherStyles : style),
|
|
23926
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()("".concat(prefixCls, "-textarea"), (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-borderless"), borderType === 'none'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-underline"), borderType === 'underline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-no-resize"), canResize !== true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-allowClear-spacing"), !!allowClear), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-error"), status === 'error' || numberMarkError), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, className, className && !allowClear && !hadCount)),
|
|
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)),
|
|
23927
23966
|
onChange: handleChange,
|
|
23928
23967
|
onFocus: !disabled ? handleFocus : undefined,
|
|
23929
23968
|
onBlur: !disabled ? handleBlur : undefined,
|
|
@@ -23933,7 +23972,7 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23933
23972
|
}, others));
|
|
23934
23973
|
return hadCount ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("span", {
|
|
23935
23974
|
style: wrapperStyle,
|
|
23936
|
-
className: "".concat(prefixCls, "-countWrapper ").concat(className && !allowClear ? className : '')
|
|
23975
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_8___default()(rtlCls, "".concat(prefixCls, "-countWrapper ").concat(className && !allowClear ? className : ''))
|
|
23937
23976
|
}, textarea, renderNumberMark()) : textarea;
|
|
23938
23977
|
};
|
|
23939
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, {
|
|
@@ -23947,7 +23986,8 @@ var InternalTextarea = function InternalTextarea(props, ref) {
|
|
|
23947
23986
|
inputType: "text",
|
|
23948
23987
|
prefixCls: textAreaPrefixCls,
|
|
23949
23988
|
element: renderTextArea(textAreaPrefixCls),
|
|
23950
|
-
numberMark: renderNumberMark()
|
|
23989
|
+
numberMark: renderNumberMark(),
|
|
23990
|
+
direction: direction
|
|
23951
23991
|
}));
|
|
23952
23992
|
};
|
|
23953
23993
|
var TextArea = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_7___default.a.forwardRef(InternalTextarea);
|
|
@@ -24149,7 +24189,8 @@ var InternalInput = function InternalInput(props, ref) {
|
|
|
24149
24189
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_5__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_7__["default"]),
|
|
24150
24190
|
getPrefixCls = _useContext.getPrefixCls,
|
|
24151
24191
|
prefixCls = _useContext.prefixCls,
|
|
24152
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
24192
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
24193
|
+
direction = _useContext.direction;
|
|
24153
24194
|
var inputProps = Object(_utils__WEBPACK_IMPORTED_MODULE_8__["getCompProps"])('Input', userDefaultProps, props);
|
|
24154
24195
|
var type = inputProps.type,
|
|
24155
24196
|
size = inputProps.size,
|
|
@@ -24192,7 +24233,8 @@ var InternalInput = function InternalInput(props, ref) {
|
|
|
24192
24233
|
setShowNumberMark = _useState4[1];
|
|
24193
24234
|
var inputRef = Object(react__WEBPACK_IMPORTED_MODULE_5__["useRef"])();
|
|
24194
24235
|
var inputPrefixCls = getPrefixCls(prefixCls, 'input', customPrefixcls);
|
|
24195
|
-
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));
|
|
24196
24238
|
var handleFocus = function handleFocus(event) {
|
|
24197
24239
|
setFocused(true);
|
|
24198
24240
|
onFocus && onFocus(event);
|
|
@@ -24293,7 +24335,8 @@ var InternalInput = function InternalInput(props, ref) {
|
|
|
24293
24335
|
element: renderInput(),
|
|
24294
24336
|
focused: focused,
|
|
24295
24337
|
count: count,
|
|
24296
|
-
inputCount: renderCount()
|
|
24338
|
+
inputCount: renderCount(),
|
|
24339
|
+
direction: direction
|
|
24297
24340
|
}));
|
|
24298
24341
|
};
|
|
24299
24342
|
var Input = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.forwardRef(InternalInput);
|
|
@@ -24871,7 +24914,8 @@ var InternalLink = function InternalLink(props, ref) {
|
|
|
24871
24914
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_4__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
24872
24915
|
getPrefixCls = _useContext.getPrefixCls,
|
|
24873
24916
|
prefixCls = _useContext.prefixCls,
|
|
24874
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
24917
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
24918
|
+
direction = _useContext.direction;
|
|
24875
24919
|
var linkProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["getCompProps"])('Link', userDefaultProps, props);
|
|
24876
24920
|
var size = linkProps.size,
|
|
24877
24921
|
style = linkProps.style,
|
|
@@ -24890,8 +24934,8 @@ var InternalLink = function InternalLink(props, ref) {
|
|
|
24890
24934
|
// ref
|
|
24891
24935
|
var linkRef = ref || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createRef();
|
|
24892
24936
|
var linkPrefixCls = getPrefixCls(prefixCls, 'link', customPrefixcls); // 按钮样式前缀
|
|
24893
|
-
|
|
24894
|
-
var wrapperClasses = classnames__WEBPACK_IMPORTED_MODULE_5___default()((_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(linkPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(linkPrefixCls, "-size-").concat(size), size), _classNames));
|
|
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));
|
|
24895
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));
|
|
24896
24940
|
var handleClick = function handleClick(e) {
|
|
24897
24941
|
// 禁用状态 不跳转
|
|
@@ -25552,7 +25596,8 @@ var Menu = function Menu(props) {
|
|
|
25552
25596
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_18__["useContext"])(_config_provider__WEBPACK_IMPORTED_MODULE_20__["ConfigContext"]),
|
|
25553
25597
|
getPrefixCls = _useContext.getPrefixCls,
|
|
25554
25598
|
pkgPrefixCls = _useContext.prefixCls,
|
|
25555
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
25599
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
25600
|
+
direction = _useContext.direction;
|
|
25556
25601
|
var userSelectedKey = props.selectedKey,
|
|
25557
25602
|
userOpenKeys = props.openKeys;
|
|
25558
25603
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_21__["getCompProps"])('Menu', userDefaultProps, props),
|
|
@@ -25571,6 +25616,7 @@ var Menu = function Menu(props) {
|
|
|
25571
25616
|
defaultOpenKeys = _getCompProps.defaultOpenKeys,
|
|
25572
25617
|
restProps = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4___default()(_getCompProps, _excluded);
|
|
25573
25618
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'menu', customPrefixcls);
|
|
25619
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
25574
25620
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_23__["default"])(['inline', 'vertical', undefined].indexOf(mode) === -1, 'menu', "cannot found menu mode '".concat(mode, "'"));
|
|
25575
25621
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_23__["default"])(mode !== 'inline' && accordion !== undefined, 'menu', "'accordion' is valid only in mode='inline'");
|
|
25576
25622
|
var _useState = Object(react__WEBPACK_IMPORTED_MODULE_18__["useState"])(''),
|
|
@@ -25690,7 +25736,7 @@ var Menu = function Menu(props) {
|
|
|
25690
25736
|
onMouseEnter: handleMouseEnterMenu
|
|
25691
25737
|
};
|
|
25692
25738
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18___default.a.createElement("div", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default()({
|
|
25693
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_22___default()(prefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-inline"), mode === 'inline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-vertical"), mode !== 'inline'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-collapsed"), collapsed), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(prefixCls, "-").concat(theme === 'light' ? 'light' : 'dark'), true), _classNames)),
|
|
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)),
|
|
25694
25740
|
role: "menu",
|
|
25695
25741
|
style: style
|
|
25696
25742
|
}, mouseEvent), children && renderMenu(), additionalTools);
|
|
@@ -25748,7 +25794,8 @@ var InternalMenuItem = function InternalMenuItem(props, ref) {
|
|
|
25748
25794
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_5__["useContext"](_config_provider__WEBPACK_IMPORTED_MODULE_6__["ConfigContext"]),
|
|
25749
25795
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
25750
25796
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
25751
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
25797
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
25798
|
+
direction = _React$useContext.direction;
|
|
25752
25799
|
|
|
25753
25800
|
// 属性需要合并一遍用户定义的默认属性
|
|
25754
25801
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_7__["getCompProps"])('MenuItem', userDefaultProps, props),
|
|
@@ -25830,9 +25877,10 @@ var InternalMenuItem = function InternalMenuItem(props, ref) {
|
|
|
25830
25877
|
onMouseLeave: handleOnMouseLeave,
|
|
25831
25878
|
onMouseEnter: handleOnMouseEnter
|
|
25832
25879
|
};
|
|
25880
|
+
var isRtl = direction === 'rtl';
|
|
25833
25881
|
var titleStyle = {
|
|
25834
|
-
paddingLeft: "".concat(getPaddingLeft(), "px"),
|
|
25835
|
-
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
|
|
25836
25884
|
};
|
|
25837
25885
|
var renderTitle = function renderTitle() {
|
|
25838
25886
|
if (!icon && collapsed && level === 1 && typeof children === 'string') {
|
|
@@ -25956,7 +26004,8 @@ var SubMenu = function SubMenu(props) {
|
|
|
25956
26004
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_8___default.a.useContext(_config_provider__WEBPACK_IMPORTED_MODULE_9__["ConfigContext"]),
|
|
25957
26005
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
25958
26006
|
pkgPrefixCls = _React$useContext.prefixCls,
|
|
25959
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
26007
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
26008
|
+
direction = _React$useContext.direction;
|
|
25960
26009
|
|
|
25961
26010
|
// 属性需要合并一遍用户定义的默认属性
|
|
25962
26011
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_10__["getCompProps"])('MenuSubMenu', userDefaultProps, props),
|
|
@@ -26163,9 +26212,10 @@ var SubMenu = function SubMenu(props) {
|
|
|
26163
26212
|
onMouseEnter: handleOnMouseEnter,
|
|
26164
26213
|
onClick: handleOnClickSubMenu
|
|
26165
26214
|
};
|
|
26215
|
+
var isRtl = direction === 'rtl';
|
|
26166
26216
|
var titleStyle = {
|
|
26167
|
-
paddingRight: "".concat(curPaddingRight, "px"),
|
|
26168
|
-
paddingLeft: "".concat(curPaddingLeft, "px")
|
|
26217
|
+
paddingRight: isRtl ? "".concat(curPaddingLeft, "px") : "".concat(curPaddingRight, "px"),
|
|
26218
|
+
paddingLeft: isRtl ? "".concat(curPaddingRight, "px") : "".concat(curPaddingLeft, "px")
|
|
26169
26219
|
};
|
|
26170
26220
|
|
|
26171
26221
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
@@ -26216,7 +26266,7 @@ var SubMenu = function SubMenu(props) {
|
|
|
26216
26266
|
});
|
|
26217
26267
|
}))), {
|
|
26218
26268
|
arrow: false,
|
|
26219
|
-
placement: 'rightTop',
|
|
26269
|
+
placement: direction === 'rtl' ? 'leftTop' : 'rightTop',
|
|
26220
26270
|
gap: 0,
|
|
26221
26271
|
visible: isVertical && !disabled ? visible : false,
|
|
26222
26272
|
disabled: isVertical ? undefined : true,
|
|
@@ -26834,7 +26884,8 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
26834
26884
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_6__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_12__["default"]),
|
|
26835
26885
|
getPrefixCls = _useContext.getPrefixCls,
|
|
26836
26886
|
prefixCls = _useContext.prefixCls,
|
|
26837
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
26887
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
26888
|
+
direction = _useContext.direction;
|
|
26838
26889
|
var modalProps = Object(_utils__WEBPACK_IMPORTED_MODULE_13__["getCompProps"])('Modal', userDefaultProps, props); // 属性需要合并一遍用户定义的默认属性
|
|
26839
26890
|
var body = modalProps.body,
|
|
26840
26891
|
bodyClassName = modalProps.bodyClassName,
|
|
@@ -26889,6 +26940,7 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
26889
26940
|
var wrapperRef = Object(react__WEBPACK_IMPORTED_MODULE_6__["useRef"])(null);
|
|
26890
26941
|
var containerRef = ref || innerRef;
|
|
26891
26942
|
var modalPrefixCls = getPrefixCls(prefixCls, 'modal', customPrefixcls);
|
|
26943
|
+
var rtlCls = direction === 'rtl' ? "".concat(modalPrefixCls, "-rtl") : null;
|
|
26892
26944
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_14__["default"])(ModalTypes.indexOf(type) === -1, 'modal', "cannot found modal type '".concat(type, "'"));
|
|
26893
26945
|
var modalContainer = typeof getContainer === 'function' ? getContainer() : getContainer;
|
|
26894
26946
|
if (modalContainer !== false && !(modalContainer instanceof HTMLElement)) {
|
|
@@ -27158,7 +27210,7 @@ var InternalModal = function InternalModal(props, ref) {
|
|
|
27158
27210
|
}
|
|
27159
27211
|
};
|
|
27160
27212
|
var isHidden = !destroyOnClose && !(isForceController ? visible : innerVisible);
|
|
27161
|
-
var modalClasses = classnames__WEBPACK_IMPORTED_MODULE_11___default()(modalPrefixCls, className, (_classNames3 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container-ie"), _utils_ieUtil__WEBPACK_IMPORTED_MODULE_18__["isIE"]), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container-hidden"), isHidden), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames3, "".concat(modalPrefixCls, "-container-show"), !isHidden), _classNames3));
|
|
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));
|
|
27162
27214
|
var headerClass = classnames__WEBPACK_IMPORTED_MODULE_11___default()("".concat(modalPrefixCls, "-header"), titleClassName);
|
|
27163
27215
|
var container = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div", {
|
|
27164
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)),
|
|
@@ -29999,7 +30051,8 @@ var QRCode = function QRCode(props) {
|
|
|
29999
30051
|
getPrefixCls = _useContext.getPrefixCls,
|
|
30000
30052
|
prefixCls = _useContext.prefixCls,
|
|
30001
30053
|
userDefaultProps = _useContext.compDefaultProps,
|
|
30002
|
-
getCompLangMsg = _useContext.locale.getCompLangMsg
|
|
30054
|
+
getCompLangMsg = _useContext.locale.getCompLangMsg,
|
|
30055
|
+
direction = _useContext.direction;
|
|
30003
30056
|
var qrCodeProps = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getCompProps"])('QRCode', userDefaultProps, props);
|
|
30004
30057
|
var value = qrCodeProps.value,
|
|
30005
30058
|
size = qrCodeProps.size,
|
|
@@ -30018,7 +30071,8 @@ var QRCode = function QRCode(props) {
|
|
|
30018
30071
|
var className = qrCodeProps.className,
|
|
30019
30072
|
customPrefixcls = qrCodeProps.prefixCls;
|
|
30020
30073
|
var qrCodePrefixCls = getPrefixCls(prefixCls, 'qrcode', customPrefixcls);
|
|
30021
|
-
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));
|
|
30022
30076
|
var qrCodeLangMsg = getCompLangMsg({
|
|
30023
30077
|
componentName: 'QRCode'
|
|
30024
30078
|
});
|
|
@@ -30153,7 +30207,8 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
|
|
|
30153
30207
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_4__["useContext"](_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_6__["default"]),
|
|
30154
30208
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
30155
30209
|
prefixCls = _React$useContext.prefixCls,
|
|
30156
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
30210
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
30211
|
+
direction = _React$useContext.direction;
|
|
30157
30212
|
var initValue = typeof props.value === 'undefined' ? props.defaultValue : props.value;
|
|
30158
30213
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_4__["useState"](initValue),
|
|
30159
30214
|
_React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_0___default()(_React$useState, 2),
|
|
@@ -30187,6 +30242,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
|
|
|
30187
30242
|
optionType = _getCompProps.optionType,
|
|
30188
30243
|
customPrefixcls = _getCompProps.prefixCls; // 属性需要合并一遍用户定义的默认属性
|
|
30189
30244
|
var groupPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio-group", customPrefixcls); // 单选组样式前缀
|
|
30245
|
+
var rtlCls = direction === 'rtl' ? "".concat(groupPrefixCls, "-rtl") : null;
|
|
30190
30246
|
var radioPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, "radio", customPrefixcls); // 单选样式前缀
|
|
30191
30247
|
var childrenToRender = children;
|
|
30192
30248
|
// 如果存在 options, 优先使用
|
|
@@ -30215,7 +30271,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["forwardRef"](f
|
|
|
30215
30271
|
});
|
|
30216
30272
|
}
|
|
30217
30273
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4__["createElement"]("div", {
|
|
30218
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(groupPrefixCls, className),
|
|
30274
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_5___default()(groupPrefixCls, rtlCls, className),
|
|
30219
30275
|
style: style,
|
|
30220
30276
|
id: id,
|
|
30221
30277
|
ref: ref
|
|
@@ -30405,7 +30461,8 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
30405
30461
|
var _React$useContext = react__WEBPACK_IMPORTED_MODULE_5___default.a.useContext(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_10__["default"]),
|
|
30406
30462
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
30407
30463
|
prefixCls = _React$useContext.prefixCls,
|
|
30408
|
-
userDefaultProps = _React$useContext.compDefaultProps
|
|
30464
|
+
userDefaultProps = _React$useContext.compDefaultProps,
|
|
30465
|
+
direction = _React$useContext.direction;
|
|
30409
30466
|
var innerRef = react__WEBPACK_IMPORTED_MODULE_5___default.a.useRef();
|
|
30410
30467
|
var mergedRef = ref || innerRef;
|
|
30411
30468
|
var _getCompProps = Object(_utils__WEBPACK_IMPORTED_MODULE_11__["getCompProps"])('Radio', userDefaultProps, props),
|
|
@@ -30428,6 +30485,7 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
30428
30485
|
return "radio".concat(radioType === 'square' ? "-".concat(radioType) : '');
|
|
30429
30486
|
};
|
|
30430
30487
|
var radioPrefixCls = getPrefixCls === null || getPrefixCls === void 0 ? void 0 : getPrefixCls(prefixCls, getPrefix(radioType), customPrefixcls); // 样式前缀
|
|
30488
|
+
var rtlCls = direction === 'rtl' ? "".concat(radioPrefixCls, "-rtl") : null;
|
|
30431
30489
|
var _React$useState = react__WEBPACK_IMPORTED_MODULE_5___default.a.useState(initValue),
|
|
30432
30490
|
_React$useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_2___default()(_React$useState, 2),
|
|
30433
30491
|
isChecked = _React$useState2[0],
|
|
@@ -30448,7 +30506,7 @@ var InternalRadio = function InternalRadio(props, ref) {
|
|
|
30448
30506
|
context.onChange(e, value);
|
|
30449
30507
|
}
|
|
30450
30508
|
};
|
|
30451
|
-
var classString = classnames__WEBPACK_IMPORTED_MODULE_6___default()((_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(radioPrefixCls, "-checked"), isChecked), _classNames), className); // 单选包裹元素class名称
|
|
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名称
|
|
30452
30510
|
|
|
30453
30511
|
Object(react__WEBPACK_IMPORTED_MODULE_5__["useEffect"])(function () {
|
|
30454
30512
|
var _radioRef$current;
|
|
@@ -32139,8 +32197,10 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
32139
32197
|
var optionProps = _objectSpread({}, props);
|
|
32140
32198
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_12__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
32141
32199
|
getPrefixCls = _useContext.getPrefixCls,
|
|
32142
|
-
prefixCls = _useContext.prefixCls
|
|
32200
|
+
prefixCls = _useContext.prefixCls,
|
|
32201
|
+
direction = _useContext.direction;
|
|
32143
32202
|
var selectOptionPrefixCls = getPrefixCls(prefixCls, 'select-item');
|
|
32203
|
+
var rtlCls = direction === 'rtl' ? "".concat(selectOptionPrefixCls, "-rtl") : null;
|
|
32144
32204
|
Object(react__WEBPACK_IMPORTED_MODULE_12__["useEffect"])(function () {
|
|
32145
32205
|
if (isMultiple) {
|
|
32146
32206
|
setSelected((values === null || values === void 0 ? void 0 : values.indexOf(value)) > -1);
|
|
@@ -32148,7 +32208,7 @@ var InternalOption = function InternalOption(props, ref) {
|
|
|
32148
32208
|
setSelected(value !== undefined ? value === values : false);
|
|
32149
32209
|
}
|
|
32150
32210
|
});
|
|
32151
|
-
var optionCls = classnames__WEBPACK_IMPORTED_MODULE_13___default()(selectOptionPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option-active"), activeIndex === index), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option-selected"), isSelected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(selectOptionPrefixCls, "-option-disabled"), disabled), _classNames));
|
|
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));
|
|
32152
32212
|
var contentCls = classnames__WEBPACK_IMPORTED_MODULE_13___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()({}, "".concat(selectOptionPrefixCls, "-option-content"), true));
|
|
32153
32213
|
var handleClick = function handleClick(e) {
|
|
32154
32214
|
e.preventDefault();
|
|
@@ -32326,7 +32386,8 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
32326
32386
|
getPrefixCls = _useContext.getPrefixCls,
|
|
32327
32387
|
prefixCls = _useContext.prefixCls,
|
|
32328
32388
|
userDefaultProps = _useContext.compDefaultProps,
|
|
32329
|
-
locale = _useContext.locale
|
|
32389
|
+
locale = _useContext.locale,
|
|
32390
|
+
direction = _useContext.direction;
|
|
32330
32391
|
var selectProps = Object(_utils__WEBPACK_IMPORTED_MODULE_33__["getCompProps"])('Select', userDefaultProps, props);
|
|
32331
32392
|
var selectLangMsg = locale.getCompLangMsg({
|
|
32332
32393
|
componentName: 'Select'
|
|
@@ -32418,8 +32479,9 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
32418
32479
|
return lodash_isBoolean__WEBPACK_IMPORTED_MODULE_30___default()(showSearch) ? showSearch : isMultiple;
|
|
32419
32480
|
}, [isMultiple, showSearch]);
|
|
32420
32481
|
var selectPrefixCls = getPrefixCls(prefixCls, 'select', customPrefixcls);
|
|
32482
|
+
var rtlCls = direction === 'rtl' ? "".concat(selectPrefixCls, "-rtl") : null;
|
|
32421
32483
|
// 选择器样式
|
|
32422
|
-
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));
|
|
32423
32485
|
var selectionCls = classnames__WEBPACK_IMPORTED_MODULE_31___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_13___default()({}, "".concat(selectPrefixCls, "-selector"), true));
|
|
32424
32486
|
|
|
32425
32487
|
// 下拉子项列表样式
|
|
@@ -33031,7 +33093,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
33031
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));
|
|
33032
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));
|
|
33033
33095
|
var TagStyle = {
|
|
33034
|
-
margin: '2px 8px 2px 0',
|
|
33096
|
+
margin: direction === 'rtl' ? '2px 0 2px 8px' : '2px 8px 2px 0',
|
|
33035
33097
|
maxWidth: '100%'
|
|
33036
33098
|
};
|
|
33037
33099
|
var totalText = locale.getLangMsg('Select', 'total', {
|
|
@@ -33254,7 +33316,7 @@ var InternalSelect = function InternalSelect(props, ref) {
|
|
|
33254
33316
|
}
|
|
33255
33317
|
};
|
|
33256
33318
|
var popperProps = _objectSpread(_objectSpread({}, selectProps), {}, {
|
|
33257
|
-
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),
|
|
33258
33320
|
placement: 'bottomLeft',
|
|
33259
33321
|
popperStyle: catchStyle(),
|
|
33260
33322
|
defaultVisible: optionShow,
|
|
@@ -36619,7 +36681,8 @@ var Steps = function Steps(props) {
|
|
|
36619
36681
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_12__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
36620
36682
|
getPrefixCls = _useContext.getPrefixCls,
|
|
36621
36683
|
prefixCls = _useContext.prefixCls,
|
|
36622
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
36684
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
36685
|
+
rtlDirection = _useContext.direction;
|
|
36623
36686
|
var stepsProps = Object(_utils__WEBPACK_IMPORTED_MODULE_15__["getCompProps"])('Steps', userDefaultProps, props);
|
|
36624
36687
|
var direction = stepsProps.direction,
|
|
36625
36688
|
initial = stepsProps.initial,
|
|
@@ -36641,8 +36704,8 @@ var Steps = function Steps(props) {
|
|
|
36641
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, "'"));
|
|
36642
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, "'"));
|
|
36643
36706
|
var stepsPrefixCls = getPrefixCls(prefixCls, 'steps', customPrefixcls); // 按钮样式前缀
|
|
36644
|
-
|
|
36645
|
-
var stepsClassName = classnames__WEBPACK_IMPORTED_MODULE_13___default()(stepsPrefixCls, "".concat(stepsPrefixCls, "-").concat(direction), className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-leftLable"), labelPlacement === 'left'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-rightLable"), labelPlacement === 'right'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-bottomLable"), labelPlacement === 'bottom'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(stepsPrefixCls, "-topLable"), labelPlacement === 'top'), _classNames));
|
|
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));
|
|
36646
36709
|
var onStepClick = function onStepClick(next) {
|
|
36647
36710
|
if (canClickCurrentStep || onChange && current !== next) {
|
|
36648
36711
|
onChange(next);
|
|
@@ -36884,7 +36947,8 @@ var Switch = function Switch(props) {
|
|
|
36884
36947
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_5__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_8__["default"]),
|
|
36885
36948
|
getPrefixCls = _useContext.getPrefixCls,
|
|
36886
36949
|
prefixCls = _useContext.prefixCls,
|
|
36887
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
36950
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
36951
|
+
direction = _useContext.direction;
|
|
36888
36952
|
var switchProps = Object(_utils__WEBPACK_IMPORTED_MODULE_9__["getCompProps"])('Switch', userDefaultProps, props);
|
|
36889
36953
|
var size = switchProps.size,
|
|
36890
36954
|
className = switchProps.className,
|
|
@@ -36906,6 +36970,7 @@ var Switch = function Switch(props) {
|
|
|
36906
36970
|
newChecked = _useMergedState2[0],
|
|
36907
36971
|
setChecked = _useMergedState2[1];
|
|
36908
36972
|
var switchPrefixCls = getPrefixCls(prefixCls, 'switch', customPrefixcls);
|
|
36973
|
+
var rtlCls = direction === 'rtl' ? "".concat(switchPrefixCls, "-rtl") : null;
|
|
36909
36974
|
var handleClick = function handleClick(e) {
|
|
36910
36975
|
var newV = triggerChange(!newChecked, e);
|
|
36911
36976
|
onClick && onClick(newV, e);
|
|
@@ -36921,7 +36986,7 @@ var Switch = function Switch(props) {
|
|
|
36921
36986
|
return afterChangedChecked;
|
|
36922
36987
|
}
|
|
36923
36988
|
// ref
|
|
36924
|
-
var switchClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()(switchPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-disabled"), disabled || loading), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-loading"), loading), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(switchPrefixCls, "-checked"), newChecked), _classNames));
|
|
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));
|
|
36925
36990
|
var loadingIcon = loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("span", {
|
|
36926
36991
|
className: "".concat(switchPrefixCls, "-loading-icon")
|
|
36927
36992
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_7__["default"], {
|
|
@@ -38733,7 +38798,8 @@ var InteranalTag = function InteranalTag(props, ref) {
|
|
|
38733
38798
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_11__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_14__["default"]),
|
|
38734
38799
|
getPrefixCls = _useContext.getPrefixCls,
|
|
38735
38800
|
prefixCls = _useContext.prefixCls,
|
|
38736
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
38801
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
38802
|
+
direction = _useContext.direction;
|
|
38737
38803
|
var tagProps = Object(_utils__WEBPACK_IMPORTED_MODULE_16__["getCompProps"])('Tag', userDefaultProps, props);
|
|
38738
38804
|
var className = tagProps.className,
|
|
38739
38805
|
clickable = tagProps.clickable,
|
|
@@ -38753,6 +38819,7 @@ var InteranalTag = function InteranalTag(props, ref) {
|
|
|
38753
38819
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_17__["default"])(TagTypes.indexOf(type) === -1, 'tag', "cannot found tag type '".concat(type, "'"));
|
|
38754
38820
|
Object(_utils_devwarning__WEBPACK_IMPORTED_MODULE_17__["default"])(TagSizes.indexOf(size) === -1, 'tag', "cannot found tag size '".concat(size, "'"));
|
|
38755
38821
|
var tagPrefixCls = getPrefixCls(prefixCls, 'tag', customPrefixcls);
|
|
38822
|
+
var rtlCls = direction === 'rtl' ? "".concat(tagPrefixCls, "-rtl") : null;
|
|
38756
38823
|
var handleClick = function handleClick(e) {
|
|
38757
38824
|
if (!clickable) return;
|
|
38758
38825
|
onClick && onClick(e);
|
|
@@ -38787,7 +38854,7 @@ var InteranalTag = function InteranalTag(props, ref) {
|
|
|
38787
38854
|
|
|
38788
38855
|
// 预设的颜色值
|
|
38789
38856
|
var isPresetColor = ['process', 'success', 'warning', 'error', 'end', 'expired'].indexOf(color) > -1;
|
|
38790
|
-
var tagClasses = classnames__WEBPACK_IMPORTED_MODULE_13___default()(tagPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-shape-").concat(type), type), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-").concat(color), isPresetColor), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-has-color"), !isPresetColor && color && type === 'attribute'), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-clickable"), clickable), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-closable"), closable), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(tagPrefixCls, "-closable-disabled"), type === 'edit' && disabled), _classNames));
|
|
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));
|
|
38791
38858
|
|
|
38792
38859
|
// 设置自定义颜色值的样式
|
|
38793
38860
|
var tagColorStyle = !isPresetColor && color && type === 'attribute' ? {
|
|
@@ -41109,7 +41176,8 @@ var InternalTree = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.fo
|
|
|
41109
41176
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_16__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_19__["default"]),
|
|
41110
41177
|
getPrefixCls = _useContext.getPrefixCls,
|
|
41111
41178
|
prefixCls = _useContext.prefixCls,
|
|
41112
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
41179
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
41180
|
+
direction = _useContext.direction;
|
|
41113
41181
|
var TreeProps = Object(_utils__WEBPACK_IMPORTED_MODULE_20__["getCompProps"])('Tree', userDefaultProps, props); // 按钮属性需要合并一遍用户定义的默认属性
|
|
41114
41182
|
var customPrefixcls = TreeProps.prefixCls,
|
|
41115
41183
|
treeData = TreeProps.treeData,
|
|
@@ -41158,7 +41226,8 @@ var InternalTree = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_16___default.a.fo
|
|
|
41158
41226
|
renderExtra = TreeProps.renderExtra,
|
|
41159
41227
|
others = _babel_runtime_helpers_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_4___default()(TreeProps, _excluded);
|
|
41160
41228
|
var treePrefixCls = getPrefixCls(prefixCls, 'tree', customPrefixcls); // 树样式前缀
|
|
41161
|
-
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));
|
|
41162
41231
|
var treeRootClassName = "".concat(treePrefixCls, "-root");
|
|
41163
41232
|
var estimatedItemSize = innerEstimatedItemSize; // 节点高度
|
|
41164
41233
|
|
|
@@ -41761,7 +41830,8 @@ var TreeNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.forwar
|
|
|
41761
41830
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_11__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__["default"]),
|
|
41762
41831
|
getPrefixCls = _useContext.getPrefixCls,
|
|
41763
41832
|
prefixCls = _useContext.prefixCls,
|
|
41764
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
41833
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
41834
|
+
direction = _useContext.direction;
|
|
41765
41835
|
var TreeNodeProps = Object(_utils__WEBPACK_IMPORTED_MODULE_14__["getCompProps"])('TreeNode', userDefaultProps, props); // 按钮属性需要合并一遍用户定义的默认属性
|
|
41766
41836
|
var nodeKey = TreeNodeProps.nodeKey,
|
|
41767
41837
|
customPrefixcls = TreeNodeProps.prefixCls,
|
|
@@ -41917,7 +41987,7 @@ var TreeNode = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.forwar
|
|
|
41917
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)),
|
|
41918
41988
|
onClick: expandOnClickNode ? onlyExpandOnClickIcon ? handleExpandIconClick : undefined : handleExpandIconClick
|
|
41919
41989
|
}, renderIcon(switcherIcon || /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_icon__WEBPACK_IMPORTED_MODULE_16__["default"], {
|
|
41920
|
-
type: "arrow-right-solid"
|
|
41990
|
+
type: "arrow-".concat(direction === 'rtl' ? 'left' : 'right', "-solid")
|
|
41921
41991
|
})));
|
|
41922
41992
|
} else {
|
|
41923
41993
|
// 叶子结点 隐藏展开按钮
|
|
@@ -43533,7 +43603,8 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
43533
43603
|
var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_22__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_24__["default"]),
|
|
43534
43604
|
getPrefixCls = _useContext.getPrefixCls,
|
|
43535
43605
|
pkgPrefixCls = _useContext.prefixCls,
|
|
43536
|
-
userDefaultProps = _useContext.compDefaultProps
|
|
43606
|
+
userDefaultProps = _useContext.compDefaultProps,
|
|
43607
|
+
direction = _useContext.direction;
|
|
43537
43608
|
var inputRef = Object(react__WEBPACK_IMPORTED_MODULE_22__["useRef"])(null);
|
|
43538
43609
|
var allProps = Object(_utils__WEBPACK_IMPORTED_MODULE_25__["getCompProps"])('Upload', userDefaultProps, props); // 属性需要合并一遍用户定义的默认属性
|
|
43539
43610
|
|
|
@@ -43773,6 +43844,7 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
43773
43844
|
}
|
|
43774
43845
|
};
|
|
43775
43846
|
var prefixCls = getPrefixCls(pkgPrefixCls, 'upload', customPrefixcls);
|
|
43847
|
+
var rtlCls = direction === 'rtl' ? "".concat(prefixCls, "-rtl") : null;
|
|
43776
43848
|
var inputFileProps = {
|
|
43777
43849
|
accept: accept,
|
|
43778
43850
|
onClick: onClick,
|
|
@@ -43845,7 +43917,7 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
43845
43917
|
};
|
|
43846
43918
|
});
|
|
43847
43919
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_22___default.a.createElement("div", {
|
|
43848
|
-
className: classnames__WEBPACK_IMPORTED_MODULE_23___default()(prefixCls, {
|
|
43920
|
+
className: classnames__WEBPACK_IMPORTED_MODULE_23___default()(prefixCls, rtlCls, {
|
|
43849
43921
|
disabled: disabled
|
|
43850
43922
|
}, className),
|
|
43851
43923
|
style: style
|