acud 0.0.68 → 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 (67) hide show
  1. package/dist/acud.css +47 -37
  2. package/dist/acud.css.map +1 -1
  3. package/dist/acud.js +235 -219
  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/cascader/Cascader.js +2 -1
  10. package/es/cascader/MenuItem.js +7 -13
  11. package/es/cascader/Menus.d.ts +3 -2
  12. package/es/cascader/Menus.js +30 -24
  13. package/es/cascader/index.js +14 -8
  14. package/es/cascader/style/index.css +15 -11
  15. package/es/cascader/style/index.less +21 -14
  16. package/es/dropdown/dropdown.js +2 -3
  17. package/es/form/style/horizontal.less +3 -2
  18. package/es/form/style/index.css +2 -3
  19. package/es/menu/menu.d.ts +2 -1
  20. package/es/radio/Radio.d.ts +1 -0
  21. package/es/radio/Radio.js +3 -2
  22. package/es/radio/RadioButton.js +3 -2
  23. package/es/radio/RadioGroup.d.ts +1 -0
  24. package/es/radio/RadioGroup.js +4 -1
  25. package/es/radio/context.d.ts +1 -0
  26. package/es/toast/index.js +7 -8
  27. package/es/toast/style/index.css +1 -1
  28. package/es/toast/style/index.less +3 -3
  29. package/es/transfer/SourceList.js +1 -0
  30. package/es/transfer/index.js +3 -7
  31. package/es/transfer/style/index.css +3 -0
  32. package/es/transfer/style/index.less +3 -0
  33. package/es/upload/Upload.js +4 -1
  34. package/es/upload/UploadList/ListItem.js +2 -2
  35. package/es/upload/UploadList/index.js +1 -1
  36. package/es/upload/style/index.css +25 -21
  37. package/es/upload/style/index.less +28 -21
  38. package/lib/cascader/Cascader.js +2 -1
  39. package/lib/cascader/MenuItem.js +7 -13
  40. package/lib/cascader/Menus.d.ts +3 -2
  41. package/lib/cascader/Menus.js +31 -24
  42. package/lib/cascader/index.js +15 -8
  43. package/lib/cascader/style/index.css +15 -11
  44. package/lib/cascader/style/index.less +21 -14
  45. package/lib/dropdown/dropdown.js +2 -3
  46. package/lib/form/style/horizontal.less +3 -2
  47. package/lib/form/style/index.css +2 -3
  48. package/lib/menu/menu.d.ts +2 -1
  49. package/lib/radio/Radio.d.ts +1 -0
  50. package/lib/radio/Radio.js +3 -2
  51. package/lib/radio/RadioButton.js +3 -2
  52. package/lib/radio/RadioGroup.d.ts +1 -0
  53. package/lib/radio/RadioGroup.js +5 -1
  54. package/lib/radio/context.d.ts +1 -0
  55. package/lib/toast/index.js +7 -8
  56. package/lib/toast/style/index.css +1 -1
  57. package/lib/toast/style/index.less +3 -3
  58. package/lib/transfer/SourceList.js +1 -0
  59. package/lib/transfer/index.js +3 -7
  60. package/lib/transfer/style/index.css +3 -0
  61. package/lib/transfer/style/index.less +3 -0
  62. package/lib/upload/Upload.js +4 -1
  63. package/lib/upload/UploadList/ListItem.js +2 -2
  64. package/lib/upload/UploadList/index.js +1 -1
  65. package/lib/upload/style/index.css +25 -21
  66. package/lib/upload/style/index.less +28 -21
  67. package/package.json +1 -1
@@ -183,7 +183,7 @@
183
183
  color: #B8BABF;
184
184
  }
185
185
  .acud-cascader-picker-arrow-expand {
186
- transform: rotate(-180deg);
186
+ transform: rotate(180deg);
187
187
  }
188
188
  .acud-cascader-picker-arrow > svg {
189
189
  width: 16px;
@@ -331,7 +331,9 @@
331
331
  color: #151B26;
332
332
  background-color: #FFFFFF;
333
333
  border-color: transparent;
334
- padding: 0 8px 0 12px;
334
+ display: flex;
335
+ justify-content: space-between;
336
+ padding: 0 12px;
335
337
  height: 32px;
336
338
  line-height: 32px;
337
339
  cursor: pointer;
@@ -379,17 +381,18 @@
379
381
  border-color: transparent;
380
382
  }
381
383
  .acud-cascader-menu-item-content {
382
- width: calc(100% - 3 * 4px);
384
+ display: flex;
383
385
  overflow: hidden;
384
386
  text-overflow: ellipsis;
385
387
  }
