acud 0.0.66 → 0.0.69

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.
Files changed (148) hide show
  1. package/dist/acud.css +277 -152
  2. package/dist/acud.css.map +1 -1
  3. package/dist/acud.js +1107 -910
  4. package/dist/acud.js.map +1 -1
  5. package/dist/acud.min.css +1 -1
  6. package/dist/acud.min.css.map +1 -1
  7. package/dist/acud.min.js +6 -6
  8. package/dist/acud.min.js.map +1 -1
  9. package/es/button/button.d.ts +1 -0
  10. package/es/button/button.js +1 -0
  11. package/es/cascader/Cascader.js +2 -1
  12. package/es/cascader/MenuItem.js +7 -13
  13. package/es/cascader/Menus.d.ts +3 -2
  14. package/es/cascader/Menus.js +30 -24
  15. package/es/cascader/index.js +32 -11
  16. package/es/cascader/style/index.css +17 -68
  17. package/es/cascader/style/index.less +23 -31
  18. package/es/clear/index.d.ts +12 -0
  19. package/es/clear/index.js +41 -0
  20. package/es/clear/style/css.js +2 -0
  21. package/es/clear/style/index.css +63 -0
  22. package/es/clear/style/index.d.ts +2 -0
  23. package/es/clear/style/index.js +2 -0
  24. package/es/clear/style/index.less +18 -0
  25. package/es/date-picker/generatePicker/generateRangePicker.js +2 -2
  26. package/es/date-picker/generatePicker/generateSinglePicker.js +2 -2
  27. package/es/date-picker/src/PickerPanel.js +4 -1
  28. package/es/date-picker/src/utils/uiUtil.js +4 -4
  29. package/es/date-picker/style/index.css +106 -53
  30. package/es/date-picker/style/panel.less +83 -18
  31. package/es/dropdown/dropdown.js +2 -3
  32. package/es/dropdown/rc-dropdown/Dropdown.js +1 -0
  33. package/es/form/style/horizontal.less +3 -1
  34. package/es/form/style/index.css +2 -0
  35. package/es/index.d.ts +1 -0
  36. package/es/index.js +1 -0
  37. package/es/menu/menu.d.ts +2 -1
  38. package/es/modal/DialogBox.d.ts +1 -1
  39. package/es/modal/Modal.d.ts +0 -2
  40. package/es/modal/style/index.css +27 -7
  41. package/es/modal/style/index.less +23 -7
  42. package/es/modal/style/mixin.less +2 -2
  43. package/es/progress/CircleProgress.js +2 -2
  44. package/es/progress/LineProgress.js +4 -2
  45. package/es/radio/Radio.d.ts +1 -0
  46. package/es/radio/Radio.js +3 -2
  47. package/es/radio/RadioButton.js +3 -2
  48. package/es/radio/RadioGroup.d.ts +1 -0
  49. package/es/radio/RadioGroup.js +4 -1
  50. package/es/radio/context.d.ts +1 -0
  51. package/es/style/themes/dark/components/modal.less +1 -1
  52. package/es/style/themes/default/components/cascader.less +0 -4
  53. package/es/style/themes/default/components/clear.less +2 -0
  54. package/es/style/themes/default/components/datePicker.less +1 -0
  55. package/es/style/themes/default/components/index.less +1 -0
  56. package/es/style/themes/default/components/modal.less +1 -1
  57. package/es/switch/index.d.ts +2 -3
  58. package/es/switch/index.js +11 -3
  59. package/es/switch/interface.d.ts +4 -0
  60. package/es/switch/style/index.css +31 -0
  61. package/es/switch/style/index.less +33 -1
  62. package/es/tabs/src/TabNavList/index.js +2 -2
  63. package/es/tabs/style/index.css +0 -1
  64. package/es/tabs/style/index.less +0 -1
  65. package/es/toast/index.js +7 -8
  66. package/es/toast/style/index.css +1 -1
  67. package/es/toast/style/index.less +3 -3
  68. package/es/tooltip/index.js +1 -1
  69. package/es/transfer/SourceList.js +1 -0
  70. package/es/transfer/index.js +5 -5
  71. package/es/transfer/style/index.css +3 -0
  72. package/es/transfer/style/index.less +3 -0
  73. package/es/upload/Upload.js +4 -1
  74. package/es/upload/UploadList/ListItem.js +2 -2
  75. package/es/upload/UploadList/index.js +1 -1
  76. package/es/upload/style/index.css +25 -21
  77. package/es/upload/style/index.less +28 -21
  78. package/lib/button/button.d.ts +1 -0
  79. package/lib/button/button.js +1 -0
  80. package/lib/cascader/Cascader.js +2 -1
  81. package/lib/cascader/MenuItem.js +7 -13
  82. package/lib/cascader/Menus.d.ts +3 -2
  83. package/lib/cascader/Menus.js +31 -24
  84. package/lib/cascader/index.js +34 -12
  85. package/lib/cascader/style/index.css +17 -68
  86. package/lib/cascader/style/index.less +23 -31
  87. package/lib/clear/index.d.ts +12 -0
  88. package/lib/clear/index.js +55 -0
  89. package/lib/clear/style/css.js +5 -0
  90. package/lib/clear/style/index.css +63 -0
  91. package/lib/clear/style/index.d.ts +2 -0
  92. package/lib/clear/style/index.js +5 -0
  93. package/lib/clear/style/index.less +18 -0
  94. package/lib/date-picker/generatePicker/generateRangePicker.js +3 -3
  95. package/lib/date-picker/generatePicker/generateSinglePicker.js +3 -3
  96. package/lib/date-picker/src/PickerPanel.js +4 -1
  97. package/lib/date-picker/src/utils/uiUtil.js +4 -4
  98. package/lib/date-picker/style/index.css +106 -53
  99. package/lib/date-picker/style/panel.less +83 -18
  100. package/lib/dropdown/dropdown.js +2 -3
  101. package/lib/dropdown/rc-dropdown/Dropdown.js +1 -0
  102. package/lib/form/style/horizontal.less +3 -1
  103. package/lib/form/style/index.css +2 -0
  104. package/lib/index.d.ts +1 -0
  105. package/lib/index.js +8 -0
  106. package/lib/menu/menu.d.ts +2 -1
  107. package/lib/modal/DialogBox.d.ts +1 -1
  108. package/lib/modal/Modal.d.ts +0 -2
  109. package/lib/modal/style/index.css +27 -7
  110. package/lib/modal/style/index.less +23 -7
  111. package/lib/modal/style/mixin.less +2 -2
  112. package/lib/progress/CircleProgress.js +2 -2
  113. package/lib/progress/LineProgress.js +4 -2
  114. package/lib/radio/Radio.d.ts +1 -0
  115. package/lib/radio/Radio.js +3 -2
  116. package/lib/radio/RadioButton.js +3 -2
  117. package/lib/radio/RadioGroup.d.ts +1 -0
  118. package/lib/radio/RadioGroup.js +5 -1
  119. package/lib/radio/context.d.ts +1 -0
  120. package/lib/style/components.less +1 -0
  121. package/lib/style/themes/dark/components/modal.less +1 -1
  122. package/lib/style/themes/default/components/cascader.less +0 -4
  123. package/lib/style/themes/default/components/clear.less +2 -0
  124. package/lib/style/themes/default/components/datePicker.less +1 -0
  125. package/lib/style/themes/default/components/index.less +1 -0
  126. package/lib/style/themes/default/components/modal.less +1 -1
  127. package/lib/switch/index.d.ts +2 -3
  128. package/lib/switch/index.js +12 -3
  129. package/lib/switch/interface.d.ts +4 -0
  130. package/lib/switch/style/index.css +31 -0
  131. package/lib/switch/style/index.less +33 -1
  132. package/lib/tabs/src/TabNavList/index.js +2 -2
  133. package/lib/tabs/style/index.css +0 -1
  134. package/lib/tabs/style/index.less +0 -1
  135. package/lib/toast/index.js +7 -8
  136. package/lib/toast/style/index.css +1 -1
  137. package/lib/toast/style/index.less +3 -3
  138. package/lib/tooltip/index.js +1 -1
  139. package/lib/transfer/SourceList.js +1 -0
  140. package/lib/transfer/index.js +5 -5
  141. package/lib/transfer/style/index.css +3 -0
  142. package/lib/transfer/style/index.less +3 -0
  143. package/lib/upload/Upload.js +4 -1
  144. package/lib/upload/UploadList/ListItem.js +2 -2
  145. package/lib/upload/UploadList/index.js +1 -1
  146. package/lib/upload/style/index.css +25 -21
  147. package/lib/upload/style/index.less +28 -21
  148. package/package.json +2 -2
