acud 0.0.71 → 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 +2062 -2008
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +502 -296
- 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/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/input/AutoComplete.d.ts +12 -0
- package/es/input/AutoComplete.js +53 -0
- package/es/input/TextArea.d.ts +1 -1
- package/es/input/TextArea.js +4 -4
- package/es/input/index.d.ts +2 -0
- package/es/input/index.js +2 -0
- package/es/input/style/index.css +53 -1
- package/es/input/style/index.less +63 -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/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/index.d.ts +1 -1
- package/es/select/style/css.js +2 -1
- package/es/select/style/index.d.ts +1 -0
- package/es/select/style/index.js +2 -1
- 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/input/AutoComplete.d.ts +12 -0
- package/lib/input/AutoComplete.js +72 -0
- package/lib/input/TextArea.d.ts +1 -1
- package/lib/input/TextArea.js +4 -2
- package/lib/input/index.d.ts +2 -0
- package/lib/input/index.js +3 -0
- package/lib/input/style/index.css +53 -1
- package/lib/input/style/index.less +63 -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/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/index.d.ts +1 -1
- package/lib/select/style/css.js +3 -1
- package/lib/select/style/index.d.ts +1 -0
- package/lib/select/style/index.js +3 -1
- 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
|
@@ -6,4 +6,12 @@ require("./index.less");
|
|
|
6
6
|
|
|
7
7
|
require("../../empty/style");
|
|
8
8
|
|
|
9
|
-
require("../../input/style");
|
|
9
|
+
require("../../input/style");
|
|
10
|
+
|
|
11
|
+
require("../../tag/style");
|
|
12
|
+
|
|
13
|
+
require("../../tooltip/style");
|
|
14
|
+
|
|
15
|
+
require("../../clear/style");
|
|
16
|
+
|
|
17
|
+
require("../../checkbox/style");
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InternalSelectProps, SelectInterface } from '../select';
|
|
3
|
+
export interface AutoCompleteProps<ValueType = any> extends Omit<InternalSelectProps<ValueType>, 'inputIcon' | 'loading' | 'mode' | 'optionLabelProp' | 'labelInValue'> {
|
|
4
|
+
}
|
|
5
|
+
declare const RefAutoComplete: (<ValueType = any>(props: AutoCompleteProps<ValueType> & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
} & {
|
|
8
|
+
ref?: React.Ref<SelectInterface>;
|
|
9
|
+
}) => React.ReactElement) & {
|
|
10
|
+
Option: import("../select/src/Option").OptionFC;
|
|
11
|
+
};
|
|
12
|
+
export default RefAutoComplete;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports["default"] = void 0;
|
|
9
|
+
|
|
10
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
+
|
|
12
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
|
+
|
|
14
|
+
var _react = _interopRequireDefault(require("react"));
|
|
15
|
+
|
|
16
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
17
|
+
|
|
18
|
+
var _select = _interopRequireDefault(require("../select"));
|
|
19
|
+
|
|
20
|
+
var _reactNode = require("../_util/reactNode");
|
|
21
|
+
|
|
22
|
+
var _toArray = _interopRequireDefault(require("rc-util/lib/Children/toArray"));
|
|
23
|
+
|
|
24
|
+
var Option = _select["default"].Option;
|
|
25
|
+
|
|
26
|
+
function isSelectOptionOrSelectOptGroup(child) {
|
|
27
|
+
return child && child.type && (child.type.isSelectOption || child.type.isSelectOptGroup);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var AutoComplete = function AutoComplete(props, ref) {
|
|
31
|
+
var _props$prefixCls = props.prefixCls,
|
|
32
|
+
prefixCls = _props$prefixCls === void 0 ? 'acud-select' : _props$prefixCls,
|
|
33
|
+
className = props.className,
|
|
34
|
+
children = props.children;
|
|
35
|
+
var childNodes = (0, _toArray["default"])(children); // ============================= Input =============================
|
|
36
|
+
|
|
37
|
+
var customizeInput;
|
|
38
|
+
|
|
39
|
+
if (childNodes.length === 1 && (0, _reactNode.isValidElement)(childNodes[0]) && !isSelectOptionOrSelectOptGroup(childNodes[0])) {
|
|
40
|
+
var _childNodes = (0, _slicedToArray2["default"])(childNodes, 1);
|
|
41
|
+
|
|
42
|
+
customizeInput = _childNodes[0];
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
var getInputElement = customizeInput ? function () {
|
|
46
|
+
return customizeInput;
|
|
47
|
+
} : undefined; // ============================ Options ============================
|
|
48
|
+
|
|
49
|
+
var optionChildren;
|
|
50
|
+
|
|
51
|
+
if (childNodes.length && isSelectOptionOrSelectOptGroup(childNodes[0])) {
|
|
52
|
+
optionChildren = children;
|
|
53
|
+
} else {
|
|
54
|
+
optionChildren = [];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return /*#__PURE__*/_react["default"].createElement(_select["default"], (0, _extends2["default"])({
|
|
58
|
+
ref: ref
|
|
59
|
+
}, props, {
|
|
60
|
+
prefixCls: prefixCls,
|
|
61
|
+
className: (0, _classnames["default"])("".concat(prefixCls, "-auto-complete"), className),
|
|
62
|
+
mode: _select["default"].SECRET_COMBOBOX_MODE_DO_NOT_USE,
|
|
63
|
+
getInputElement: getInputElement
|
|
64
|
+
}), optionChildren);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
var RefAutoComplete = /*#__PURE__*/_react["default"].forwardRef(AutoComplete);
|
|
68
|
+
|
|
69
|
+
RefAutoComplete.Option = Option;
|
|
70
|
+
var _default = RefAutoComplete; // export default AutoComplete;
|
|
71
|
+
|
|
72
|
+
exports["default"] = _default;
|
package/lib/input/TextArea.d.ts
CHANGED
|
@@ -17,5 +17,5 @@ export interface TextAreaProps {
|
|
|
17
17
|
readonly?: boolean;
|
|
18
18
|
allowClear?: boolean;
|
|
19
19
|
}
|
|
20
|
-
declare const TextArea: React.
|
|
20
|
+
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<unknown>>;
|
|
21
21
|
export default TextArea;
|
package/lib/input/TextArea.js
CHANGED
|
@@ -49,7 +49,8 @@ var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
|
49
49
|
*/
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
// const TextArea:React.FC<TextAreaProps> = props => {
|
|
53
|
+
var TextArea = /*#__PURE__*/_react["default"].forwardRef(function (props, ref) {
|
|
53
54
|
var _classNames;
|
|
54
55
|
|
|
55
56
|
var _props$prefixCls = props.prefixCls,
|
|
@@ -157,6 +158,7 @@ var TextArea = function TextArea(props) {
|
|
|
157
158
|
className: "".concat(prefixCls, "-outer"),
|
|
158
159
|
style: style
|
|
159
160
|
}, /*#__PURE__*/_react["default"].createElement(_rcTextarea["default"], (0, _extends2["default"])({}, rest, {
|
|
161
|
+
ref: ref,
|
|
160
162
|
placeholder: placeholder,
|
|
161
163
|
className: (0, _classnames["default"])(classes),
|
|
162
164
|
onChange: handleOnChange,
|
|
@@ -178,7 +180,7 @@ var TextArea = function TextArea(props) {
|
|
|
178
180
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
179
181
|
className: (0, _classnames["default"])(limitClassName, 'limit')
|
|
180
182
|
}, currentLength, "/", limitLength)));
|
|
181
|
-
};
|
|
183
|
+
});
|
|
182
184
|
|
|
183
185
|
var _default = TextArea;
|
|
184
186
|
exports["default"] = _default;
|
package/lib/input/index.d.ts
CHANGED
|
@@ -4,11 +4,13 @@ import Label from './Label';
|
|
|
4
4
|
import TextArea from './TextArea';
|
|
5
5
|
import Password from './Password';
|
|
6
6
|
import MultiSelectInput from './MultiSelectInput';
|
|
7
|
+
import AutoComplete from './AutoComplete';
|
|
7
8
|
interface CompoundedComponent extends React.ForwardRefExoticComponent<BaseInputProps & React.RefAttributes<HTMLInputElement>> {
|
|
8
9
|
Label: typeof Label;
|
|
9
10
|
TextArea: typeof TextArea;
|
|
10
11
|
Password: typeof Password;
|
|
11
12
|
MultiSelectInput: typeof MultiSelectInput;
|
|
13
|
+
AutoComplete: typeof AutoComplete;
|
|
12
14
|
__ACUD_CHECKBOX: boolean;
|
|
13
15
|
}
|
|
14
16
|
declare const Input: CompoundedComponent;
|
package/lib/input/index.js
CHANGED
|
@@ -17,10 +17,13 @@ var _Password = _interopRequireDefault(require("./Password"));
|
|
|
17
17
|
|
|
18
18
|
var _MultiSelectInput = _interopRequireDefault(require("./MultiSelectInput"));
|
|
19
19
|
|
|
20
|
+
var _AutoComplete = _interopRequireDefault(require("./AutoComplete"));
|
|
21
|
+
|
|
20
22
|
var Input = _Input["default"];
|
|
21
23
|
Input.Label = _Label["default"];
|
|
22
24
|
Input.TextArea = _TextArea["default"];
|
|
23
25
|
Input.Password = _Password["default"];
|
|
24
26
|
Input.MultiSelectInput = _MultiSelectInput["default"];
|
|
27
|
+
Input.AutoComplete = _AutoComplete["default"];
|
|
25
28
|
var _default = Input;
|
|
26
29
|
exports["default"] = _default;
|
|
@@ -682,7 +682,6 @@
|
|
|
682
682
|
padding-top: 6px;
|
|
683
683
|
padding-right: 24px;
|
|
684
684
|
padding-bottom: 24px;
|
|
685
|
-
min-height: 100px;
|
|
686
685
|
border-radius: 4px;
|
|
687
686
|
font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "Helvetica Neue", Helvetica, "PingFang SC", Roboto, 'Arial', 'microsoft yahei ui', "Microsoft YaHei", SimSun, sans-serif;
|
|
688
687
|
color: #151B26;
|
|
@@ -887,3 +886,56 @@
|
|
|
887
886
|
.acud-input-select-tags .acud-select-clear {
|
|
888
887
|
right: 12px;
|
|
889
888
|
}
|
|
889
|
+
.acud-select-auto-complete .acud-select-selector {
|
|
890
|
+
width: 100%;
|
|
891
|
+
display: flex;
|
|
892
|
+
cursor: text;
|
|
893
|
+
position: relative;
|
|
894
|
+
}
|
|
895
|
+
.acud-select-auto-complete {
|
|
896
|
+
width: 100%;
|
|
897
|
+
display: block;
|
|
898
|
+
}
|
|
899
|
+
.acud-select-auto-complete:not(.acud-select-customize-input) .acud-select-selector {
|
|
900
|
+
position: relative;
|
|
901
|
+
background-color: #fff;
|
|
902
|
+
border-radius: 2px;
|
|
903
|
+
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
904
|
+
}
|
|
905
|
+
.acud-select-auto-complete:not(.acud-select-customize-input) .acud-select-selector .acud-select-selection-search .acud-select-selection-search-input {
|
|
906
|
+
cursor: auto;
|
|
907
|
+
margin: 0;
|
|
908
|
+
padding: 0;
|
|
909
|
+
background: 0 0;
|
|
910
|
+
border: none;
|
|
911
|
+
outline: none;
|
|
912
|
+
-webkit-appearance: none;
|
|
913
|
+
-moz-appearance: none;
|
|
914
|
+
appearance: none;
|
|
915
|
+
}
|
|
916
|
+
.acud-select-auto-complete .acud-select-selector {
|
|
917
|
+
width: 100%;
|
|
918
|
+
display: flex;
|
|
919
|
+
cursor: text;
|
|
920
|
+
position: relative;
|
|
921
|
+
}
|
|
922
|
+
.acud-select-auto-complete .acud-select-selector .acud-select-selection-search {
|
|
923
|
+
position: absolute;
|
|
924
|
+
inset: 0 12px;
|
|
925
|
+
z-index: 2;
|
|
926
|
+
}
|
|
927
|
+
.acud-select-auto-complete .acud-select-selector .acud-select-selection-search .acud-select-selection-search-input {
|
|
928
|
+
width: 100%;
|
|
929
|
+
}
|
|
930
|
+
.acud-select-auto-complete .acud-select-selector .acud-select-selection-placeholder {
|
|
931
|
+
flex: 1;
|
|
932
|
+
transition: none;
|
|
933
|
+
pointer-events: none;
|
|
934
|
+
overflow: hidden;
|
|
935
|
+
color: #bfbfbf;
|
|
936
|
+
white-space: nowrap;
|
|
937
|
+
text-overflow: ellipsis;
|
|
938
|
+
padding-left: 12px;
|
|
939
|
+
padding-right: 12px;
|
|
940
|
+
z-index: 1;
|
|
941
|
+
}
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
@input-password-outer-prefix-cls: ~'@{acud-prefix}-input-password-outer';
|
|
10
10
|
@input-password-prefix-cls: ~'@{acud-prefix}-input-password';
|
|
11
|
+
@select-auto-complete-prefix-cls: ~'@{acud-prefix}-select-auto-complete';
|
|
12
|
+
|
|
13
|
+
@select-prefix-cls: ~'@{acud-prefix}-select';
|
|
14
|
+
|
|
11
15
|
// basic logic - line hight, font size
|
|
12
16
|
// content layer - 只处理文字 Icon, 没有开关config,对应四种交互状态配置
|
|
13
17
|
// background layer - 背景层 填色、描边、阴影,可以通过开关config配置, 对应四种交互状态
|
|
@@ -254,7 +258,7 @@
|
|
|
254
258
|
padding-top: 1.5*@padding-xsm;
|
|
255
259
|
padding-right: 2*@padding-m;
|
|
256
260
|
padding-bottom: 6*@padding-xsm;
|
|
257
|
-
min-height: 100px;
|
|
261
|
+
// min-height: 100px;
|
|
258
262
|
border-radius: @input-border-lg-radius;
|
|
259
263
|
font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text", "Helvetica Neue", Helvetica, "PingFang SC", Roboto, 'Arial', 'microsoft yahei ui', "Microsoft YaHei", SimSun, sans-serif;
|
|
260
264
|
&::-webkit-input-placeholder {
|
|
@@ -379,4 +383,62 @@
|
|
|
379
383
|
right:12px;
|
|
380
384
|
}
|
|
381
385
|
}
|
|
386
|
+
.acud-select-auto-complete{
|
|
387
|
+
.acud-select-selector{
|
|
388
|
+
width:100%;
|
|
389
|
+
display: flex;
|
|
390
|
+
cursor: text;
|
|
391
|
+
position: relative;
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
.@{select-auto-complete-prefix-cls}{
|
|
395
|
+
width:100%;
|
|
396
|
+
display: block;
|
|
397
|
+
&:not(.acud-select-customize-input) {
|
|
398
|
+
.acud-select-selector{
|
|
399
|
+
position: relative;
|
|
400
|
+
background-color: #fff;
|
|
401
|
+
border-radius: 2px;
|
|
402
|
+
transition: all .3s cubic-bezier(.645,.045,.355,1);
|
|
403
|
+
.acud-select-selection-search{
|
|
404
|
+
.acud-select-selection-search-input{
|
|
405
|
+
cursor: auto;
|
|
406
|
+
margin: 0;
|
|
407
|
+
padding: 0;
|
|
408
|
+
background: 0 0;
|
|
409
|
+
border: none;
|
|
410
|
+
outline: none;
|
|
411
|
+
appearance: none;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
}
|
|
417
|
+
.@{select-prefix-cls}-selector{
|
|
418
|
+
width:100%;
|
|
419
|
+
display: flex;
|
|
420
|
+
cursor: text;
|
|
421
|
+
position: relative;
|
|
422
|
+
.@{select-prefix-cls}-selection-search{
|
|
423
|
+
position: absolute;
|
|
424
|
+
inset: 0 12px;
|
|
425
|
+
z-index: 2;
|
|
426
|
+
.@{select-prefix-cls}-selection-search-input{
|
|
427
|
+
width:100%;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
.@{select-prefix-cls}-selection-placeholder{
|
|
431
|
+
flex:1;
|
|
432
|
+
transition: none;
|
|
433
|
+
pointer-events: none;
|
|
434
|
+
overflow: hidden;
|
|
435
|
+
color: #bfbfbf;
|
|
436
|
+
white-space: nowrap;
|
|
437
|
+
text-overflow: ellipsis;
|
|
438
|
+
padding-left: 12px;
|
|
439
|
+
padding-right: 12px;
|
|
440
|
+
z-index: 1;
|
|
441
|
+
}
|
|
382
442
|
|
|
443
|
+
}
|
|
444
|
+
}
|
package/lib/modal/style/css.js
CHANGED
package/lib/modal/style/index.js
CHANGED
|
@@ -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/select/index.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ declare const SelectRef: <VT extends SelectValue = SelectValue>(props: SelectPro
|
|
|
29
29
|
ref?: React.Ref<RefSelectProps>;
|
|
30
30
|
}) => React.ReactElement;
|
|
31
31
|
declare type InternalSelectType = typeof SelectRef;
|
|
32
|
-
interface SelectInterface extends InternalSelectType {
|
|
32
|
+
export interface SelectInterface extends InternalSelectType {
|
|
33
33
|
SECRET_COMBOBOX_MODE_DO_NOT_USE: string;
|
|
34
34
|
Option: typeof Option;
|
|
35
35
|
OptGroup: typeof OptGroup;
|
package/lib/select/style/css.js
CHANGED
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
|
|