acud 0.0.72 → 0.0.75
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/acud.css +1958 -1950
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +168 -132
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +8 -10
- package/dist/acud.min.js.map +1 -1
- package/es/card/Card.js +4 -2
- package/es/cascader/index.js +3 -2
- package/es/cascader/style/css.js +5 -1
- package/es/cascader/style/index.d.ts +4 -0
- package/es/cascader/style/index.js +5 -1
- package/es/modal/style/css.js +3 -1
- package/es/modal/style/index.d.ts +1 -0
- package/es/modal/style/index.js +3 -1
- package/es/modal/style/index.less +8 -8
- package/es/modal/style/mixin.less +12 -3
- package/es/progress/CircleProgress.js +3 -2
- package/es/progress/LineProgress.js +3 -2
- package/es/progress/index.js +3 -1
- package/es/progress/interface.d.ts +1 -0
- package/es/select/src/OptionList.d.ts +5 -4
- package/es/select/src/OptionList.js +12 -4
- package/es/select/src/generate.d.ts +1 -0
- package/es/select/src/generate.js +3 -1
- package/es/select/style/css.js +2 -1
- package/es/select/style/index.css +6 -0
- package/es/select/style/index.d.ts +1 -0
- package/es/select/style/index.js +2 -1
- package/es/select/style/index.less +6 -0
- package/es/tree/tree.js +6 -2
- package/es/upload/style/index.css +4 -2
- package/es/upload/style/index.less +7 -5
- package/lib/card/Card.js +4 -2
- package/lib/cascader/index.js +4 -2
- package/lib/cascader/style/css.js +9 -1
- package/lib/cascader/style/index.d.ts +4 -0
- package/lib/cascader/style/index.js +9 -1
- package/lib/modal/style/css.js +3 -1
- package/lib/modal/style/index.d.ts +1 -0
- package/lib/modal/style/index.js +3 -1
- package/lib/modal/style/index.less +8 -8
- package/lib/modal/style/mixin.less +12 -3
- package/lib/progress/CircleProgress.js +3 -2
- package/lib/progress/LineProgress.js +3 -2
- package/lib/progress/index.js +3 -1
- package/lib/progress/interface.d.ts +1 -0
- package/lib/select/src/OptionList.d.ts +5 -4
- package/lib/select/src/OptionList.js +12 -4
- package/lib/select/src/generate.d.ts +1 -0
- package/lib/select/src/generate.js +3 -1
- package/lib/select/style/css.js +3 -1
- package/lib/select/style/index.css +6 -0
- package/lib/select/style/index.d.ts +1 -0
- package/lib/select/style/index.js +3 -1
- package/lib/select/style/index.less +6 -0
- package/lib/tree/tree.js +6 -2
- package/lib/upload/style/index.css +4 -2
- package/lib/upload/style/index.less +7 -5
- package/package.json +1 -1
|
@@ -19,35 +19,35 @@
|
|
|
19
19
|
max-width: calc(100vw - 32px);
|
|
20
20
|
|
|
21
21
|
&-sm {
|
|
22
|
-
.modal-size-config(sm
|
|
22
|
+
.modal-size-config(sm);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&-sm > &-content {
|
|
26
|
-
.modal-size-config(sm
|
|
26
|
+
.modal-size-config-content(sm);
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&-md {
|
|
30
|
-
.modal-size-config(md
|
|
30
|
+
.modal-size-config(md);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
&-md > &-content {
|
|
34
|
-
.modal-size-config(md
|
|
34
|
+
.modal-size-config-content(md);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&-lg {
|
|
38
|
-
.modal-size-config(lg
|
|
38
|
+
.modal-size-config(lg);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&-lg > &-content {
|
|
42
|
-
.modal-size-config(lg
|
|
42
|
+
.modal-size-config-content(lg);
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
&-xl {
|
|
46
|
-
.modal-size-config(xl
|
|
46
|
+
.modal-size-config(xl);
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
&-xl > &-content {
|
|
50
|
-
.modal-size-config(xl
|
|
50
|
+
.modal-size-config-content(xl);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// 弹框内容
|
|
@@ -37,11 +37,20 @@
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
.modal-size
|
|
41
|
-
@width: ~'modal-width-@{type}';
|
|
40
|
+
.modal-size(@type) {
|
|
42
41
|
@min-height: ~'modal-height-@{type}';
|
|
43
42
|
@max-height: ~'modal-max-height-@{type}';
|
|
44
|
-
width: if(@content, 100%, @@width);
|
|
45
43
|
min-height: @@min-height;
|
|
46
44
|
max-height: @@max-height;
|
|
47
45
|
}
|
|
46
|
+
|
|
47
|
+
.modal-size-config-content(@type) {
|
|
48
|
+
width: 100%;
|
|
49
|
+
.modal-size(@type);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.modal-size-config(@type) {
|
|
53
|
+
@width: ~'modal-width-@{type}';
|
|
54
|
+
width: @@width;
|
|
55
|
+
.modal-size(@type);
|
|
56
|
+
}
|
|
@@ -31,6 +31,7 @@ var CircleProgress = function CircleProgress(_ref) {
|
|
|
31
31
|
status = _ref.status,
|
|
32
32
|
size = _ref.size,
|
|
33
33
|
strokeColor = _ref.strokeColor,
|
|
34
|
+
iconStrokeColor = _ref.iconStrokeColor,
|
|
34
35
|
_ref$infoType = _ref.infoType,
|
|
35
36
|
infoType = _ref$infoType === void 0 ? 'text' : _ref$infoType,
|
|
36
37
|
trailColor = _ref.trailColor,
|
|
@@ -96,13 +97,13 @@ var CircleProgress = function CircleProgress(_ref) {
|
|
|
96
97
|
ProgressLabel = /*#__PURE__*/_react["default"].createElement(_acudIcon.OutlinedCheck, {
|
|
97
98
|
className: labelClassNames,
|
|
98
99
|
width: iconWidth,
|
|
99
|
-
fill:
|
|
100
|
+
fill: iconStrokeColor
|
|
100
101
|
});
|
|
101
102
|
} else if (status === 'error') {
|
|
102
103
|
ProgressLabel = /*#__PURE__*/_react["default"].createElement(_acudIcon.OutlinedClose, {
|
|
103
104
|
className: labelClassNames,
|
|
104
105
|
width: iconWidth,
|
|
105
|
-
fill:
|
|
106
|
+
fill: iconStrokeColor
|
|
106
107
|
});
|
|
107
108
|
}
|
|
108
109
|
}
|
|
@@ -31,6 +31,7 @@ var LineProgress = function LineProgress(_ref) {
|
|
|
31
31
|
status = _ref.status,
|
|
32
32
|
size = _ref.size,
|
|
33
33
|
strokeColor = _ref.strokeColor,
|
|
34
|
+
iconStrokeColor = _ref.iconStrokeColor,
|
|
34
35
|
_ref$infoType = _ref.infoType,
|
|
35
36
|
infoType = _ref$infoType === void 0 ? 'text' : _ref$infoType,
|
|
36
37
|
trailColor = _ref.trailColor,
|
|
@@ -84,13 +85,13 @@ var LineProgress = function LineProgress(_ref) {
|
|
|
84
85
|
if (status === 'success') {
|
|
85
86
|
ProgressLabel = /*#__PURE__*/_react["default"].createElement(_acudIcon.MultiToneSuccess, {
|
|
86
87
|
className: labelClassNames,
|
|
87
|
-
color:
|
|
88
|
+
color: iconStrokeColor,
|
|
88
89
|
width: "16px"
|
|
89
90
|
});
|
|
90
91
|
} else if (status === 'error') {
|
|
91
92
|
ProgressLabel = /*#__PURE__*/_react["default"].createElement(_acudIcon.MultiToneError, {
|
|
92
93
|
className: labelClassNames,
|
|
93
|
-
color:
|
|
94
|
+
color: iconStrokeColor,
|
|
94
95
|
width: "16px"
|
|
95
96
|
});
|
|
96
97
|
}
|
package/lib/progress/index.js
CHANGED
|
@@ -74,7 +74,8 @@ var Progress = function Progress(_a) {
|
|
|
74
74
|
|
|
75
75
|
var status = customizeStatus in _common.statusColorMap ? customizeStatus : 'active'; // strokeColor取值异常时,将使用status对应的颜色
|
|
76
76
|
|
|
77
|
-
var strokeColor = (0, _common.isHexColor)(customizeStrokeColor) ? customizeStrokeColor :
|
|
77
|
+
var strokeColor = (0, _common.isHexColor)(customizeStrokeColor) ? customizeStrokeColor : '';
|
|
78
|
+
var iconStrokeColor = strokeColor || _common.statusColorMap[status]; // 解构进度100时的样式
|
|
78
79
|
|
|
79
80
|
var successStrokeColor = successStyle.strokeColor,
|
|
80
81
|
successTextColor = successStyle.textColor,
|
|
@@ -95,6 +96,7 @@ var Progress = function Progress(_a) {
|
|
|
95
96
|
size: size,
|
|
96
97
|
status: status,
|
|
97
98
|
strokeColor: strokeColor,
|
|
99
|
+
iconStrokeColor: iconStrokeColor,
|
|
98
100
|
textColor: textColor,
|
|
99
101
|
textSize: textSize,
|
|
100
102
|
labelText: labelText,
|
|
@@ -15,10 +15,11 @@ export interface OptionListProps<OptionsType extends object[]> {
|
|
|
15
15
|
notFoundContent?: React.ReactNode;
|
|
16
16
|
mode?: string;
|
|
17
17
|
menuItemSelectedIcon?: RenderNode;
|
|
18
|
-
childrenAsData
|
|
19
|
-
searchValue
|
|
20
|
-
virtual
|
|
21
|
-
|
|
18
|
+
childrenAsData?: boolean;
|
|
19
|
+
searchValue?: string;
|
|
20
|
+
virtual?: boolean;
|
|
21
|
+
keepExpand?: boolean;
|
|
22
|
+
defaultExpandGroupKey?: string[] | string | number[] | number | boolean;
|
|
22
23
|
renderEmpty?: (componentName?: string, des?: string | undefined) => React.ReactNode;
|
|
23
24
|
onSelect: (value: RawValueType, option: {
|
|
24
25
|
selected: boolean;
|
|
@@ -87,6 +87,8 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
87
87
|
mode = _ref.mode,
|
|
88
88
|
open = _ref.open,
|
|
89
89
|
virtual = _ref.virtual,
|
|
90
|
+
_ref$keepExpand = _ref.keepExpand,
|
|
91
|
+
keepExpand = _ref$keepExpand === void 0 ? false : _ref$keepExpand,
|
|
90
92
|
_ref$defaultExpandGro = _ref.defaultExpandGroupKey,
|
|
91
93
|
defaultExpandGroupKey = _ref$defaultExpandGro === void 0 ? false : _ref$defaultExpandGro,
|
|
92
94
|
renderEmpty = _ref.renderEmpty,
|
|
@@ -425,6 +427,8 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
425
427
|
e.stopPropagation();
|
|
426
428
|
};
|
|
427
429
|
|
|
430
|
+
var isKeepExpand = !multiple && keepExpand;
|
|
431
|
+
|
|
428
432
|
var renderOption = function renderOption(data, values, groupOption, label, itemIndex, groupKey) {
|
|
429
433
|
var _classNames;
|
|
430
434
|
|
|
@@ -442,7 +446,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
442
446
|
|
|
443
447
|
var selected = values.has(value);
|
|
444
448
|
var optionPrefixCls = "".concat(itemPrefixCls, "-option");
|
|
445
|
-
var optionClassName = (0, _classnames["default"])(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
449
|
+
var optionClassName = (0, _classnames["default"])(itemPrefixCls, optionPrefixCls, className, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-grouped"), groupOption), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-grouped-keep-expand"), isKeepExpand), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-active"), activeIndex === itemIndex && !disabled), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-disabled"), disabled), (0, _defineProperty2["default"])(_classNames, "".concat(optionPrefixCls, "-selected"), selected), _classNames));
|
|
446
450
|
var mergedLabel = childrenAsData ? children : label; // const iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === 'function' || selected;
|
|
447
451
|
|
|
448
452
|
var content = mergedLabel || value;
|
|
@@ -470,7 +474,7 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
470
474
|
}
|
|
471
475
|
},
|
|
472
476
|
style: (0, _extends2["default"])({
|
|
473
|
-
display: groupOption && !expandGroupKey.includes(groupKey) ? 'none' : ''
|
|
477
|
+
display: groupOption && !expandGroupKey.includes(groupKey) && !isKeepExpand ? 'none' : ''
|
|
474
478
|
}, style)
|
|
475
479
|
}), multiple && /*#__PURE__*/React.createElement(_checkbox["default"], {
|
|
476
480
|
checked: selected,
|
|
@@ -527,14 +531,18 @@ var OptionList = function OptionList(_ref, ref) {
|
|
|
527
531
|
|
|
528
532
|
if (group) {
|
|
529
533
|
return /*#__PURE__*/React.createElement("div", {
|
|
530
|
-
className: (0, _classnames["default"])(itemPrefixCls, "".concat(itemPrefixCls, "-group")),
|
|
534
|
+
className: (0, _classnames["default"])(itemPrefixCls, "".concat(itemPrefixCls, "-group"), (0, _defineProperty2["default"])({}, "".concat(itemPrefixCls, "-group-keep-expand"), isKeepExpand)),
|
|
531
535
|
onClick: function onClick() {
|
|
536
|
+
if (isKeepExpand) {
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
|
|
532
540
|
var gIndex = expandGroupKey.indexOf(key);
|
|
533
541
|
var newGroupKey = (0, _toConsumableArray2["default"])(expandGroupKey);
|
|
534
542
|
gIndex !== -1 ? newGroupKey.splice(gIndex, 1) : newGroupKey.push(key);
|
|
535
543
|
setExpandGroupKey(newGroupKey);
|
|
536
544
|
}
|
|
537
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
545
|
+
}, !isKeepExpand && /*#__PURE__*/React.createElement("span", {
|
|
538
546
|
className: "".concat(itemPrefixCls, "-group-arrow")
|
|
539
547
|
}, expandGroupKey.includes(key) ? /*#__PURE__*/React.createElement(_acudIcon.OutlinedDown, null) : /*#__PURE__*/React.createElement(_acudIcon.OutlinedRight, null)), multiple && /*#__PURE__*/React.createElement(_checkbox["default"], {
|
|
540
548
|
className: "".concat(itemPrefixCls, "-group-checkbox"),
|
|
@@ -81,6 +81,7 @@ export interface SelectProps<OptionsType extends object[], ValueType> extends Re
|
|
|
81
81
|
showAction?: ('focus' | 'click')[];
|
|
82
82
|
tabIndex?: number;
|
|
83
83
|
renderEmpty?: (componentName?: string, des?: string | undefined) => React.ReactNode;
|
|
84
|
+
keepExpand?: boolean;
|
|
84
85
|
defaultExpandGroupKey?: string[] | string | number[] | number | boolean;
|
|
85
86
|
onKeyUp?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
86
87
|
onKeyDown?: React.KeyboardEventHandler<HTMLDivElement>;
|
|
@@ -153,6 +153,7 @@ function generateSelector(config) {
|
|
|
153
153
|
tokenSeparators = props.tokenSeparators,
|
|
154
154
|
tagRender = props.tagRender,
|
|
155
155
|
renderEmpty = props.renderEmpty,
|
|
156
|
+
keepExpand = props.keepExpand,
|
|
156
157
|
defaultExpandGroupKey = props.defaultExpandGroupKey,
|
|
157
158
|
onPopupScroll = props.onPopupScroll,
|
|
158
159
|
onDropdownVisibleChange = props.onDropdownVisibleChange,
|
|
@@ -167,7 +168,7 @@ function generateSelector(config) {
|
|
|
167
168
|
onClear = props.onClear,
|
|
168
169
|
_props$internalProps = props.internalProps,
|
|
169
170
|
internalProps = _props$internalProps === void 0 ? {} : _props$internalProps,
|
|
170
|
-
restProps = __rest(props, ["prefixCls", "className", "id", "open", "defaultOpen", "options", "children", "mode", "value", "defaultValue", "labelInValue", "showSearch", "inputValue", "searchValue", "filterOption", "filterSort", "optionFilterProp", "autoClearSearchValue", "onSearch", "suffixIconPre", "removeIcon", "allowClear", "clearIcon", "showArrow", "menuItemSelectedIcon", "disabled", "loading", "defaultActiveFirstOption", "notFoundContent", "optionLabelProp", "backfill", "tabIndex", "getInputElement", "getPopupContainer", "listHeight", "listItemHeight", "animation", "transitionName", "virtual", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "renderEmpty", "defaultExpandGroupKey", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown", "onChange", "onSelect", "onDeselect", "onClear", "internalProps"]);
|
|
171
|
+
restProps = __rest(props, ["prefixCls", "className", "id", "open", "defaultOpen", "options", "children", "mode", "value", "defaultValue", "labelInValue", "showSearch", "inputValue", "searchValue", "filterOption", "filterSort", "optionFilterProp", "autoClearSearchValue", "onSearch", "suffixIconPre", "removeIcon", "allowClear", "clearIcon", "showArrow", "menuItemSelectedIcon", "disabled", "loading", "defaultActiveFirstOption", "notFoundContent", "optionLabelProp", "backfill", "tabIndex", "getInputElement", "getPopupContainer", "listHeight", "listItemHeight", "animation", "transitionName", "virtual", "dropdownStyle", "dropdownClassName", "dropdownMatchSelectWidth", "dropdownRender", "dropdownAlign", "showAction", "direction", "tokenSeparators", "tagRender", "renderEmpty", "keepExpand", "defaultExpandGroupKey", "onPopupScroll", "onDropdownVisibleChange", "onFocus", "onBlur", "onKeyUp", "onKeyDown", "onMouseDown", "onChange", "onSelect", "onDeselect", "onClear", "internalProps"]);
|
|
171
172
|
|
|
172
173
|
var useInternalProps = internalProps.mark === _generator.INTERNAL_PROPS_MARK;
|
|
173
174
|
var domProps = omitDOMProps ? omitDOMProps(restProps) : restProps;
|
|
@@ -815,6 +816,7 @@ function generateSelector(config) {
|
|
|
815
816
|
defaultActiveFirstOption: mergedDefaultActiveFirstOption,
|
|
816
817
|
notFoundContent: notFoundContent,
|
|
817
818
|
renderEmpty: renderEmpty,
|
|
819
|
+
keepExpand: keepExpand,
|
|
818
820
|
defaultExpandGroupKey: defaultExpandGroupKey,
|
|
819
821
|
onScroll: onPopupScroll,
|
|
820
822
|
searchValue: mergedSearchValue,
|
package/lib/select/style/css.js
CHANGED
|
@@ -674,6 +674,9 @@
|
|
|
674
674
|
.acud-select-item-group-checkbox {
|
|
675
675
|
margin-right: 8px;
|
|
676
676
|
}
|
|
677
|
+
.acud-select-item-group.acud-select-item-group-keep-expand {
|
|
678
|
+
color: #B8BABF;
|
|
679
|
+
}
|
|
677
680
|
.acud-select-item-option {
|
|
678
681
|
display: flex;
|
|
679
682
|
}
|
|
@@ -704,6 +707,9 @@
|
|
|
704
707
|
.acud-select-item-option-grouped {
|
|
705
708
|
padding-left: 48px;
|
|
706
709
|
}
|
|
710
|
+
.acud-select-item-option-grouped.acud-select-item-option-grouped-keep-expand {
|
|
711
|
+
padding-left: 24px;
|
|
712
|
+
}
|
|
707
713
|
.acud-select-lg {
|
|
708
714
|
font-size: 14px;
|
|
709
715
|
}
|
|
@@ -287,6 +287,9 @@
|
|
|
287
287
|
&-checkbox {
|
|
288
288
|
margin-right: 2 * @P;
|
|
289
289
|
}
|
|
290
|
+
&&-keep-expand {
|
|
291
|
+
color: @G6;
|
|
292
|
+
}
|
|
290
293
|
}
|
|
291
294
|
|
|
292
295
|
// =========== Option ===========
|
|
@@ -328,6 +331,9 @@
|
|
|
328
331
|
|
|
329
332
|
&-grouped {
|
|
330
333
|
padding-left: 12 * @P;
|
|
334
|
+
&&-keep-expand {
|
|
335
|
+
padding-left: 6 * @P;
|
|
336
|
+
}
|
|
331
337
|
}
|
|
332
338
|
// .basic-config-select-item(@select-dropdown-default-tp, @select-dropdown-default-p);
|
|
333
339
|
}
|
package/lib/tree/tree.js
CHANGED
|
@@ -381,6 +381,11 @@ var Tree = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
381
381
|
|
|
382
382
|
if (treeDataOrigin) {
|
|
383
383
|
newProps.treeData = formatedTreeData;
|
|
384
|
+
} // expandedKeys和defaultExpandAll冲突需动态赋值
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
if (expandedKeys.length) {
|
|
388
|
+
newProps.expandedKeys = expandedKeys;
|
|
384
389
|
}
|
|
385
390
|
|
|
386
391
|
(0, _react.useEffect)(function () {
|
|
@@ -391,7 +396,7 @@ var Tree = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
391
396
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, searchable && /*#__PURE__*/_react["default"].createElement(_input["default"], {
|
|
392
397
|
className: "".concat(prefixCls, "-search-input"),
|
|
393
398
|
onChange: onSearchInputChange
|
|
394
|
-
}), !expandedKeys.length && searchText ? "\u672A\u627E\u5230\u4E0E".concat(searchText, "\u76F8\u5173\u7684\u7ED3\u679C") : /*#__PURE__*/_react["default"].createElement(_rcTree["default"], (0, _extends2["default"])({
|
|
399
|
+
}), !expandedKeys.length && searchText ? "\u672A\u627E\u5230\u4E0E".concat(searchText, "\u76F8\u5173\u7684\u7ED3\u679C") : (!treeDataOrigin || !!formatedTreeData.length) && /*#__PURE__*/_react["default"].createElement(_rcTree["default"], (0, _extends2["default"])({
|
|
395
400
|
ref: treeRef
|
|
396
401
|
}, newProps, {
|
|
397
402
|
className: classes,
|
|
@@ -402,7 +407,6 @@ var Tree = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
|
402
407
|
checkable: checkable ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
403
408
|
className: "".concat(prefixCls, "-checkbox-inner")
|
|
404
409
|
}) : checkable,
|
|
405
|
-
expandedKeys: expandedKeys,
|
|
406
410
|
autoExpandParent: autoExpandParent,
|
|
407
411
|
switcherIcon: function switcherIcon(nodeProps) {
|
|
408
412
|
return (0, _iconHelper.renderSwitcherIcon)(prefixCls, nodeProps);
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
border-color: #144BCC;
|
|
131
131
|
}
|
|
132
132
|
.acud-upload.acud-upload-drag.acud-upload-disabled {
|
|
133
|
-
background: #
|
|
133
|
+
background: #F7F7F9;
|
|
134
134
|
cursor: not-allowed;
|
|
135
135
|
}
|
|
136
136
|
.acud-upload.acud-upload-drag .acud-upload-btn {
|
|
@@ -546,9 +546,11 @@
|
|
|
546
546
|
.acud-upload-list-picture-card .acud-upload-list-item-progress {
|
|
547
547
|
position: absolute;
|
|
548
548
|
top: 44px;
|
|
549
|
+
left: 50%;
|
|
549
550
|
padding-left: 8px;
|
|
550
551
|
padding-right: 8px;
|
|
551
|
-
width:
|
|
552
|
+
width: 96px;
|
|
553
|
+
transform: translateX(-50%);
|
|
552
554
|
}
|
|
553
555
|
.acud-upload-list-text-container,
|
|
554
556
|
.acud-upload-list-picture-container {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
&.@{upload-prefix-cls}-disabled {
|
|
107
|
-
background: @
|
|
107
|
+
background: @G10;
|
|
108
108
|
cursor: not-allowed;
|
|
109
109
|
}
|
|
110
110
|
|
|
@@ -540,10 +540,12 @@
|
|
|
540
540
|
|
|
541
541
|
.@{upload-item}-progress {
|
|
542
542
|
position: absolute;
|
|
543
|
-
top:
|
|
544
|
-
|
|
545
|
-
padding-
|
|
546
|
-
|
|
543
|
+
top: 11 * @P;
|
|
544
|
+
left: 50%;
|
|
545
|
+
padding-left: 2 * @P;
|
|
546
|
+
padding-right: 2 * @P;
|
|
547
|
+
width: 24 * @P;
|
|
548
|
+
transform: translateX(-50%);
|
|
547
549
|
}
|
|
548
550
|
}
|
|
549
551
|
|