@@ -34,10 +34,6 @@
34
34
  @cascader-picker-font-size-md: @T2;
35
35
  @cascader-picker-font-size-lg: @T3;
36
36
 
37
- // clear
38
- @cascader-picker-clear-tp: tp9;
39
- @cascader-picker-clear-p: p9;
40
-
41
37
  // 级联menus cascader-menus
42
38
  @cascader-menus-z-index: 1050;
43
39
  @cascader-menus-font-size: @T2;
@@ -0,0 +1,2 @@
1
+ @clear-tp: tp9;
2
+ @clear-p: p9;
@@ -22,6 +22,7 @@
22
22
  @date-picker-date-tp: tp31;
23
23
  @date-picker-date-p: p40;
24
24
  @date-picker-header-icon-tp: tp24;
25
+ @date-picker-header-tp: tp3;
25
26
 
26
27
  @picker-panel-cell-height: 6*@P;
27
28
  @primary-color: @B2;
@@ -43,3 +43,4 @@
43
43
  @import './rate.less';
44
44
  @import './timeline.less';
45
45
  @import './popconfirm.less';
46
+ @import './clear.less';
@@ -42,7 +42,7 @@
42
42
  @modal-close-font-size: @T4;
43
43
 
44
44
  // Body
45
- @modal-body-padding: 4*@P 6*@P 6*@P;
45
+ @modal-body-margin: 4*@P 6*@P 6*@P;
46
46
  @modal-body-bg-color: @G11;