386
- .acud-cascader-menu-item-checkbox {
388
+ .acud-cascader-menu-item-checkbox.acud-checkbox-wrapper {
387
389
  vertical-align: middle;
390
+ margin-right: 8px;
388
391
  }
389
- .acud-cascader-menu-item-checkbox .acud-checkbox {
392
+ .acud-cascader-menu-item-checkbox.acud-checkbox-wrapper .acud-checkbox {
390
393
  top: 0;
391
394
  }
392
- .acud-cascader-menu-item-checkbox .acud-checkbox + span {
395
+ .acud-cascader-menu-item-label {
393
396
  overflow: hidden;
394
397
  text-overflow: ellipsis;
395
398
  }
@@ -411,15 +414,11 @@
411
414
  }
412
415
  .acud-cascader-menu-item-expand {
413
416
  position: relative;
417
+ padding-right: 8px;
414
418
  }
415
419
  .acud-cascader-menu-item-expand .acud-cascader-menu-item-expand-icon,
416
420
  .acud-cascader-menu-item-loading-icon {
417
421
  color: #84868C;
418
- position: absolute;
419
- right: 8px;
420
- top: 50%;
421
- transform: translateY(-50%);
422
- line-height: 0;
423
422
  }
424
423
  .acud-cascader-menu-item-expand .acud-cascader-menu-item-expand-icon:hover,
425
424
  .acud-cascader-menu-item-loading-icon:hover {
@@ -444,3 +443,8 @@
444
443
  .acud-cascader-menu-item .acud-cascader-menu-item-keyword {
445
444
  color: #2468F2;
446
445
  }
446
+ .acud-cascader-tag-tooltip.acud-tooltip,
447
+ .acud-cascader-picker-label-tooltip.acud-tooltip,
448
+ .acud-cascader-menu-item-tooltip.acud-tooltip {
449
+ max-width: initial;
450
+ }
@@ -120,7 +120,7 @@
120
120
  transition: transform .48s;
121
121
 
122
122
  &-expand {
123
- transform: rotate(-180deg);
123
+ transform: rotate(180deg);
124
124
  }
125
125
 
126
126
  & > svg {
@@ -302,7 +302,9 @@
302
302
  &-menu-item {
303
303
  .basic-config(@cascader-menu-item-tp, @cascader-menu-item-p);
304
304
 
305
- padding: 0 @padding-sm 0 @padding-m;
305
+ display: flex;
306
+ justify-content: space-between;
307
+ padding: 0 3 * @P;
306
308
  height: @cascader-menu-item-height;
307
309
  line-height: @cascader-menu-item-height;
308
310
  cursor: pointer;
@@ -311,24 +313,25 @@
311
313
  transition: all .3s;
312
314
 
313
315
  &-content {
314
- width: calc(100% - 3 * @P);
316
+ display: flex;
315
317
  overflow: hidden;
316
318
  text-overflow: ellipsis;
317
319
  }
318
320
 
319
- &-checkbox {
321
+ &-checkbox.@{acud-prefix}-checkbox-wrapper {
320
322
  vertical-align: middle;
323
+ margin-right: 2 * @P;
321
324
 
322
325
  .@{acud-prefix}-checkbox {
323
326
  top: 0;
324
-
325
- & + span {
326
- overflow: hidden;
327
- text-overflow: ellipsis;
328
- }
329
327
  }
330
328
  }
331
329
 
330
+ &-label {
331
+ overflow: hidden;
332
+ text-overflow: ellipsis;
333
+ }
334
+
332
335
  &-disabled {
333
336
  cursor: not-allowed;
334
337
 
@@ -352,22 +355,26 @@
352
355
 
353
356
  &-expand {
354
357
  position: relative;
358
+ padding-right: 2 * @P;
355
359
  }
356
360
 
357
361
  &-expand &-expand-icon,
358
362
  &-loading-icon {
359
363
  .basic-tp-config(tp7);
360
- position: absolute;
361
- right: 2 * @P;
362
- top: 50%;
363
- transform: translateY(-50%);
364
- line-height: 0;
365
364
  }
366
365
 
367
366
  & &-keyword {
368
367
  color: @B6;
369
368
  }
370
369
  }
370
+
371
+ &-tag-tooltip,
372
+ &-picker-label-tooltip,
373
+ &-menu-item-tooltip {
374
+ &.@{acud-prefix}-tooltip {
375
+ max-width: initial;
376
+ }
377
+ }
371
378
  }
372
379
 
373
380
  // @import './rtl';
@@ -140,12 +140,11 @@ var Dropdown = function Dropdown(props) {
140
140
  return fixedModeOverlay;
141
141
  };
142
142
 
143
- return /*#__PURE__*/_react["default"].createElement(_rcDropdown.RcDropdown, (0, _extends2["default"])({
143
+ return /*#__PURE__*/_react["default"].createElement(_rcDropdown.RcDropdown, (0, _extends2["default"])({}, rest, {
144
144
  prefixCls: prefixCls,
145
145
  trigger: triggerActions,
146
146
  onVisibleChange: onVisibleChange,
147
- visible: mergedVisible
148
- }, rest, {
147
+ visible: mergedVisible,
149
148
  overlay: function overlay() {
150
149
  return renderOverlay();
151
150
  },
@@ -9,16 +9,17 @@
9
9
  .@{form-item-prefix-cls}-label {
10
10
  flex-grow: 0;
11
11
  line-height: @form-line-height-base;
12
+ padding-left: ~"calc(.5em + @{P})";
13
+ box-sizing: content-box;
12
14
 
13
15
  &:not([class*=~"' @{acud-prefix}-col-'"]) {
14
16
  margin-right: 4 * @P;
15
17
  }
16
18
 
17
19
  > label {
18
- padding-left: ~"calc(.5em + 4px)";
19
20
  &.@{form-item-prefix-cls}-required:not(.@{form-item-prefix-cls}-required-mark-optional)::before {
20
21
  text-indent: -.5em;
21
- margin-left: -4px;
22
+ margin-left: -@P;
22
23
  }
23
24
  }
24
25
  }
@@ -111,13 +111,12 @@
111
111
  .acud-form-horizontal .acud-form-item-label {
112
112
  flex-grow: 0;
113
113
  line-height: 1.6667;
114
+ padding-left: calc(.5em + 4px);
115
+ box-sizing: content-box;
114
116
  }
115
117
  .acud-form-horizontal .acud-form-item-label:not([class*=' acud-col-']) {
116
118
  margin-right: 16px;
117
119
  }
118
- .acud-form-horizontal .acud-form-item-label > label {
119
- padding-left: calc(.5em + 4px);
120
- }
121
120
  .acud-form-horizontal .acud-form-item-label > label.acud-form-item-required:not(.acud-form-item-required-mark-optional)::before {
122
121
  text-indent: -0.5em;
123
122
  margin-left: -4px;
@@ -8,8 +8,9 @@ import { MenuItemInterface } from './MenuItem';
8
8
  import { SubMenuInterface } from './SubMenu';
9
9
  import { MenuHeadInterface } from './MenuHead';
10
10
  import { HeaderMenuProps } from './header';
11
+ import { GlobalSiderBarProps } from './globalSilderBar';
11
12
  import { BaseMenuProps } from './baseMenu';
12
- export interface MenuProps extends RcMenuProps, HeaderMenuProps, BaseMenuProps {
13
+ export interface MenuProps extends RcMenuProps, HeaderMenuProps, BaseMenuProps, GlobalSiderBarProps {
13
14
  iconList?: React.ReactNode[];
14
15
  scope?: 'global' | 'local';
15
16
  mode?: 'inline' | 'horizontal' | 'inline';
@@ -7,6 +7,7 @@ export interface RadioProps {
7
7
  disabled?: boolean | undefined;
8
8
  children?: React.ReactNode;
9
9
  label?: string;
10
+ className?: string;
10
11
  onChange?: (e: Event) => {} | void;
11
12
  value?: any;
12
13
  }
@@ -46,9 +46,10 @@ var InternalRadio = function InternalRadio(props, ref) {
46
46
  var _props$prefixCls = props.prefixCls,
47
47
  prefixCls = _props$prefixCls === void 0 ? 'acud-radio' : _props$prefixCls,
48
48
  children = props.children,
49
+ className = props.className,
49
50
  onChange = props.onChange,
50
51
  label = props.label,
51
- restProps = __rest(props, ["prefixCls", "children", "onChange", "label"]);
52
+ restProps = __rest(props, ["prefixCls", "children", "className", "onChange", "label"]);
52
53
 
53
54
  var radioRef = /*#__PURE__*/_react["default"].createRef();
54
55
 
@@ -64,7 +65,7 @@ var InternalRadio = function InternalRadio(props, ref) {
64
65
  radioProps.disabled = props.disabled || (context === null || context === void 0 ? void 0 : context.disabled);
65
66
  }
66
67
 
67
- var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames));
68
+ var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames), className);
68
69
  var handleClick = (0, _react.useCallback)(function (e) {
69
70
  var _a;
70
71
 
@@ -44,9 +44,10 @@ var _default = function _default(props) {
44
44
  var _props$prefixCls = props.prefixCls,
45
45
  prefixCls = _props$prefixCls === void 0 ? 'acud-radio-button' : _props$prefixCls,
46
46
  children = props.children,
47
+ className = props.className,
47
48
  onChange = props.onChange,
48
49
  label = props.label,
49
- restProps = __rest(props, ["prefixCls", "children", "onChange", "label"]);
50
+ restProps = __rest(props, ["prefixCls", "children", "className", "onChange", "label"]);
50
51
 
51
52
  var context = (0, _react.useContext)(_context["default"]);
52
53
  var radioProps = (0, _extends2["default"])({}, restProps);
@@ -56,7 +57,7 @@ var _default = function _default(props) {
56
57
  radioProps.disabled = props.disabled || (context === null || context === void 0 ? void 0 : context.disabled);
57
58
  }
58
59
 
59
- var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames));
60
+ var classes = (0, _classnames["default"])(prefixCls, (_classNames = {}, (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-disabled"), radioProps.disabled), (0, _defineProperty2["default"])(_classNames, "".concat(prefixCls, "-checked"), radioProps.checked), _classNames), className);
60
61
  var handleClick = (0, _react.useCallback)(function (e) {
61
62
  var _a;
62
63
 
@@ -8,6 +8,7 @@ export interface BaseRadioGourpProps {
8
8
  optionType?: string;
9
9
  options?: RadioProps[];
10
10
  children?: React.ReactNode;
11
+ className?: string;
11
12
  onChange?: (e: Event) => {} | void;
12
13
  }
13
14
  declare const _default: (props: BaseRadioGourpProps) => JSX.Element;
@@ -15,6 +15,8 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
15
15
 
16
16
  var _react = _interopRequireWildcard(require("react"));
17
17
 
18
+ var _classnames = _interopRequireDefault(require("classnames"));
19
+
18
20
  var _useMergedState3 = _interopRequireDefault(require("../_util/hooks/useMergedState"));
19
21
 
20
22
  var _Radio = _interopRequireDefault(require("./Radio"));
@@ -34,6 +36,7 @@ var _default = function _default(props) {
34
36
  optionType = _props$optionType === void 0 ? 'default' : _props$optionType,
35
37
  options = props.options,
36
38
  children = props.children,
39
+ className = props.className,
37
40
  onChange = props.onChange;
38
41
 
39
42
  var _useMergedState = (0, _useMergedState3["default"])(props.defaultValue, {
@@ -57,8 +60,9 @@ var _default = function _default(props) {
57
60
  }
58
61
  }, [value, disabled, onChange]);
59
62
  var Compo = optionType === 'default' ? _Radio["default"] : _Radio["default"].Button;
63
+ var classNames = (0, _classnames["default"])(prefixCls, className);
60
64
  return /*#__PURE__*/_react["default"].createElement(_react.Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
61
- className: prefixCls
65
+ className: classNames
62
66
  }, /*#__PURE__*/_react["default"].createElement(_context["default"].Provider, {
63
67
  value: {
64
68
  value: value,
@@ -4,6 +4,7 @@ export interface ContextProps {
4
4
  value: any;
5
5
  disabled?: boolean;
6
6
  name?: string;
7
+ className?: string;
7
8
  }
8
9
  declare const RadioGroupContext: import("react").Context<ContextProps>;
9
10
  export default RadioGroupContext;
@@ -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 {
@@ -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
@@ -80,11 +80,7 @@ function transfer(props) {
80
80
  tKeys = _React$useState2[0],
81
81
  setTKeys = _React$useState2[1];
82
82
 
83
- React.useEffect(function () {
84
- if (Array.isArray(targetKeys)) {
85
- setTKeys(targetKeys);
86
- }
87
- }, [targetKeys]);
83
+ var mergedKeys = 'targetKeys' in props ? targetKeys : tKeys;
88
84
  React.useEffect(function () {
89
85
  onChange && onChange(tKeys);
90
86
  }, [tKeys]);
@@ -95,14 +91,14 @@ function transfer(props) {
95
91
  displayType: displayType,
96
92
  locale: userLocale,
97
93
  prefixCls: prefixCls,
98
- tKeys: tKeys,
94
+ tKeys: mergedKeys,
99
95
  setTKeys: setTKeys,
100
96
  expansionSource: expansionSource
101
97
  })), /*#__PURE__*/React.createElement(_Target["default"], (0, _extends2["default"])({}, props, {
102
98
  displayType: displayType,
103
99
  locale: userLocale,
104
100
  prefixCls: prefixCls,
105
- tKeys: tKeys,
101
+ tKeys: mergedKeys,
106
102
  setTKeys: setTKeys,
107
103
  expansionSource: expansionSource
108
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,