acud 0.0.68 → 0.0.71

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 (84) hide show
  1. package/dist/acud.css +51 -38
  2. package/dist/acud.css.map +1 -1
  3. package/dist/acud.js +513 -477
  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 +21 -14
  14. package/es/cascader/style/index.css +15 -11
  15. package/es/cascader/style/index.less +21 -14
  16. package/es/date-picker/generatePicker/generateSinglePicker.js +7 -5
  17. package/es/dropdown/dropdown.js +2 -3
  18. package/es/form/style/horizontal.less +3 -2
  19. package/es/form/style/index.css +2 -3
  20. package/es/input/style/index.css +3 -0
  21. package/es/input/style/index.less +3 -0
  22. package/es/input-number/src/hooks/useLayoutEffect.d.ts +1 -1
  23. package/es/locale/en_US.js +2 -0
  24. package/es/locale/zh_CN.js +2 -0
  25. package/es/menu/menu.d.ts +2 -1
  26. package/es/radio/Radio.d.ts +1 -0
  27. package/es/radio/Radio.js +3 -2
  28. package/es/radio/RadioButton.js +3 -2
  29. package/es/radio/RadioGroup.d.ts +1 -0
  30. package/es/radio/RadioGroup.js +4 -1
  31. package/es/radio/context.d.ts +1 -0
  32. package/es/toast/index.js +5 -6
  33. package/es/toast/style/index.css +1 -1
  34. package/es/toast/style/index.less +3 -3
  35. package/es/transfer/SourceList.js +1 -0
  36. package/es/transfer/index.js +3 -7
  37. package/es/transfer/style/index.css +3 -0
  38. package/es/transfer/style/index.less +3 -0
  39. package/es/upload/Upload.js +6 -1
  40. package/es/upload/UploadList/ListItem.d.ts +1 -0
  41. package/es/upload/UploadList/ListItem.js +5 -3
  42. package/es/upload/UploadList/index.js +7 -3
  43. package/es/upload/interface.d.ts +2 -0
  44. package/es/upload/style/index.css +26 -22
  45. package/es/upload/style/index.less +29 -22
  46. package/lib/cascader/Cascader.js +2 -1
  47. package/lib/cascader/MenuItem.js +7 -13
  48. package/lib/cascader/Menus.d.ts +3 -2
  49. package/lib/cascader/Menus.js +31 -24
  50. package/lib/cascader/index.js +22 -14
  51. package/lib/cascader/style/index.css +15 -11
  52. package/lib/cascader/style/index.less +21 -14
  53. package/lib/date-picker/generatePicker/generateSinglePicker.js +7 -5
  54. package/lib/dropdown/dropdown.js +2 -3
  55. package/lib/form/style/horizontal.less +3 -2
  56. package/lib/form/style/index.css +2 -3
  57. package/lib/input/style/index.css +3 -0
  58. package/lib/input/style/index.less +3 -0
  59. package/lib/input-number/src/hooks/useLayoutEffect.d.ts +1 -1
  60. package/lib/locale/en_US.js +5 -0
  61. package/lib/locale/zh_CN.js +5 -0
  62. package/lib/menu/menu.d.ts +2 -1
  63. package/lib/radio/Radio.d.ts +1 -0
  64. package/lib/radio/Radio.js +3 -2
  65. package/lib/radio/RadioButton.js +3 -2
  66. package/lib/radio/RadioGroup.d.ts +1 -0
  67. package/lib/radio/RadioGroup.js +5 -1
  68. package/lib/radio/context.d.ts +1 -0
  69. package/lib/toast/index.js +5 -6
  70. package/lib/toast/style/index.css +1 -1
  71. package/lib/toast/style/index.less +3 -3
  72. package/lib/transfer/SourceList.js +1 -0
  73. package/lib/transfer/index.js +3 -7
  74. package/lib/transfer/style/index.css +3 -0
  75. package/lib/transfer/style/index.less +3 -0
  76. package/lib/upload/Upload.js +6 -1
  77. package/lib/upload/UploadList/ListItem.d.ts +1 -0
  78. package/lib/upload/UploadList/ListItem.js +5 -3
  79. package/lib/upload/UploadList/index.js +7 -3
  80. package/lib/upload/interface.d.ts +2 -0
  81. package/lib/upload/style/index.css +26 -22
  82. package/lib/upload/style/index.less +29 -22
  83. package/package.json +1 -1
  84. package/CHANGELOG.md +0 -4
@@ -1,6 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import React, { Fragment, useCallback } from 'react';
4
+ import classnames from 'classnames';
4
5
  import useMergedState from '../_util/hooks/useMergedState';
5
6
  import Radio from './Radio';
6
7
  import Context from './context';
@@ -12,6 +13,7 @@ export default (function (props) {
12
13
  optionType = _props$optionType === void 0 ? 'default' : _props$optionType,
13
14
  options = props.options,
14
15
  children = props.children,
16
+ className = props.className,
15
17
  onChange = props.onChange;
16
18
 
17
19
  var _useMergedState = useMergedState(props.defaultValue, {
@@ -35,8 +37,9 @@ export default (function (props) {
35
37
  }
36
38
  }, [value, disabled, onChange]);
37
39
  var Compo = optionType === 'default' ? Radio : Radio.Button;
40
+ var classNames = classnames(prefixCls, className);
38
41
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
39
- className: prefixCls
42
+ className: classNames
40
43
  }, /*#__PURE__*/React.createElement(Context.Provider, {
41
44
  value: {
42
45
  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;
package/es/toast/index.js CHANGED
@@ -54,7 +54,6 @@ function ToastDom(props) {
54
54
 
55
55
  var _useState = useState(null),
56
56
  _useState2 = _slicedToArray(_useState, 2),
57
- timerID = _useState2[0],
58
57
  setTimerID = _useState2[1];
59
58
 
60
59
  var _useState3 = useState(countdown),
@@ -80,9 +79,9 @@ function ToastDom(props) {
80
79
  }
81
80
 
82
81
  return function () {
83
- if (timerID) {
84
- setTimerID(null);
85
- }
82
+ // destory时可能timerID并没有 但是计时器存在 设置值时react会警告
83
+ // if (timerID) {
84
+ setTimerID(null); // }
86
85
  };
87
86
  }, [counter]);
88
87
  return /*#__PURE__*/React.createElement("div", {
@@ -135,7 +134,7 @@ var handler = {
135
134
  var tempDuration = args.duration;
136
135
  args.duration = 0; // 设置样式 有描述和没描述间距不一样
137
136
 
138
- var tempClassName = props.className + ' ' + PREFIX;
137
+ var tempClassName = (props === null || props === void 0 ? void 0 : props.className) + ' ' + PREFIX;
139
138
 
140
139
  if (args.description) {
141
140
  tempClassName += ' ' + getPrefixCls('notification') + '-has-description';
@@ -153,7 +152,7 @@ var handler = {
153
152
  description: args.description,
154
153
  countdown: tempDuration,
155
154
  notificationKey: key,
156
- onClose: props.onClose
155
+ onClose: props === null || props === void 0 ? void 0 : props.onClose
157
156
  });
158
157
  args.description = /*#__PURE__*/React.createElement(DescriptionDom, {
159
158
  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 {
@@ -143,6 +143,7 @@ export default function sourceList(props) {
143
143
  return expandGroup(e, data.key);
144
144
  }
145
145
  }, expandGroupKey.includes(data.key) ? /*#__PURE__*/React.createElement(OutlinedDown, null) : /*#__PURE__*/React.createElement(OutlinedRight, null)), /*#__PURE__*/React.createElement(Checkbox, {
146
+ className: "".concat(prefixCls, "-datasource-item-checkbox"),
146
147
  checked: checked,
147
148
  disabled: data.disabled,
148
149
  indeterminate: indeterminate
@@ -60,11 +60,7 @@ export default function transfer(props) {
60
60
  tKeys = _React$useState2[0],
61
61
  setTKeys = _React$useState2[1];
62
62
 
63
- React.useEffect(function () {
64
- if (Array.isArray(targetKeys)) {
65
- setTKeys(targetKeys);
66
- }
67
- }, [targetKeys]);
63
+ var mergedKeys = 'targetKeys' in props ? targetKeys : tKeys;
68
64
  React.useEffect(function () {
69
65
  onChange && onChange(tKeys);
70
66
  }, [tKeys]);
@@ -75,14 +71,14 @@ export default function transfer(props) {
75
71
  displayType: displayType,
76
72
  locale: userLocale,
77
73
  prefixCls: prefixCls,
78
- tKeys: tKeys,
74
+ tKeys: mergedKeys,
79
75
  setTKeys: setTKeys,
80
76
  expansionSource: expansionSource
81
77
  })), /*#__PURE__*/React.createElement(Target, _extends({}, props, {
82
78
  displayType: displayType,
83
79
  locale: userLocale,
84
80
  prefixCls: prefixCls,
85
- tKeys: tKeys,
81
+ tKeys: mergedKeys,
86
82
  setTKeys: setTKeys,
87
83
  expansionSource: expansionSource
88
84
  })));
@@ -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;
@@ -77,6 +77,7 @@ var InternalUpload = function InternalUpload(props, ref) {
77
77
  type = props.type,
78
78
  children = props.children,
79
79
  style = props.style,
80
+ motionDeadline = props.motionDeadline,
80
81
  itemRender = props.itemRender,
81
82
  maxCount = props.maxCount,
82
83
  description = props.description,
@@ -421,6 +422,7 @@ var InternalUpload = function InternalUpload(props, ref) {
421
422
  return /*#__PURE__*/React.createElement(UploadList, {
422
423
  listType: listType,
423
424
  items: mergedFileList,
425
+ motionDeadline: motionDeadline,
424
426
  previewFile: previewFile,
425
427
  onPreview: onPreview,
426
428
  onDownload: onDownload,
@@ -448,12 +450,15 @@ var InternalUpload = function InternalUpload(props, ref) {
448
450
 
449
451
  var dragCls = classNames(prefixCls, (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-drag"), true), _defineProperty(_classNames, "".concat(prefixCls, "-drag-uploading"), mergedFileList.some(function (file) {
450
452
  return file.status === 'uploading';
451
- })), _defineProperty(_classNames, "".concat(prefixCls, "-drag-hover"), dragState === 'dragover'), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
453
+ })), _defineProperty(_classNames, "".concat(prefixCls, "-drag-hover"), dragState === 'dragover'), _defineProperty(_classNames, "".concat(prefixCls, "-drag-click"), dragState === 'mousedown'), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames, "".concat(prefixCls, "-rtl"), direction === 'rtl'), _classNames), className);
452
454
  return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("div", {
453
455
  className: dragCls,
454
456
  onDrop: onFileDrop,
455
457
  onDragOver: onFileDrop,
456
458
  onDragLeave: onFileDrop,
459
+ onMouseDown: onFileDrop,
460
+ onMouseUp: onFileDrop,
461
+ onMouseLeave: onFileDrop,
457
462
  style: style
458
463
  }, /*#__PURE__*/React.createElement(RcUpload, _extends({}, rcUploadProps, {
459
464
  ref: upload,
@@ -3,6 +3,7 @@ import { ItemRender, UploadFile, UploadListProgressProps, UploadListType, Upload
3
3
  export interface ListItemProps {
4
4
  prefixCls: string;
5
5
  className?: string;
6
+ motionDeadline?: number;
6
7
  style?: React.CSSProperties;
7
8
  locale: UploadLocale;
8
9
  file: UploadFile;
@@ -13,7 +13,7 @@ import EyeOutlined from "acud-icon/es/icons/OutlinedEye";
13
13
  import DeleteOutlined from "acud-icon/es/icons/OutlinedDelete";
14
14
  import OutlinedClose from "acud-icon/es/icons/OutlinedClose";
15
15
  import DownloadOutlined from "acud-icon/es/icons/OutlinedCloudDownload";
16
- import OutlinedRefresh from "acud-icon/es/icons/OutlinedRefresh";
16
+ import OutlinedButtonUpload from "acud-icon/es/icons/OutlinedButtonUpload";
17
17
  import Tooltip from '../../tooltip';
18
18
  import Progress from '../../progress';
19
19
  import { ConfigContext } from '../../config-provider';
@@ -32,6 +32,8 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
32
32
  actionIconRender = _ref.actionIconRender,
33
33
  itemRender = _ref.itemRender,
34
34
  isImgUrl = _ref.isImgUrl,
35
+ _ref$motionDeadline = _ref.motionDeadline,
36
+ motionDeadline = _ref$motionDeadline === void 0 ? 2000 : _ref$motionDeadline,
35
37
  showPreviewIcon = _ref.showPreviewIcon,
36
38
  showRemoveIcon = _ref.showRemoveIcon,
37
39
  showDownloadIcon = _ref.showDownloadIcon,
@@ -157,7 +159,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
157
159
  title: locale.previewFile
158
160
  }, /*#__PURE__*/React.createElement(EyeOutlined, null)) : null; // 上传icon
159
161
 
160
- var uploadIcon = showUploadIcon ? actionIconRender((typeof customUploadIcon === 'function' ? customUploadIcon(file) : customUploadIcon) || /*#__PURE__*/React.createElement(OutlinedRefresh, null), function () {
162
+ var uploadIcon = showUploadIcon ? actionIconRender((typeof customUploadIcon === 'function' ? customUploadIcon(file) : customUploadIcon) || /*#__PURE__*/React.createElement(OutlinedButtonUpload, null), function () {
161
163
  return onUpload(file);
162
164
  }, prefixCls, locale.uploadFile) : null;
163
165
  var actions = listType === 'picture-card' && file.status !== 'uploading' && /*#__PURE__*/React.createElement("span", {
@@ -186,7 +188,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
186
188
  }, iconAndPreview), actions, showProgress && /*#__PURE__*/React.createElement(CSSMotion, {
187
189
  motionName: "".concat(rootPrefixCls, "-fade"),
188
190
  visible: file.status === 'uploading',
189
- motionDeadline: 2000
191
+ motionDeadline: motionDeadline
190
192
  }, function (_ref2) {
191
193
  var motionClassName = _ref2.className;
192
194
  // show loading icon if upload progress listener is disabled
@@ -58,7 +58,7 @@ var renderIcon = function renderIcon(fileName) {
58
58
  }
59
59
 
60
60
  return /*#__PURE__*/React.createElement(Icon, {
61
- width: 14
61
+ width: 16
62
62
  });
63
63
  };
64
64
 
@@ -85,6 +85,8 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
85
85
  downloadIcon = _ref.downloadIcon,
86
86
  uploadIcon = _ref.uploadIcon,
87
87
  progress = _ref.progress,
88
+ _ref$motionDeadline = _ref.motionDeadline,
89
+ motionDeadline = _ref$motionDeadline === void 0 ? 2000 : _ref$motionDeadline,
88
90
  appendAction = _ref.appendAction,
89
91
  itemRender = _ref.itemRender;
90
92
  var forceUpdate = useForceUpdate();
@@ -221,7 +223,7 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
221
223
  var animationDirection = listType === 'picture-card' ? 'animate-inline' : 'animate'; // const transitionName = list.length === 0 ? '' : `${prefixCls}-${animationDirection}`;
222
224
 
223
225
  var motionConfig = {
224
- motionDeadline: 2000,
226
+ motionDeadline: motionDeadline,
225
227
  motionName: "".concat(prefixCls, "-").concat(animationDirection),
226
228
  keys: motionKeyList,
227
229
  motionAppear: motionAppear
@@ -274,7 +276,8 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
274
276
  onPreview: onInternalPreview,
275
277
  onDownload: onInternalDownload,
276
278
  onClose: onInternalClose,
277
- onUpload: onInternalUpload
279
+ onUpload: onInternalUpload,
280
+ motionDeadline: motionDeadline
278
281
  });
279
282
  }));
280
283
  };
@@ -287,6 +290,7 @@ UploadList.defaultProps = {
287
290
  // showInfo: false
288
291
  },
289
292
  showUploadIcon: true,
293
+ motionDeadline: 2000,
290
294
  showRemoveIcon: true,
291
295
  showDownloadIcon: false,
292
296
  showPreviewIcon: true,
@@ -69,6 +69,7 @@ declare type BeforeUploadValueType = void | boolean | string | Blob | File;
69
69
  export interface UploadProps<T = any> {
70
70
  type?: UploadType;
71
71
  name?: string;
72
+ motionDeadline?: number;
72
73
  defaultFileList?: Array<UploadFile<T>>;
73
74
  fileList?: Array<UploadFile<T>>;
74
75
  action?: string | ((file: RcFile) => string) | ((file: RcFile) => PromiseLike<string>);
@@ -122,6 +123,7 @@ export interface UploadListProps<T = any> {
122
123
  items?: Array<UploadFile<T>>;
123
124
  progress?: UploadListProgressProps;
124
125
  prefixCls?: string;
126
+ motionDeadline?: number;
125
127
  showRemoveIcon?: boolean;
126
128
  showDownloadIcon?: boolean;
127
129
  showPreviewIcon?: boolean;
@@ -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
  }
@@ -351,7 +355,7 @@
351
355
  position: relative;
352
356
  height: 66px;
353
357
  padding: 0;
354
- border: 1px 1px #d9d9d9;
358
+ border: 1px solid #d9d9d9;
355
359
  border-radius: 0px;
356
360
  }
357
361
  .acud-upload-list-picture .acud-upload-list-item:hover,
@@ -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,
@@ -97,7 +97,12 @@
97
97
  &.@{upload-prefix-cls}-drag-hover:not(.@{upload-prefix-cls}-disabled) {
98
98
  border-color: @primary-7;
99
99
  }
100
-
100
+ &.@{upload-prefix-cls}-drag-click:not(.@{upload-prefix-cls}-disabled) {
101
+ border-color: @B7;
102
+ &:hover{
103
+ border-color: @B7;
104
+ }
105
+ }
101
106
  &.@{upload-prefix-cls}-disabled {
102
107
  background: @background-color-light;
103
108
  cursor: not-allowed;
@@ -181,10 +186,9 @@
181
186
  // ============================ Item ============================
182
187
  &-item {
183
188
  position: relative;
184
- height: @P * 6;
185
- margin-top: @margin-xs;
186
189
  font-size: @font-size-base;
187
-
190
+ transition: background-color .3s;
191
+ overflow-y: hidden;
188
192
  &-name {
189
193
  display: inline-block;
190
194
  width: 100%;
@@ -198,7 +202,7 @@
198
202
 
199
203
  &-card-actions {
200
204
  position: absolute;
201
- right: 0;
205
+ right: @P;
202
206
 
203
207
  &-btn {
204
208
  opacity: 0;
@@ -226,9 +230,8 @@
226
230
  }
227
231
 
228
232
  &-info {
229
- height: 100%;
233
+ height: @P * 6;
230
234
  padding: 0 .5 * @P;
231
- transition: background-color .3s;
232
235
  border-radius: @R2;
233
236
 
234
237
  > span {
@@ -264,7 +267,7 @@
264
267
  }
265
268
  }
266
269
 
267
- &:hover &-info {
270
+ &:hover {
268
271
  // background-color: @item-hover-bg;
269
272
  background-color: ~'@{@{upload-list-p}-hover-background-color}';
270
273
  }
@@ -303,10 +306,9 @@
303
306
  }
304
307
 
305
308
  &-progress {
306
- position: absolute;
307
- bottom: -12px;
308
309
  width: 100%;
309
310
  padding-left: @P;
311
+ padding-right: @P;
310
312
  font-size: @T2;
311
313
  line-height: 0;
312
314
  }
@@ -319,7 +321,7 @@
319
321
  position: relative;
320
322
  height: 66px;
321
323
  padding: 0;
322
- border: @border-width-base @upload-picture-card-border-style @border-color-base;
324
+ border: @border-width-base solid @border-color-base;
323
325
  border-radius: @border-radius-base;
324
326
 
325
327
  &:hover {
@@ -410,13 +412,6 @@
410
412
  margin-bottom: 12px;
411
413
  }
412
414
 
413
- .@{upload-item}-progress {
414
- bottom: 14px;
415
- width: ~'calc(100% - 24px)';
416
- margin-top: 0;
417
- padding-left: 56px;
418
- }
419
-
420
415
  .@{iconfont-css-prefix}-outlined-close {
421
416
  position: absolute;
422
417
  top: 8px;
@@ -478,7 +473,7 @@
478
473
  transform: translate(-50%, -50%);
479
474
  opacity: 0;
480
475
  transition: all .3s;
481
- .@{iconfont-css-prefix}-outlined-refresh,
476
+ .@{iconfont-css-prefix}-outlined-button-upload,
482
477
  .@{iconfont-css-prefix}-outlined-eye,
483
478
  .@{iconfont-css-prefix}-outlined-download,
484
479
  .@{iconfont-css-prefix}-outlined-delete {
@@ -510,7 +505,7 @@
510
505
  display: block;
511
506
  width: 100%;
512
507
  height: 100%;
513
- object-fit: contain;
508
+ object-fit: cover;
514
509
  }
515
510
 
516
511
  .@{upload-item}-name {
@@ -544,6 +539,7 @@
544
539
  }
545
540
 
546
541
  .@{upload-item}-progress {
542
+ position: absolute;
547
543
  top: 44px;
548
544
  padding-left: 8px;
549
545
  padding-right: 8px;
@@ -589,12 +585,23 @@
589
585
  }
590
586
 
591
587
  .@{upload-item}-card-actions {
592
- position: static;
588
+ // position: static;
593
589
  }
594
590
  }
595
591
 
596
592
  // ============================ Text ============================
597
-
593
+ &-text {
594
+ &-container {
595
+ margin-bottom: @P;
596
+ &:first-child {
597
+ margin-top: @P * 2;
598
+ }
599
+ }
600
+ .@{upload-item}-progress {
601
+ margin-top: @P;
602
+ margin-bottom: @P * 0.5;
603
+ }
604
+ }
598
605
  // =========================== Motion ===========================
599
606
  .@{upload-prefix-cls}-animate-inline-appear,
600
607
  .@{upload-prefix-cls}-animate-inline-enter,
@@ -195,11 +195,12 @@ var Cascader = /*#__PURE__*/function (_React$Component) {
195
195
  }, e);
196
196
  }
197
197
 
198
+ loadData(activeOptions);
199
+
198
200
  _this.setState({
199
201
  activeValue: activeValue
200
202
  });
201
203
 
202
- loadData(activeOptions);
203
204
  return;
204
205
  }
205
206
 
@@ -57,16 +57,12 @@ var MenuItem = function MenuItem(props) {
57
57
  var handleMouseEnter = (0, _react.useCallback)(function (e) {
58
58
  onMouseEnter === null || onMouseEnter === void 0 ? void 0 : onMouseEnter(e);
59
59
  var ele = targetRef.current;
60
-
61
- if (isMulti) {
62
- ele = ele === null || ele === void 0 ? void 0 : ele.parentNode;
63
- }
64
-
65
60
  var overflow = (ele === null || ele === void 0 ? void 0 : ele.scrollWidth) > (ele === null || ele === void 0 ? void 0 : ele.clientWidth);
66
61
  setOverflow(overflow);
67
- }, [isMulti, onMouseEnter]);
62
+ }, [onMouseEnter]);
68
63
  return /*#__PURE__*/_react["default"].createElement(_tooltip["default"], {
69
- title: title
64
+ title: title,
65
+ overlayClassName: "".concat(prefixCls, "-menu-item-tooltip")
70
66
  }, /*#__PURE__*/_react["default"].createElement("li", (0, _extends2["default"])({
71
67
  className: menuItemCls
72
68
  }, expandProps, {
@@ -76,21 +72,19 @@ var MenuItem = function MenuItem(props) {
76
72
  return e.preventDefault();
77
73
  },
78
74
  onMouseEnter: handleMouseEnter
79
- }), /*#__PURE__*/_react["default"].createElement("div", (0, _extends2["default"])({}, isMulti ? {} : {
80
- ref: targetRef
81
- }, {
75
+ }), /*#__PURE__*/_react["default"].createElement("div", {
82
76
  className: "".concat(prefixCls, "-menu-item-content"),
83
77
  disabled: option.disabled
84
- }), isMulti ? /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
78
+ }, isMulti && /*#__PURE__*/_react["default"].createElement(_checkbox["default"], {
85
79
  className: "".concat(prefixCls, "-menu-item-checkbox"),
86
80
  disabled: option.disabled,
87
81
  checked: checked,
88
82
  indeterminate: indeterminate,
89
83
  onChange: onMultiSelect,
90
84
  onClick: handleMultiClick
91
- }, /*#__PURE__*/_react["default"].cloneElement(labelContent, {
85
+ }), /*#__PURE__*/_react["default"].cloneElement(labelContent, {
92
86
  ref: targetRef
93
- })) : labelContent), expandIconNode, loadingIconNode));
87
+ })), expandIconNode, loadingIconNode));
94
88
  };
95
89
 
96
90
  var _default = MenuItem;
@@ -52,11 +52,12 @@ declare class Menus extends React.Component<MenusProps, MenusState> {
52
52
  saveMenuWrap: (menuWrap: any) => void;
53
53
  saveMenus: (menuIndex: any) => (menus: any) => void;
54
54
  saveMenuItems: (index: any) => (node: any) => void;
55
- openMenuScroll(): void;
56
55
  scrollActiveItemToView(): void;
57
56
  setMenuPosition(callback?: () => void): void;
57
+ handleMenuScrollChange(menuScrollOpen: any): void;
58
58
  handleMenuScroll: (menuIndex: any) => () => void;
59
- onShowPrepare: () => Promise<unknown>;
59
+ onShowActive: () => void;
60
+ onShowEnd: () => void;
60
61
  render(): JSX.Element;
61
62
  }
62
63
  export default Menus;