47
47
  @modal-body-font-color: @G2;
48
48
  @modal-body-font-size: @T2;
@@ -1,4 +1,3 @@
1
- import { FC } from 'react';
2
- import { SwitchProps } from './interface';
3
- declare const Switch: FC<SwitchProps>;
1
+ import { CompoundedComponent } from './interface';
2
+ declare const Switch: CompoundedComponent;
4
3
  export default Switch;
@@ -15,6 +15,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
15
15
 
16
16
  var _react = _interopRequireDefault(require("react"));
17
17
 
18
+ var _acudIcon = require("acud-icon");
19
+
18
20
  var _classnames = _interopRequireDefault(require("classnames"));
19
21
 
20
22
  var _useMergedState3 = _interopRequireDefault(require("../_util/hooks/useMergedState"));
@@ -41,12 +43,13 @@ var Switch = /*#__PURE__*/_react["default"].forwardRef(function (_a, ref) {
41
43
  checked = _a.checked,
42
44
  defaultChecked = _a.defaultChecked,
43
45
  disabled = _a.disabled,
44
- loadingIcon = _a.loadingIcon,
46
+ loading = _a.loading,
47
+ customLoadingIcon = _a.loadingIcon,
45
48
  checkedChildren = _a.checkedChildren,
46
49
  unCheckedChildren = _a.unCheckedChildren,
47
50
  onClick = _a.onClick,
48
51
  onChange = _a.onChange,
49
- restProps = __rest(_a, ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange"]);
52
+ restProps = __rest(_a, ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loading", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange"]);
50
53
 
51
54
  var _useMergedState = (0, _useMergedState3["default"])(false, {
52
55
  value: checked,
@@ -56,6 +59,11 @@ var Switch = /*#__PURE__*/_react["default"].forwardRef(function (_a, ref) {
56
59
  innerChecked = _useMergedState2[0],
57
60
  setInnerChecked = _useMergedState2[1];
58
61
 
62
+ var loadingIcon = loading && (customLoadingIcon || /*#__PURE__*/_react["default"].createElement(_acudIcon.OutlinedLoading, {
63
+ className: "".concat(prefixCls, "-loading-icon"),
64
+ animation: "spin"
65
+ }));
66
+
59
67
  function triggerChange(newChecked, event) {
60
68
  var mergedChecked = innerChecked;
61
69
 
@@ -73,7 +81,7 @@ var Switch = /*#__PURE__*/_react["default"].forwardRef(function (_a, ref) {
73
81
  onClick === null || onClick === void 0 ? void 0 : onClick(ret, e);
74
82
  }
75
83
 
76
- var switchClassName = (0, _classnames["default"])(prefixCls, className, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), innerChecked), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
84
+ var switchClassName = (0, _classnames["default"])(prefixCls, className, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), innerChecked), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-loading"), loading), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), disabled), _classNames));
77
85
  return /*#__PURE__*/_react["default"].createElement("button", (0, _extends2["default"])({}, restProps, {
78
86
  type: "button",
79
87
  role: "switch",
@@ -88,5 +96,6 @@ var Switch = /*#__PURE__*/_react["default"].forwardRef(function (_a, ref) {
88
96
  });
89
97
 
90
98
  Switch.displayName = 'Switch';
99
+ Switch.__ACUD_SWITCH = true;
91
100
  var _default = Switch;
92
101
  exports["default"] = _default;
@@ -5,6 +5,7 @@ export interface SwitchProps extends Omit<React.HTMLAttributes<HTMLButtonElement
5
5
  className?: string;
6
6
  prefixCls?: string;
7
7
  disabled?: boolean;
8
+ loading?: boolean;
8
9
  checkedChildren?: React.ReactNode;
9
10
  unCheckedChildren?: React.ReactNode;
10
11
  onChange?: SwitchChangeEventHandler;
@@ -16,3 +17,6 @@ export interface SwitchProps extends Omit<React.HTMLAttributes<HTMLButtonElement
16
17
  style?: React.CSSProperties;
17
18
  title?: string;
18
19
  }
20
+ export interface CompoundedComponent extends React.ForwardRefExoticComponent<SwitchProps & React.RefAttributes<HTMLElement>> {
21
+ __ACUD_SWITCH: boolean;
22
+ }
@@ -148,6 +148,34 @@
148
148
  .acud-switch-checked[disabled]:after {
149
149
  background-color: #FFFFFF;
150
150
  }
151
+ .acud-switch-checked[disabled].acud-switch-loading .acud-switch-loading-icon {
152
+ color: #D4E5FF;
153
+ }
154
+ .acud-switch-checked.acud-switch-loading .acud-switch-loading-icon {
155
+ color: #2468F2;
156
+ left: initial;
157
+ right: 2px;
158
+ }
159
+ .acud-switch-loading {
160
+ cursor: no-drop;
161
+ }
162
+ .acud-switch-loading:after {
163
+ cursor: no-drop;
164
+ -webkit-animation-name: none;
165
+ animation-name: none;
166
+ }
167
+ .acud-switch-loading:hover:after {
168
+ width: 16px;
169
+ -webkit-animation-name: none;
170
+ animation-name: none;
171
+ }
172
+ .acud-switch-loading .acud-switch-loading-icon {
173
+ position: absolute;
174
+ top: 1px;
175
+ z-index: 99;
176
+ color: #D4D6D9;
177
+ left: 2px;
178
+ }
151
179
  .acud-switch-disabled {
152
180
  cursor: no-drop;
153
181
  }
@@ -162,6 +190,9 @@
162
190
  -webkit-animation-name: none;
163
191
  animation-name: none;
164
192
  }
193
+ .acud-switch-disabled .acud-switch-loading-icon {
194
+ color: #F2F2F4;
195
+ }
165
196
  .acud-switch-label {
166
197
  display: inline-block;
167
198
  padding-left: 10px;
@@ -96,9 +96,38 @@
96
96
  &:after {
97
97
  background-color: @switch-handle-color;
98
98
  }
99
+ &.@{switch-prefix-cls}-loading {
100
+ .@{switch-prefix-cls}-loading-icon {
101
+ color: @B2;
102
+ }
103
+ }
104
+ }
105
+ &.@{switch-prefix-cls}-loading {
106
+ .@{switch-prefix-cls}-loading-icon {
107
+ color: @B6;
108
+ left: initial;
109
+ right: 0.5 * @P;
110
+ }
111
+ }
112
+ }
113
+ &-loading {
114
+ cursor: no-drop;
115
+ &:after {
116
+ cursor: no-drop;
117
+ animation-name: none;
118
+ }
119
+ &:hover:after {
120
+ width: @switch-inner-width;
121
+ animation-name: none;
122
+ }
123
+ .@{switch-prefix-cls}-loading-icon {
124
+ position: absolute;
125
+ top: 1px;
126
+ z-index: 99;
127
+ color: @G7;
128
+ left: 0.5 * @P;
99
129
  }
100
130
  }
101
-
102
131
  &-disabled {
103
132
  cursor: no-drop;
104
133
  &:after {
@@ -110,6 +139,9 @@
110
139
  width: @switch-inner-width;
111
140
  animation-name: none;
112
141
  }
142
+ .@{switch-prefix-cls}-loading-icon {
143
+ color: @G9;
144
+ }
113
145
  }
114
146
 
115
147
  &-label {
@@ -396,9 +396,9 @@ function TabNavList(props, ref) {
396
396
 
397
397
  if (btnNode) {
398
398
  newSizes.set(key, {
399
- width: btnNode.offsetWidth,
399
+ width: btnNode.offsetWidth - 32,
400
400
  height: btnNode.offsetHeight,
401
- left: btnNode.offsetLeft,
401
+ left: btnNode.offsetLeft + 16,
402
402
  top: btnNode.offsetTop
403
403
  });
404
404
  }
@@ -556,7 +556,6 @@
556
556
  }
557
557
  .acud-tabs-tab-active {
558
558
  color: #2468F2;
559
- background: #FFFFFF;
560
559
  }
561
560
  .acud-tabs-tab-btn {
562
561
  outline: none;
@@ -155,7 +155,6 @@
155
155
 
156
156
  &-active {
157
157
  color: @tabs-active-color;
158
- background: @tabs-card-head-background;
159
158
  }
160
159
 
161
160
  &-btn {
@@ -73,9 +73,8 @@ function ToastDom(props) {
73
73
  onClose = _props$onClose === void 0 ? null : _props$onClose;
74
74
 
75
75
  var _useState = (0, _react.useState)(null),
76
- _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
77
- timerID = _useState2[0],
78
- setTimerID = _useState2[1];
76
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 1),
77
+ setTimerID = _useState2[0];
79
78
 
80
79
  var _useState3 = (0, _react.useState)(countdown),
81
80
  _useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
@@ -101,9 +100,9 @@ function ToastDom(props) {
101
100
  }
102
101
 
103
102
  return function () {
104
- if (timerID) {
105
- setTimerID(null);
106
- }
103
+ // destory时可能timerID并没有 但是计时器存在 设置值时react会警告
104
+ // if (timerID) {
105
+ setTimerID(null); // }
107
106
  };
108
107
  }, [counter]);
109
108
  return /*#__PURE__*/_react["default"].createElement("div", {
@@ -155,7 +154,7 @@ var handler = {
155
154
  var tempDuration = args.duration;
156
155
  args.duration = 0; // 设置样式 有描述和没描述间距不一样
157
156
 
158
- var tempClassName = props.className + ' ' + PREFIX;
157
+ var tempClassName = (props === null || props === void 0 ? void 0 : props.className) + ' ' + PREFIX;
159
158
 
160
159
  if (args.description) {
161
160
  tempClassName += ' ' + getPrefixCls('notification') + '-has-description';
@@ -173,7 +172,7 @@ var handler = {
173
172
  description: args.description,
174
173
  countdown: tempDuration,
175
174
  notificationKey: key,
176
- onClose: props.onClose
175
+ onClose: props === null || props === void 0 ? void 0 : props.onClose
177
176
  });
178
177
  args.description = /*#__PURE__*/_react["default"].createElement(DescriptionDom, {
179
178
  description: args.description
@@ -106,7 +106,7 @@
106
106
  }
107
107
  .acud-notification-notice-with-icon .acud-notification-notice-message {
108
108
  margin: 0 calc(8px + 4px * 4) 0 calc(8px + 18px);
109
- font-size: 16px;
109
+ font-size: 14px;
110
110
  }
111
111
  .acud-notification-notice-with-icon .acud-notification-notice-description {
112
112
  margin: 0 calc(8px + 4px * 4) 0 calc(8px + 18px);
@@ -3,7 +3,7 @@
3
3
 
4
4
  @toast-padding-vertical: @P;
5
5
  @toast-padding-horizontal: 4 * @P;
6
- @font-size-base: @T3;
6
+ @toast-font-size-base: @T3;
7
7
  @line-height-base: 1.5715;
8
8
  @notification-bg: #fff;
9
9
  @heading-color: #000;
@@ -103,7 +103,7 @@
103
103
  }
104
104
 
105
105
  &-description {
106
- font-size: @font-size-base;
106
+ font-size: @toast-font-size-base;
107
107
  .description-wrap {
108
108
  margin: @P 0 0 0;
109
109
  color: @G2;
@@ -123,7 +123,7 @@
123
123
 
124
124
  &-with-icon &-description {
125
125
  margin: 0 ~'calc(@{toast-title-margin} + @{P} * 4)' 0 ~'calc(@{toast-title-margin} + @{T5})';
126
- font-size: @font-size-base;
126
+ font-size: @toast-font-size-base;
127
127
  }
128
128
 
129
129
  &-icon {
@@ -63,7 +63,7 @@ var PresetColorRegex = new RegExp("^(".concat(PresetColorTypes.join('|'), ")(-in
63
63
  function getDisabledCompatibleChildren(element, prefixCls) {
64
64
  var elementType = element.type;
65
65
 
66
- if ((elementType.__ANT_BUTTON === true || elementType.__ANT_SWITCH === true || elementType.__ANT_CHECKBOX === true || element.type === 'button') && element.props.disabled) {
66
+ if ((elementType.__ACUD_BUTTON === true || elementType.__ACUD_SWITCH === true || elementType.__ACUD_CHECKBOX === true || element.type === 'button') && element.props.disabled) {
67
67
  // Pick some layout related style properties up to span
68
68
  var _splitObject = splitObject(element.props.style, ['position', 'left', 'right', 'top', 'bottom', 'float', 'display', 'zIndex']),
69
69
  picked = _splitObject.picked,
@@ -167,6 +167,7 @@ function sourceList(props) {
167
167
  return expandGroup(e, data.key);
168
168
  }
169
169
  }, expandGroupKey.includes(data.key) ? /*#__PURE__*/React.createElement(_OutlinedDown["default"], null) : /*#__PURE__*/React.createElement(_OutlinedRight["default"], null)), /*#__PURE__*/React.createElement(_checkbox["default"], {
170
+ className: "".concat(prefixCls, "-datasource-item-checkbox"),
170
171
  checked: checked,
171
172
  disabled: data.disabled,
172
173
  indeterminate: indeterminate
@@ -40,8 +40,7 @@ function transfer(props) {
40
40
  prefixCls = _props$prefixCls === void 0 ? 'acud-transfer' : _props$prefixCls,
41
41
  _props$displayType = props.displayType,
42
42
  displayType = _props$displayType === void 0 ? 'single' : _props$displayType,
43
- _props$targetKeys = props.targetKeys,
44
- targetKeys = _props$targetKeys === void 0 ? [] : _props$targetKeys,
43
+ targetKeys = props.targetKeys,
45
44
  onChange = props.onChange,
46
45
  _props$locale = props.locale,
47
46
  locale = _props$locale === void 0 ? {} : _props$locale,
@@ -76,11 +75,12 @@ function transfer(props) {
76
75
  return expansionArr;
77
76
  }, [dataSource]);
78
77
 
79
- var _React$useState = React.useState(targetKeys),
78
+ var _React$useState = React.useState(targetKeys || []),
80
79
  _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
81
80
  tKeys = _React$useState2[0],
82
81
  setTKeys = _React$useState2[1];
83
82
 
83
+ var mergedKeys = 'targetKeys' in props ? targetKeys : tKeys;
84
84
  React.useEffect(function () {
85
85
  onChange && onChange(tKeys);
86
86
  }, [tKeys]);
@@ -91,14 +91,14 @@ function transfer(props) {
91
91
  displayType: displayType,
92
92
  locale: userLocale,
93
93
  prefixCls: prefixCls,
94
- tKeys: tKeys,
94
+ tKeys: mergedKeys,
95
95
  setTKeys: setTKeys,
96
96
  expansionSource: expansionSource
97
97
  })), /*#__PURE__*/React.createElement(_Target["default"], (0, _extends2["default"])({}, props, {
98
98
  displayType: displayType,
99
99
  locale: userLocale,
100
100
  prefixCls: prefixCls,
101
- tKeys: tKeys,
101
+ tKeys: mergedKeys,
102
102
  setTKeys: setTKeys,
103
103
  expansionSource: expansionSource
104
104
  })));
@@ -150,6 +150,9 @@
150
150
  .acud-transfer-datasource-item-group-option {
151
151
  padding-left: 60px;
152
152
  }
153
+ .acud-transfer-datasource-item-checkbox {
154
+ height: 16px;
155
+ }
153
156
  .acud-transfer-datasource-search {
154
157
  height: 40px;
155
158
  padding: 8px 12px;
@@ -88,6 +88,9 @@
88
88
  &-group-option {
89
89
  padding-left: 15 * @P;
90
90
  }
91
+ &-checkbox {
92
+ height: @P * 4;
93
+ }
91
94
  }
92
95
  &-search {
93
96
  height: @P * 10;
@@ -474,12 +474,15 @@ var InternalUpload = function InternalUpload(props, ref) {
474
474
 
475
475
  var dragCls = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-drag"), true), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-drag-uploading"), mergedFileList.some(function (file) {
476
476
  return file.status === 'uploading';
477
- })), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-drag-hover"), dragState === 'dragover'), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
477
+ })), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-drag-hover"), dragState === 'dragover'), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-drag-click"), dragState === 'mousedown'), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
478
478
  return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("div", {
479
479
  className: dragCls,
480
480
  onDrop: onFileDrop,
481
481
  onDragOver: onFileDrop,
482
482
  onDragLeave: onFileDrop,
483
+ onMouseDown: onFileDrop,
484
+ onMouseUp: onFileDrop,
485
+ onMouseLeave: onFileDrop,
483
486
  style: style
484
487
  }, /*#__PURE__*/React.createElement(_BaseUpload["default"], (0, _extends2["default"])({}, rcUploadProps, {
485
488
  ref: upload,
@@ -29,7 +29,7 @@ var _OutlinedClose = _interopRequireDefault(require("acud-icon/lib/icons/Outline
29
29
 
30
30
  var _OutlinedCloudDownload = _interopRequireDefault(require("acud-icon/lib/icons/OutlinedCloudDownload"));
31
31
 
32
- var _OutlinedRefresh = _interopRequireDefault(require("acud-icon/lib/icons/OutlinedRefresh"));
32
+ var _OutlinedButtonUpload = _interopRequireDefault(require("acud-icon/lib/icons/OutlinedButtonUpload"));
33
33
 
34
34
  var _tooltip = _interopRequireDefault(require("../../tooltip"));
35
35
 
@@ -185,7 +185,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
185
185
  title: locale.previewFile
186
186
  }, /*#__PURE__*/React.createElement(_OutlinedEye["default"], null)) : null; // 上传icon
187
187
 
188
- var uploadIcon = showUploadIcon ? actionIconRender((typeof customUploadIcon === 'function' ? customUploadIcon(file) : customUploadIcon) || /*#__PURE__*/React.createElement(_OutlinedRefresh["default"], null), function () {
188
+ var uploadIcon = showUploadIcon ? actionIconRender((typeof customUploadIcon === 'function' ? customUploadIcon(file) : customUploadIcon) || /*#__PURE__*/React.createElement(_OutlinedButtonUpload["default"], null), function () {
189
189
  return onUpload(file);
190
190
  }, prefixCls, locale.uploadFile) : null;
191
191
  var actions = listType === 'picture-card' && file.status !== 'uploading' && /*#__PURE__*/React.createElement("span", {
@@ -92,7 +92,7 @@ var renderIcon = function renderIcon(fileName) {
92
92
  }
93
93
 
94
94
  return /*#__PURE__*/React.createElement(Icon, {
95
- width: 14
95
+ width: 16
96
96
  });
97
97
  };
98
98
 
@@ -123,6 +123,12 @@
123
123
  .acud-upload.acud-upload-drag.acud-upload-drag-hover:not(.acud-upload-disabled) {
124
124
  border-color: #144BCC;
125
125
  }
126
+ .acud-upload.acud-upload-drag.acud-upload-drag-click:not(.acud-upload-disabled) {
127
+ border-color: #144BCC;
128
+ }
129
+ .acud-upload.acud-upload-drag.acud-upload-drag-click:not(.acud-upload-disabled):hover {
130
+ border-color: #144BCC;
131
+ }
126
132
  .acud-upload.acud-upload-drag.acud-upload-disabled {
127
133
  background: #fafafa;
128
134
  cursor: not-allowed;
@@ -192,9 +198,9 @@
192
198
  }
193
199
  .acud-upload-list-item {
194
200
  position: relative;
195
- height: 24px;
196
- margin-top: 8px;
197
201
  font-size: 12px;
202
+ transition: background-color 0.3s;
203
+ overflow-y: hidden;
198
204
  }
199
205
  .acud-upload-list-item-name {
200
206
  display: inline-block;
@@ -221,7 +227,7 @@
221
227
  }
222
228
  .acud-upload-list-item-card-actions {
223
229
  position: absolute;
224
- right: 0;
230
+ right: 4px;
225
231
  }
226
232
  .acud-upload-list-item-card-actions-btn {
227
233
  opacity: 0;
@@ -257,9 +263,8 @@
257
263
  color: #B8BABF;
258
264
  }
259
265
  .acud-upload-list-item-info {
260
- height: 100%;
266
+ height: 24px;
261
267
  padding: 0 2px;
262
- transition: background-color 0.3s;
263
268
  border-radius: 2px;
264
269
  }
265
270
  .acud-upload-list-item-info > span {
@@ -307,7 +312,7 @@
307
312
  .acud-upload-list-item .acuicon-outlined-close:hover {
308
313
  color: #151B26;
309
314
  }
310
- .acud-upload-list-item:hover .acud-upload-list-item-info {
315
+ .acud-upload-list-item:hover {
311
316
  background-color: #F7F7F9;
312
317
  }
313
318
  .acud-upload-list-item:hover .acuicon-outlined-close {
@@ -339,10 +344,9 @@
339
344
  color: #F33E3E;
340
345
  }
341
346
  .acud-upload-list-item-progress {
342
- position: absolute;
343
- bottom: -12px;
344
347
  width: 100%;
345
348
  padding-left: 4px;
349
+ padding-right: 4px;
346
350
  font-size: 12px;
347
351
  line-height: 0;
348
352
  }
@@ -432,13 +436,6 @@
432
436
  .acud-upload-list-picture-card .acud-upload-list-item-uploading .acud-upload-list-item-name {
433
437
  margin-bottom: 12px;
434
438
  }
435
- .acud-upload-list-picture .acud-upload-list-item-progress,
436
- .acud-upload-list-picture-card .acud-upload-list-item-progress {
437
- bottom: 14px;
438
- width: calc(100% - 24px);
439
- margin-top: 0;
440
- padding-left: 56px;
441
- }
442
439
  .acud-upload-list-picture .acuicon-outlined-close,
443
440
  .acud-upload-list-picture-card .acuicon-outlined-close {
444
441
  position: absolute;
@@ -491,7 +488,7 @@
491
488
  opacity: 0;
492
489
  transition: all 0.3s;
493
490
  }
494
- .acud-upload-list-picture-card .acud-upload-list-item-actions .acuicon-outlined-refresh,
491
+ .acud-upload-list-picture-card .acud-upload-list-item-actions .acuicon-outlined-button-upload,
495
492
  .acud-upload-list-picture-card .acud-upload-list-item-actions .acuicon-outlined-eye,
496
493
  .acud-upload-list-picture-card .acud-upload-list-item-actions .acuicon-outlined-download,
497
494
  .acud-upload-list-picture-card .acud-upload-list-item-actions .acuicon-outlined-delete {
@@ -519,8 +516,8 @@
519
516
  display: block;
520
517
  width: 100%;
521
518
  height: 100%;
522
- -o-object-fit: contain;
523
- object-fit: contain;
519
+ -o-object-fit: cover;
520
+ object-fit: cover;
524
521
  }
525
522
  .acud-upload-list-picture-card .acud-upload-list-item-name {
526
523
  display: none;
@@ -547,6 +544,7 @@
547
544
  line-height: 140px;
548
545
  }
549
546
  .acud-upload-list-picture-card .acud-upload-list-item-progress {
547
+ position: absolute;
550
548
  top: 44px;
551
549
  padding-left: 8px;
552
550
  padding-right: 8px;
@@ -583,9 +581,15 @@
583
581
  margin: 0;
584
582
  padding: 0 8px 0 4px;
585
583
  }
586
- .acud-upload-list-text .acud-upload-list-item-card-actions,
587
- .acud-upload-list-picture .acud-upload-list-item-card-actions {
588
- position: static;
584
+ .acud-upload-list-text-container {
585
+ margin-bottom: 4px;
586
+ }
587
+ .acud-upload-list-text-container:first-child {
588
+ margin-top: 8px;
589
+ }
590
+ .acud-upload-list-text .acud-upload-list-item-progress {
591
+ margin-top: 4px;
592
+ margin-bottom: 2px;
589
593
  }
590
594
  .acud-upload-list .acud-upload-animate-inline-appear,
591
595
  .acud-upload-list .acud-upload-animate-inline-enter,