acud 0.0.73 → 0.0.74
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 +5 -3
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +783 -438
- 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 +6 -6
- package/dist/acud.min.js.map +1 -1
- package/es/card/Card.js +4 -2
- package/es/cascader/index.js +3 -2
- 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/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/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/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
- package/CHANGELOG.md +0 -4
package/es/card/Card.js
CHANGED
|
@@ -78,7 +78,9 @@ var Card = function Card(_a) {
|
|
|
78
78
|
hoverable = _a.hoverable,
|
|
79
79
|
_a$tabProps = _a.tabProps,
|
|
80
80
|
tabProps = _a$tabProps === void 0 ? {} : _a$tabProps,
|
|
81
|
-
|
|
81
|
+
_a$className = _a.className,
|
|
82
|
+
className = _a$className === void 0 ? '' : _a$className,
|
|
83
|
+
restProps = __rest(_a, ["prefixCls", "simple", "description", "disabled", "footerExtra", "footerStyle", "children", "loading", "headStyle", "bodyStyle", "style", "bordered", "type", "title", "extra", "cover", "actions", "actionsExtra", "multiMedia", "multiMediaPosition", "tabList", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "className"]);
|
|
82
84
|
|
|
83
85
|
var _React$useContext = React.useContext(ConfigContext),
|
|
84
86
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -226,7 +228,7 @@ var Card = function Card(_a) {
|
|
|
226
228
|
}, multiMedia), /*#__PURE__*/React.createElement("div", {
|
|
227
229
|
className: "".concat(cardPrefixCls, "-con-wrap ").concat(multiMedia ? "".concat(multiMediaPosition === 'left' ? 'right' : 'left') : '')
|
|
228
230
|
}, head, coverDom, body, footer, actionRender));
|
|
229
|
-
var classString = classNames(cardPrefixCls, (_classNames3 = {}, _defineProperty(_classNames3, "".concat(cardPrefixCls, "-loading"), loading), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-bordered"), bordered), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-hoverable"), hoverable), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-contain-grid"), isContainGrid()), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-contain-tabs"), tabList && tabList.length), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-type-").concat(type), !!type), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-simple"), simple), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-selected"), isSelected), _classNames3));
|
|
231
|
+
var classString = classNames(cardPrefixCls, (_classNames3 = {}, _defineProperty(_classNames3, "".concat(cardPrefixCls, "-loading"), loading), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-bordered"), bordered), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-hoverable"), hoverable), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-contain-grid"), isContainGrid()), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-contain-tabs"), tabList && tabList.length), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-type-").concat(type), !!type), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-rtl"), direction === 'rtl'), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-simple"), simple), _defineProperty(_classNames3, "".concat(cardPrefixCls, "-selected"), isSelected), _defineProperty(_classNames3, className, !!className), _classNames3));
|
|
230
232
|
return /*#__PURE__*/React.createElement("div", {
|
|
231
233
|
className: classString,
|
|
232
234
|
disabled: simple && disabled,
|
package/es/cascader/index.js
CHANGED
|
@@ -21,6 +21,7 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
21
21
|
};
|
|
22
22
|
|
|
23
23
|
import get from 'lodash/get';
|
|
24
|
+
import map from 'lodash/map';
|
|
24
25
|
import first from 'lodash/first';
|
|
25
26
|
import isEqual from 'lodash/isEqual';
|
|
26
27
|
import React, { useImperativeHandle, forwardRef, useRef, useCallback, useMemo, useState, useEffect, useLayoutEffect, Fragment } from 'react';
|
|
@@ -400,7 +401,7 @@ var Cascader = function Cascader(props, ref) {
|
|
|
400
401
|
var names = getFilledFieldNames(props);
|
|
401
402
|
|
|
402
403
|
if (isMulti) {
|
|
403
|
-
var _selectedOptions =
|
|
404
|
+
var _selectedOptions = map(value, function (valueItem) {
|
|
404
405
|
return arrayTreeFilter(options, function (o, level) {
|
|
405
406
|
return o[names.value] === valueItem[level];
|
|
406
407
|
}, {
|
|
@@ -414,7 +415,7 @@ var Cascader = function Cascader(props, ref) {
|
|
|
414
415
|
});
|
|
415
416
|
}) : value;
|
|
416
417
|
|
|
417
|
-
return
|
|
418
|
+
return map(_label, function (labelItem) {
|
|
418
419
|
return displayRender(labelItem, _selectedOptions);
|
|
419
420
|
});
|
|
420
421
|
}
|
|
@@ -18,6 +18,7 @@ var CircleProgress = function CircleProgress(_ref) {
|
|
|
18
18
|
status = _ref.status,
|
|
19
19
|
size = _ref.size,
|
|
20
20
|
strokeColor = _ref.strokeColor,
|
|
21
|
+
iconStrokeColor = _ref.iconStrokeColor,
|
|
21
22
|
_ref$infoType = _ref.infoType,
|
|
22
23
|
infoType = _ref$infoType === void 0 ? 'text' : _ref$infoType,
|
|
23
24
|
trailColor = _ref.trailColor,
|
|
@@ -82,13 +83,13 @@ var CircleProgress = function CircleProgress(_ref) {
|
|
|
82
83
|
ProgressLabel = /*#__PURE__*/React.createElement(OutlinedCheck, {
|
|
83
84
|
className: labelClassNames,
|
|
84
85
|
width: iconWidth,
|
|
85
|
-
fill:
|
|
86
|
+
fill: iconStrokeColor
|
|
86
87
|
});
|
|
87
88
|
} else if (status === 'error') {
|
|
88
89
|
ProgressLabel = /*#__PURE__*/React.createElement(OutlinedClose, {
|
|
89
90
|
className: labelClassNames,
|
|
90
91
|
width: iconWidth,
|
|
91
|
-
fill:
|
|
92
|
+
fill: iconStrokeColor
|
|
92
93
|
});
|
|
93
94
|
}
|
|
94
95
|
}
|
|
@@ -19,6 +19,7 @@ var LineProgress = function LineProgress(_ref) {
|
|
|
19
19
|
status = _ref.status,
|
|
20
20
|
size = _ref.size,
|
|
21
21
|
strokeColor = _ref.strokeColor,
|
|
22
|
+
iconStrokeColor = _ref.iconStrokeColor,
|
|
22
23
|
_ref$infoType = _ref.infoType,
|
|
23
24
|
infoType = _ref$infoType === void 0 ? 'text' : _ref$infoType,
|
|
24
25
|
trailColor = _ref.trailColor,
|
|
@@ -70,13 +71,13 @@ var LineProgress = function LineProgress(_ref) {
|
|
|
70
71
|
if (status === 'success') {
|
|
71
72
|
ProgressLabel = /*#__PURE__*/React.createElement(MultiToneSuccess, {
|
|
72
73
|
className: labelClassNames,
|
|
73
|
-
color:
|
|
74
|
+
color: iconStrokeColor,
|
|
74
75
|
width: "16px"
|
|
75
76
|
});
|
|
76
77
|
} else if (status === 'error') {
|
|
77
78
|
ProgressLabel = /*#__PURE__*/React.createElement(MultiToneError, {
|
|
78
79
|
className: labelClassNames,
|
|
79
|
-
color:
|
|
80
|
+
color: iconStrokeColor,
|
|
80
81
|
width: "16px"
|
|
81
82
|
});
|
|
82
83
|
}
|
package/es/progress/index.js
CHANGED
|
@@ -54,7 +54,8 @@ var Progress = function Progress(_a) {
|
|
|
54
54
|
|
|
55
55
|
var status = customizeStatus in statusColorMap ? customizeStatus : 'active'; // strokeColor取值异常时,将使用status对应的颜色
|
|
56
56
|
|
|
57
|
-
var strokeColor = isHexColor(customizeStrokeColor) ? customizeStrokeColor :
|
|
57
|
+
var strokeColor = isHexColor(customizeStrokeColor) ? customizeStrokeColor : '';
|
|
58
|
+
var iconStrokeColor = strokeColor || statusColorMap[status]; // 解构进度100时的样式
|
|
58
59
|
|
|
59
60
|
var successStrokeColor = successStyle.strokeColor,
|
|
60
61
|
successTextColor = successStyle.textColor,
|
|
@@ -75,6 +76,7 @@ var Progress = function Progress(_a) {
|
|
|
75
76
|
size: size,
|
|
76
77
|
status: status,
|
|
77
78
|
strokeColor: strokeColor,
|
|
79
|
+
iconStrokeColor: iconStrokeColor,
|
|
78
80
|
textColor: textColor,
|
|
79
81
|
textSize: textSize,
|
|
80
82
|
labelText: labelText,
|
package/es/tree/tree.js
CHANGED
|
@@ -352,6 +352,11 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
352
352
|
|
|
353
353
|
if (treeDataOrigin) {
|
|
354
354
|
newProps.treeData = formatedTreeData;
|
|
355
|
+
} // expandedKeys和defaultExpandAll冲突需动态赋值
|
|
356
|
+
|
|
357
|
+
|
|
358
|
+
if (expandedKeys.length) {
|
|
359
|
+
newProps.expandedKeys = expandedKeys;
|
|
355
360
|
}
|
|
356
361
|
|
|
357
362
|
useEffect(function () {
|
|
@@ -362,7 +367,7 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
362
367
|
return /*#__PURE__*/React.createElement(React.Fragment, null, searchable && /*#__PURE__*/React.createElement(Input, {
|
|
363
368
|
className: "".concat(prefixCls, "-search-input"),
|
|
364
369
|
onChange: onSearchInputChange
|
|
365
|
-
}), !expandedKeys.length && searchText ? "\u672A\u627E\u5230\u4E0E".concat(searchText, "\u76F8\u5173\u7684\u7ED3\u679C") : /*#__PURE__*/React.createElement(RcTree, _extends({
|
|
370
|
+
}), !expandedKeys.length && searchText ? "\u672A\u627E\u5230\u4E0E".concat(searchText, "\u76F8\u5173\u7684\u7ED3\u679C") : (!treeDataOrigin || !!formatedTreeData.length) && /*#__PURE__*/React.createElement(RcTree, _extends({
|
|
366
371
|
ref: treeRef
|
|
367
372
|
}, newProps, {
|
|
368
373
|
className: classes,
|
|
@@ -373,7 +378,6 @@ var Tree = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
373
378
|
checkable: checkable ? /*#__PURE__*/React.createElement("span", {
|
|
374
379
|
className: "".concat(prefixCls, "-checkbox-inner")
|
|
375
380
|
}) : checkable,
|
|
376
|
-
expandedKeys: expandedKeys,
|
|
377
381
|
autoExpandParent: autoExpandParent,
|
|
378
382
|
switcherIcon: function switcherIcon(nodeProps) {
|
|
379
383
|
return 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
|
|
package/lib/card/Card.js
CHANGED
|
@@ -105,7 +105,9 @@ var Card = function Card(_a) {
|
|
|
105
105
|
hoverable = _a.hoverable,
|
|
106
106
|
_a$tabProps = _a.tabProps,
|
|
107
107
|
tabProps = _a$tabProps === void 0 ? {} : _a$tabProps,
|
|
108
|
-
|
|
108
|
+
_a$className = _a.className,
|
|
109
|
+
className = _a$className === void 0 ? '' : _a$className,
|
|
110
|
+
restProps = __rest(_a, ["prefixCls", "simple", "description", "disabled", "footerExtra", "footerStyle", "children", "loading", "headStyle", "bodyStyle", "style", "bordered", "type", "title", "extra", "cover", "actions", "actionsExtra", "multiMedia", "multiMediaPosition", "tabList", "activeTabKey", "defaultActiveTabKey", "tabBarExtraContent", "hoverable", "tabProps", "className"]);
|
|
109
111
|
|
|
110
112
|
var _React$useContext = _react["default"].useContext(_configProvider.ConfigContext),
|
|
111
113
|
getPrefixCls = _React$useContext.getPrefixCls,
|
|
@@ -258,7 +260,7 @@ var Card = function Card(_a) {
|
|
|
258
260
|
className: "".concat(cardPrefixCls, "-con-wrap ").concat(multiMedia ? "".concat(multiMediaPosition === 'left' ? 'right' : 'left') : '')
|
|
259
261
|
}, head, coverDom, body, footer, actionRender));
|
|
260
262
|
|
|
261
|
-
var classString = (0, _classnames["default"])(cardPrefixCls, (_classNames3 = {}, (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-loading"), loading), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-bordered"), bordered), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-hoverable"), hoverable), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-contain-grid"), isContainGrid()), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-contain-tabs"), tabList && tabList.length), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-type-").concat(type), !!type), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-rtl"), direction === 'rtl'), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-simple"), simple), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-selected"), isSelected), _classNames3));
|
|
263
|
+
var classString = (0, _classnames["default"])(cardPrefixCls, (_classNames3 = {}, (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-loading"), loading), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-bordered"), bordered), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-hoverable"), hoverable), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-contain-grid"), isContainGrid()), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-contain-tabs"), tabList && tabList.length), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-type-").concat(type), !!type), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-rtl"), direction === 'rtl'), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-simple"), simple), (0, _defineProperty2["default"])(_classNames3, "".concat(cardPrefixCls, "-selected"), isSelected), (0, _defineProperty2["default"])(_classNames3, className, !!className), _classNames3));
|
|
262
264
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
263
265
|
className: classString,
|
|
264
266
|
disabled: simple && disabled,
|
package/lib/cascader/index.js
CHANGED
|
@@ -19,6 +19,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
19
19
|
|
|
20
20
|
var _get = _interopRequireDefault(require("lodash/get"));
|
|
21
21
|
|
|
22
|
+
var _map = _interopRequireDefault(require("lodash/map"));
|
|
23
|
+
|
|
22
24
|
var _first = _interopRequireDefault(require("lodash/first"));
|
|
23
25
|
|
|
24
26
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
@@ -444,7 +446,7 @@ var Cascader = function Cascader(props, ref) {
|
|
|
444
446
|
var names = getFilledFieldNames(props);
|
|
445
447
|
|
|
446
448
|
if (isMulti) {
|
|
447
|
-
var _selectedOptions = value
|
|
449
|
+
var _selectedOptions = (0, _map["default"])(value, function (valueItem) {
|
|
448
450
|
return (0, _arrayTreeFilter["default"])(options, function (o, level) {
|
|
449
451
|
return o[names.value] === valueItem[level];
|
|
450
452
|
}, {
|
|
@@ -458,7 +460,7 @@ var Cascader = function Cascader(props, ref) {
|
|
|
458
460
|
});
|
|
459
461
|
}) : value;
|
|
460
462
|
|
|
461
|
-
return _label
|
|
463
|
+
return (0, _map["default"])(_label, function (labelItem) {
|
|
462
464
|
return displayRender(labelItem, _selectedOptions);
|
|
463
465
|
});
|
|
464
466
|
}
|
|
@@ -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,
|
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
|
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED