acud 0.0.64 → 0.0.67

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 (103) hide show
  1. package/dist/acud.css +131 -39
  2. package/dist/acud.css.map +1 -1
  3. package/dist/acud.js +799 -212
  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 +11 -7
  8. package/dist/acud.min.js.map +1 -1
  9. package/es/breadcrumb/BreadcrumbItem.d.ts +1 -1
  10. package/es/breadcrumb/BreadcrumbItem.js +16 -4
  11. package/es/dialog-box/style/index.css +4 -4
  12. package/es/dropdown/dropdown-button.js +8 -4
  13. package/es/dropdown/style/index.css +2 -1
  14. package/es/dropdown/style/index.less +2 -1
  15. package/es/modal/DialogBox.d.ts +46 -0
  16. package/es/modal/DialogBox.js +152 -0
  17. package/es/modal/Modal.d.ts +5 -2
  18. package/es/modal/Modal.js +6 -4
  19. package/es/modal/dialog.d.ts +17 -0
  20. package/es/modal/dialog.js +123 -0
  21. package/es/modal/index.d.ts +11 -2
  22. package/es/modal/index.js +10 -1
  23. package/es/modal/style/index.css +79 -13
  24. package/es/modal/style/index.less +93 -6
  25. package/es/modal/style/mixin.less +4 -4
  26. package/es/progress/style/common.less +5 -3
  27. package/es/progress/style/index.css +2 -1
  28. package/es/radio/index.d.ts +3 -0
  29. package/es/style/themes/dark/components/modal.less +14 -9
  30. package/es/style/themes/default/components/modal.less +15 -15
  31. package/es/tabs/src/TabNavList/index.js +2 -2
  32. package/es/tabs/style/index.css +0 -1
  33. package/es/tabs/style/index.less +0 -1
  34. package/es/time-picker/style/index.css +1 -0
  35. package/es/time-picker/style/index.less +1 -0
  36. package/es/transfer/{dataSource.d.ts → DataSource.d.ts} +1 -1
  37. package/es/transfer/{dataSource.js → DataSource.js} +37 -6
  38. package/{lib/transfer/sourceList.d.ts → es/transfer/SourceList.d.ts} +2 -2
  39. package/es/transfer/{sourceList.js → SourceList.js} +0 -0
  40. package/es/transfer/{target.d.ts → Target.d.ts} +1 -1
  41. package/es/transfer/{target.js → Target.js} +60 -4
  42. package/{lib/transfer/targetList.d.ts → es/transfer/TargetList.d.ts} +2 -2
  43. package/es/transfer/{targetList.js → TargetList.js} +0 -0
  44. package/es/transfer/index.d.ts +3 -0
  45. package/es/transfer/index.js +9 -4
  46. package/es/transfer/style/css.js +3 -1
  47. package/es/transfer/style/index.css +25 -5
  48. package/es/transfer/style/index.d.ts +1 -0
  49. package/es/transfer/style/index.js +3 -1
  50. package/es/transfer/style/index.less +30 -5
  51. package/es/upload/UploadList/ListItem.js +7 -2
  52. package/es/upload/UploadList/index.js +4 -7
  53. package/es/upload/style/index.css +17 -13
  54. package/es/upload/style/index.less +25 -20
  55. package/es/upload/utils.js +1 -1
  56. package/lib/breadcrumb/BreadcrumbItem.d.ts +1 -1
  57. package/lib/breadcrumb/BreadcrumbItem.js +21 -8
  58. package/lib/dialog-box/style/index.css +4 -4
  59. package/lib/dropdown/dropdown-button.js +8 -4
  60. package/lib/dropdown/style/index.css +2 -1
  61. package/lib/dropdown/style/index.less +2 -1
  62. package/lib/modal/DialogBox.d.ts +46 -0
  63. package/lib/modal/DialogBox.js +179 -0
  64. package/lib/modal/Modal.d.ts +5 -2
  65. package/lib/modal/Modal.js +6 -4
  66. package/lib/modal/dialog.d.ts +17 -0
  67. package/lib/modal/dialog.js +145 -0
  68. package/lib/modal/index.d.ts +11 -2
  69. package/lib/modal/index.js +13 -1
  70. package/lib/modal/style/index.css +79 -13
  71. package/lib/modal/style/index.less +93 -6
  72. package/lib/modal/style/mixin.less +4 -4
  73. package/lib/progress/style/common.less +5 -3
  74. package/lib/progress/style/index.css +2 -1
  75. package/lib/radio/index.d.ts +3 -0
  76. package/lib/style/themes/dark/components/modal.less +14 -9
  77. package/lib/style/themes/default/components/modal.less +15 -15
  78. package/lib/tabs/src/TabNavList/index.js +2 -2
  79. package/lib/tabs/style/index.css +0 -1
  80. package/lib/tabs/style/index.less +0 -1
  81. package/lib/time-picker/style/index.css +1 -0
  82. package/lib/time-picker/style/index.less +1 -0
  83. package/lib/transfer/{dataSource.d.ts → DataSource.d.ts} +1 -1
  84. package/lib/transfer/{dataSource.js → DataSource.js} +38 -6
  85. package/{es/transfer/sourceList.d.ts → lib/transfer/SourceList.d.ts} +2 -2
  86. package/lib/transfer/{sourceList.js → SourceList.js} +0 -0
  87. package/lib/transfer/{target.d.ts → Target.d.ts} +1 -1
  88. package/lib/transfer/{target.js → Target.js} +63 -5
  89. package/{es/transfer/targetList.d.ts → lib/transfer/TargetList.d.ts} +2 -2
  90. package/lib/transfer/{targetList.js → TargetList.js} +0 -0
  91. package/lib/transfer/index.d.ts +3 -0
  92. package/lib/transfer/index.js +11 -7
  93. package/lib/transfer/style/css.js +3 -1
  94. package/lib/transfer/style/index.css +25 -5
  95. package/lib/transfer/style/index.d.ts +1 -0
  96. package/lib/transfer/style/index.js +3 -1
  97. package/lib/transfer/style/index.less +30 -5
  98. package/lib/upload/UploadList/ListItem.js +7 -2
  99. package/lib/upload/UploadList/index.js +4 -7
  100. package/lib/upload/style/index.css +17 -13
  101. package/lib/upload/style/index.less +25 -20
  102. package/lib/upload/utils.js +1 -1
  103. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
3
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
3
4
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
4
5
 
5
6
  /*
@@ -7,8 +8,10 @@ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
7
8
  * author zhousheng
8
9
  */
9
10
  import * as React from 'react';
10
- import classnames from 'classnames';
11
- import TargetList from './targetList';
11
+ import classnames from 'classnames/dedupe';
12
+ import { OutlinedClose } from 'acud-icon';
13
+ import Table from '../table';
14
+ import TargetList from './TargetList';
12
15
  import Search from '../search';
13
16
 
14
17
  var defaultFilterOption = function defaultFilterOption(inputValue, option) {
@@ -19,6 +22,7 @@ export default function target(props) {
19
22
  var _classnames;
20
23
 
21
24
  var prefixCls = props.prefixCls,
25
+ displayType = props.displayType,
22
26
  _props$showClearAll = props.showClearAll,
23
27
  showClearAll = _props$showClearAll === void 0 ? true : _props$showClearAll,
24
28
  _props$filterOption = props.filterOption,
@@ -30,7 +34,8 @@ export default function target(props) {
30
34
  setTKeys = props.setTKeys,
31
35
  rightStyle = props.rightStyle,
32
36
  locale = props.locale,
33
- expansionSource = props.expansionSource;
37
+ expansionSource = props.expansionSource,
38
+ columns = props.columns;
34
39
  var targetCls = "".concat(prefixCls, "-target");
35
40
  var targetTitle = locale.targetTitle,
36
41
  searchPlaceholder = locale.searchPlaceholder,
@@ -105,6 +110,51 @@ export default function target(props) {
105
110
  var searchValue = e.target.value;
106
111
  setSearchValue(searchValue);
107
112
  }, []);
113
+ var targetColumns = React.useMemo(function () {
114
+ if (!columns) {
115
+ return;
116
+ }
117
+
118
+ var cancelItem = function cancelItem(data) {
119
+ if (data.disabled) {
120
+ return;
121
+ }
122
+
123
+ var curTKeys = _toConsumableArray(tKeys);
124
+
125
+ if (data.group) {
126
+ var deleteKeys = data.childrenKeys;
127
+ curTKeys = curTKeys.filter(function (tKey) {
128
+ return !deleteKeys.includes(tKey);
129
+ });
130
+ } else if (curTKeys.includes(data.key)) {
131
+ curTKeys.splice(curTKeys.indexOf(data.key), 1);
132
+ }
133
+
134
+ setTKeys(curTKeys);
135
+ };
136
+
137
+ var tColumns = _toConsumableArray(columns);
138
+
139
+ tColumns.push({
140
+ title: '',
141
+ key: 'action',
142
+ width: 40,
143
+ render: function render(_text, data) {
144
+ if (!data.disabled) {
145
+ return /*#__PURE__*/React.createElement(OutlinedClose, {
146
+ className: "".concat(prefixCls, "-target-item-cancel"),
147
+ onClick: function onClick() {
148
+ return cancelItem(data);
149
+ }
150
+ });
151
+ }
152
+
153
+ return null;
154
+ }
155
+ });
156
+ return tColumns;
157
+ }, [columns, tKeys]);
108
158
  var clearCls = classnames((_classnames = {}, _defineProperty(_classnames, "".concat(targetCls, "-clear-all"), true), _defineProperty(_classnames, "".concat(targetCls, "-clear-all-disabled"), filterSource.length === totalDisabledKeys.length), _classnames));
109
159
  return /*#__PURE__*/React.createElement("div", {
110
160
  className: targetCls,
@@ -125,7 +175,13 @@ export default function target(props) {
125
175
  allowClear: showSearchClear,
126
176
  size: "small",
127
177
  onChange: searchChange
128
- }), !!filterSource.length && /*#__PURE__*/React.createElement(TargetList, _extends({}, props, {
178
+ }), !!filterSource.length && displayType === 'table' && /*#__PURE__*/React.createElement("div", {
179
+ className: "".concat(prefixCls, "-table-box")
180
+ }, /*#__PURE__*/React.createElement(Table, {
181
+ pagination: false,
182
+ dataSource: filterSource,
183
+ columns: targetColumns
184
+ })), !!filterSource.length && displayType === 'single' && /*#__PURE__*/React.createElement(TargetList, _extends({}, props, {
129
185
  filterSource: filterSource
130
186
  })), filterSource.length === 0 && /*#__PURE__*/React.createElement("p", {
131
187
  className: "".concat(prefixCls, "-target-nodata")
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { DataSourceProps } from './dataSource';
3
- import { TransferItem } from './';
2
+ import { DataSourceProps } from './DataSource';
3
+ import { TransferItem } from '.';
4
4
  export interface DataSourceListProps<RecordType> extends DataSourceProps<RecordType> {
5
5
  filterSource: RecordType[];
6
6
  }
File without changes
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { ColumnsType } from '../table';
2
3
  export declare type TransferDirection = 'left' | 'right';
3
4
  export declare type SelectAllLabel = React.ReactNode | ((info: {
4
5
  selectedCount: number;
@@ -24,6 +25,7 @@ export interface TransferItem {
24
25
  export interface TransferProps<RecordType> {
25
26
  prefixCls?: string;
26
27
  className?: string;
28
+ displayType?: 'single' | 'table';
27
29
  dataSource: RecordType[];
28
30
  targetKeys?: string[];
29
31
  render?: TransferRender<RecordType>;
@@ -42,5 +44,6 @@ export interface TransferProps<RecordType> {
42
44
  selectAllLabels?: SelectAllLabel[];
43
45
  defaultExpandGroupKey?: string[] | string | number[] | number | boolean;
44
46
  virtual?: boolean;
47
+ columns?: ColumnsType<RecordType>;
45
48
  }
46
49
  export default function transfer<RecordType extends TransferItem = TransferItem>(props: TransferProps<RecordType>): JSX.Element;
@@ -9,12 +9,15 @@ import _extends from "@babel/runtime/helpers/esm/extends";
9
9
  import * as React from 'react';
10
10
  import classnames from 'classnames';
11
11
  import baseLocale from '../locale/default';
12
- import DataSource from './dataSource';
13
- import Target from './target';
14
- ;
12
+ import DataSource from './DataSource';
13
+ import Target from './Target';
15
14
  export default function transfer(props) {
15
+ var _classnames;
16
+
16
17
  var _props$prefixCls = props.prefixCls,
17
18
  prefixCls = _props$prefixCls === void 0 ? 'acud-transfer' : _props$prefixCls,
19
+ _props$displayType = props.displayType,
20
+ displayType = _props$displayType === void 0 ? 'single' : _props$displayType,
18
21
  _props$targetKeys = props.targetKeys,
19
22
  targetKeys = _props$targetKeys === void 0 ? [] : _props$targetKeys,
20
23
  onChange = props.onChange,
@@ -61,16 +64,18 @@ export default function transfer(props) {
61
64
  React.useEffect(function () {
62
65
  onChange && onChange(tKeys);
63
66
  }, [tKeys]);
64
- var classNames = classnames(_defineProperty({}, prefixCls, true));
67
+ var classNames = classnames((_classnames = {}, _defineProperty(_classnames, prefixCls, true), _defineProperty(_classnames, "".concat(prefixCls, "-table"), displayType === 'table'), _classnames));
65
68
  return /*#__PURE__*/React.createElement("div", {
66
69
  className: classNames
67
70
  }, /*#__PURE__*/React.createElement(DataSource, _extends({}, props, {
71
+ displayType: displayType,
68
72
  locale: userLocale,
69
73
  prefixCls: prefixCls,
70
74
  tKeys: tKeys,
71
75
  setTKeys: setTKeys,
72
76
  expansionSource: expansionSource
73
77
  })), /*#__PURE__*/React.createElement(Target, _extends({}, props, {
78
+ displayType: displayType,
74
79
  locale: userLocale,
75
80
  prefixCls: prefixCls,
76
81
  tKeys: tKeys,
@@ -1,2 +1,4 @@
1
1
  import '../../style/index.css';
2
- import './index.css';
2
+ import './index.css'; // style dependencies
3
+
4
+ import '../../table/style/css';
@@ -43,8 +43,10 @@
43
43
  border-radius: 4px 4px 0 0;
44
44
  line-height: 21px;
45
45
  }
46
+ .acud-transfer-datasource-header-checkall {
47
+ margin-right: 12px;
48
+ }
46
49
  .acud-transfer-datasource-label {
47
- margin-left: 12px;
48
50
  color: #151B26;
49
51
  font-size: 12px;
50
52
  font-weight: #FFECD4;
@@ -149,8 +151,8 @@
149
151
  padding-left: 60px;
150
152
  }
151
153
  .acud-transfer-datasource-search {
152
- height: 24px;
153
- margin: 8px 12px;
154
+ height: 40px;
155
+ padding: 8px 12px;
154
156
  width: auto;
155
157
  flex-shrink: 0;
156
158
  }
@@ -327,10 +329,10 @@
327
329
  padding-left: 56px;
328
330
  }
329
331
  .acud-transfer-target-search {
330
- margin: 8px 12px;
332
+ padding: 8px 12px;
331
333
  width: auto;
332
334
  flex-shrink: 0;
333
- height: 24px;
335
+ height: 40px;
334
336
  }
335
337
  .acud-transfer-target-nodata {
336
338
  display: flex;
@@ -346,3 +348,21 @@
346
348
  .acud-transfer .acud-input input {
347
349
  font-size: 12px;
348
350
  }
351
+ .acud-transfer.acud-transfer-table .acud-transfer-datasource,
352
+ .acud-transfer.acud-transfer-table .acud-transfer-target {
353
+ height: 360px;
354
+ }
355
+ .acud-transfer.acud-transfer-table .acud-transfer-datasource-search,
356
+ .acud-transfer.acud-transfer-table .acud-transfer-target-search {
357
+ background-color: #F7F7F9;
358
+ border-top: 1px solid #fff;
359
+ }
360
+ .acud-transfer.acud-transfer-table table {
361
+ border-top: 1px solid #fff;
362
+ }
363
+ .acud-transfer.acud-transfer-table table thead tr th:nth-last-child(2) {
364
+ border-right: none;
365
+ }
366
+ .acud-transfer.acud-transfer-table .acud-transfer-table-box {
367
+ overflow: auto;
368
+ }
@@ -1,2 +1,3 @@
1
1
  import '../../style/index.less';
2
2
  import './index.less';
3
+ import '../../table/style';
@@ -1,2 +1,4 @@
1
1
  import '../../style/index.less';
2
- import './index.less';
2
+ import './index.less'; // style dependencies
3
+
4
+ import '../../table/style';
@@ -35,9 +35,11 @@
35
35
  background-color: @G10;
36
36
  border-radius: @R3 @R3 0 0;
37
37
  line-height: 21px;
38
+ &-checkall {
39
+ margin-right: @P * 3;
40
+ }
38
41
  }
39
42
  &-label {
40
- margin-left: @P * 3;
41
43
  color: @G2;
42
44
  font-size: @T2;
43
45
  font-weight: @W2;
@@ -88,8 +90,8 @@
88
90
  }
89
91
  }
90
92
  &-search {
91
- height: @P * 6;
92
- margin: @P * 2 @P * 3;
93
+ height: @P * 10;
94
+ padding: @P * 2 @P * 3;
93
95
  width: auto;
94
96
  flex-shrink: 0;
95
97
  }
@@ -188,10 +190,10 @@
188
190
  }
189
191
  }
190
192
  &-search {
191
- margin: @P * 2 @P * 3;
193
+ padding: @P * 2 @P * 3;
192
194
  width: auto;
193
195
  flex-shrink: 0;
194
- height: @P * 6;
196
+ height: @P * 10;
195
197
  }
196
198
  &-nodata {
197
199
  display: flex;
@@ -208,4 +210,27 @@
208
210
  .@{acud-prefix}-input input {
209
211
  font-size: 12px;
210
212
  }
213
+ &.@{transfer-prefix-cls}-table {
214
+ .@{transfer-prefix-cls}-datasource,
215
+ .@{transfer-prefix-cls}-target {
216
+ height: 360px;
217
+ }
218
+ .@{transfer-prefix-cls}-datasource-search,
219
+ .@{transfer-prefix-cls}-target-search {
220
+ background-color: @G10;
221
+ border-top: 1px solid #fff;
222
+ }
223
+ table {
224
+ border-top: 1px solid #fff;
225
+ thead tr th:nth-last-child(2) {
226
+ border-right: none;
227
+ }
228
+ tbody > tr:last-child > td {
229
+ // border-bottom: none;
230
+ }
231
+ }
232
+ .@{transfer-prefix-cls}-table-box {
233
+ overflow: auto;
234
+ }
235
+ }
211
236
  }
@@ -104,7 +104,11 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
104
104
 
105
105
  var infoUploadingClass = classNames((_classNames3 = {}, _defineProperty(_classNames3, "".concat(prefixCls, "-list-item"), true), _defineProperty(_classNames3, "".concat(prefixCls, "-list-item-").concat(file.status), true), _defineProperty(_classNames3, "".concat(prefixCls, "-list-item-list-type-").concat(listType), true), _classNames3));
106
106
  var linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps;
107
- var removeIcon = showRemoveIcon ? actionIconRender((typeof customRemoveIcon === 'function' ? customRemoveIcon(file) : customRemoveIcon) || listType === 'text' ? /*#__PURE__*/React.createElement(OutlinedClose, null) : /*#__PURE__*/React.createElement(DeleteOutlined, null), function () {
107
+ var removeIcon = showRemoveIcon ? actionIconRender((typeof customRemoveIcon === 'function' ? customRemoveIcon(file) : customRemoveIcon) || listType === 'text' ? /*#__PURE__*/React.createElement(OutlinedClose, {
108
+ width: 16
109
+ }) : /*#__PURE__*/React.createElement(DeleteOutlined, {
110
+ width: 16
111
+ }), function () {
108
112
  return onClose(file);
109
113
  }, prefixCls, locale.removeFile) : null;
110
114
  var downloadIcon = showDownloadIcon ? actionIconRender((typeof customDownloadIcon === 'function' ? customDownloadIcon(file) : customDownloadIcon) || /*#__PURE__*/React.createElement(DownloadOutlined, null), function () {
@@ -191,7 +195,8 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
191
195
  strokeColor: "#2468F2",
192
196
  infoType: "none",
193
197
  type: "line",
194
- percent: file.percent
198
+ percent: file.percent,
199
+ strokeWidth: listType === 'text' ? 2 : 4
195
200
  }, progressProps)) : null;
196
201
  return /*#__PURE__*/React.createElement("div", {
197
202
  className: classNames("".concat(prefixCls, "-list-item-progress"), motionClassName)
@@ -162,16 +162,14 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
162
162
  }) : /*#__PURE__*/React.createElement(FileTwoTone, {
163
163
  width: 24
164
164
  });
165
- var icon = isLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, {
166
- animation: "spin"
167
- }) : renderIcon(file.name || file.fileName);
165
+ var icon = renderIcon(file.name || file.fileName);
168
166
 
169
167
  if (listType === 'picture') {
170
168
  icon = isLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, {
171
169
  animation: "spin"
172
170
  }) : fileIcon;
173
171
  } else if (listType === 'picture-card') {
174
- icon = isLoading ? locale.uploading : fileIcon;
172
+ icon = isLoading ? "".concat(locale.uploading, "...") : fileIcon;
175
173
  }
176
174
 
177
175
  return icon;
@@ -285,9 +283,8 @@ var UploadList = /*#__PURE__*/React.forwardRef(InternalUploadList);
285
283
  UploadList.displayName = 'UploadList';
286
284
  UploadList.defaultProps = {
287
285
  listType: 'text',
288
- progress: {
289
- strokeWidth: 2 // showInfo: false
290
-
286
+ progress: {// strokeWidth: 4,
287
+ // showInfo: false
291
288
  },
292
289
  showUploadIcon: true,
293
290
  showRemoveIcon: true,
@@ -43,6 +43,7 @@
43
43
  border-style: solid;
44
44
  cursor: pointer;
45
45
  transition: border-color 0.3s;
46
+ overflow: hidden;
46
47
  color: #5C5F66;
47
48
  background-color: #FFFFFF;
48
49
  border-color: #E8E9EB;
@@ -115,15 +116,12 @@
115
116
  height: 100%;
116
117
  text-align: center;
117
118
  border: 1px dashed #d9d9d9;
118
- border-radius: 4px;
119
+ border-radius: 6px;
119
120
  cursor: pointer;
120
121
  transition: border-color 0.3s;
121
122
  }
122
- .acud-upload.acud-upload-drag .acud-upload {
123
- padding: 16px 0;
124
- }
125
123
  .acud-upload.acud-upload-drag.acud-upload-drag-hover:not(.acud-upload-disabled) {
126
- border-color: red;
124
+ border-color: #144BCC;
127
125
  }
128
126
  .acud-upload.acud-upload-drag.acud-upload-disabled {
129
127
  background: #fafafa;
@@ -300,10 +298,6 @@
300
298
  color: #B8BABF;
301
299
  }
302
300
  .acud-upload-list-item .acuicon-outlined-close {
303
- position: absolute;
304
- top: 4px;
305
- right: 4px;
306
- color: #B8BABF;
307
301
  font-size: 10px;
308
302
  line-height: 0;
309
303
  cursor: pointer;
@@ -319,6 +313,19 @@
319
313
  .acud-upload-list-item:hover .acuicon-outlined-close {
320
314
  opacity: 1;
321
315
  }
316
+ .acud-upload-list-item .acuicon-outlined-cloud-download {
317
+ transition: all 0.3s;
318
+ opacity: 0;
319
+ }
320
+ .acud-upload-list-item:hover .acuicon-outlined-cloud-download {
321
+ opacity: 1;
322
+ }
323
+ .acud-upload-list-item-card-actions-btn {
324
+ margin-right: 6px;
325
+ }
326
+ .acud-upload-list-item-card-actions-btn:last-child {
327
+ margin-right: 0;
328
+ }
322
329
  .acud-upload-list-item:hover .acud-upload-list-item-card-actions-btn {
323
330
  opacity: 1;
324
331
  }
@@ -328,12 +335,9 @@
328
335
  .acud-upload-list-item-error .acud-upload-list-item-info .acud-upload-text-icon .acuicon:hover {
329
336
  color: #F33E3E;
330
337
  }
331
- .acud-upload-list-item-error .acud-upload-list-item-card-actions .acuicon {
338
+ .acud-upload-list-item-error .acud-upload-list-item-card-actions .acud-upload-text-icon {
332
339
  color: #F33E3E;
333
340
  }
334
- .acud-upload-list-item-error .acud-upload-list-item-card-actions-btn {
335
- opacity: 1;
336
- }
337
341
  .acud-upload-list-item-progress {
338
342
  position: absolute;
339
343
  bottom: -12px;
@@ -5,11 +5,10 @@
5
5
  @upload-item: ~'@{acud-prefix}-upload-list-item';
6
6
  @upload-picture-card-size: 120px;
7
7
  @upload-picture-card-border-style: 1px;
8
-
9
8
  @heading-color: fade(#000, 85%);
10
9
  @background-color-light: hsv(0, 0, 98%);
11
10
  @border-color-base: hsv(0, 0, 85%);
12
- @primary-7: red;
11
+ @primary-7: @B7;
13
12
  @primary-5: @B5;
14
13
  @item-hover-bg: #f5f5f5;
15
14
  @error-color: @E6;
@@ -61,6 +60,7 @@
61
60
  border-style: solid;
62
61
  cursor: pointer;
63
62
  transition: border-color .3s;
63
+ overflow: hidden;
64
64
  .basic-tp-config(@upload-pic-tp);
65
65
  .basic-p-config(@upload-pic-p);
66
66
 
@@ -90,14 +90,10 @@
90
90
  height: 100%;
91
91
  text-align: center;
92
92
  border: @border-width-base dashed @border-color-base;
93
- border-radius: @R3;
93
+ border-radius: @R4;
94
94
  cursor: pointer;
95
95
  transition: border-color .3s;
96
96
 
97
- .@{upload-prefix-cls} {
98
- padding: @padding-md 0;
99
- }
100
-
101
97
  &.@{upload-prefix-cls}-drag-hover:not(.@{upload-prefix-cls}-disabled) {
102
98
  border-color: @primary-7;
103
99
  }
@@ -253,10 +249,10 @@
253
249
  }
254
250
 
255
251
  .@{iconfont-css-prefix}-outlined-close {
256
- position: absolute;
257
- top: 4px;
258
- right: 4px;
259
- color: @text-color-secondary;
252
+ // position: absolute;
253
+ // top: 4px;
254
+ // right: 4px;
255
+ // color: @text-color-secondary;
260
256
  font-size: 10px;
261
257
  line-height: 0;
262
258
  cursor: pointer;
@@ -276,7 +272,20 @@
276
272
  &:hover .@{iconfont-css-prefix}-outlined-close {
277
273
  opacity: 1;
278
274
  }
275
+ .@{iconfont-css-prefix}-outlined-cloud-download {
276
+ transition: all .3s;
277
+ opacity: 0;
278
+ }
279
+ &:hover .@{iconfont-css-prefix}-outlined-cloud-download {
280
+ opacity: 1;
281
+ }
279
282
 
283
+ &-card-actions-btn {
284
+ margin-right: 6px;
285
+ &:last-child {
286
+ margin-right: 0;
287
+ }
288
+ }
280
289
  &:hover &-card-actions-btn {
281
290
  opacity: 1;
282
291
  }
@@ -287,15 +296,10 @@
287
296
  &-error .@{upload-prefix-cls}-list-item-info .@{upload-prefix-cls}-text-icon .acuicon:hover {
288
297
  color: @error-color;
289
298
  }
290
-
291
299
  &-error &-card-actions {
292
- .@{iconfont-css-prefix} {
300
+ .@{upload-prefix-cls}-text-icon {
293
301
  color: @error-color;
294
302
  }
295
-
296
- &-btn {
297
- opacity: 1;
298
- }
299
303
  }
300
304
 
301
305
  &-progress {
@@ -431,9 +435,10 @@
431
435
  margin: 0 @margin-xs @margin-xs 0;
432
436
  vertical-align: top;
433
437
  }
434
-
435
- &.@{upload-prefix-cls}-list::after {
436
- display: none;
438
+ &.@{upload-prefix-cls}-list {
439
+ &::after {
440
+ display: none;
441
+ }
437
442
  }
438
443
 
439
444
  .@{upload-item} {
@@ -23,7 +23,7 @@ export function updateFileList(file, fileList) {
23
23
  });
24
24
 
25
25
  if (fileIndex === -1) {
26
- nextFileList.push(file);
26
+ nextFileList.unshift(file);
27
27
  } else {
28
28
  nextFileList[fileIndex] = file;
29
29
  }
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import React from 'react';
2
2
  import { BaseDropdownProps } from '../dropdown/dropdown';
3
3
  export interface BreadcrumbItemProps {
4
4
  prefixCls?: string;
@@ -11,7 +11,9 @@ exports["default"] = void 0;
11
11
 
12
12
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
13
13
 
14
- var React = _interopRequireWildcard(require("react"));
14
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
15
+
16
+ var _react = _interopRequireWildcard(require("react"));
15
17
 
16
18
  var _acudIcon = require("acud-icon");
17
19
 
@@ -45,21 +47,32 @@ var BreadcrumbItem = function BreadcrumbItem(_a) {
45
47
  dropdownProps = _a.dropdownProps,
46
48
  restProps = __rest(_a, ["prefixCls", "separator", "children", "overlay", "dropdownProps"]);
47
49
 
48
- var _React$useContext = React.useContext(_configProvider.ConfigContext),
50
+ var _useState = (0, _react.useState)(false),
51
+ _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
52
+ visible = _useState2[0],
53
+ setVisible = _useState2[1];
54
+
55
+ var _React$useContext = _react["default"].useContext(_configProvider.ConfigContext),
49
56
  getPrefixCls = _React$useContext.getPrefixCls;
50
57
 
51
58
  var prefixCls = getPrefixCls('breadcrumb', customizePrefixCls);
59
+ var handleVisibleChange = (0, _react.useCallback)(function (visible) {
60
+ setVisible(visible);
61
+ }, []);
52
62
  /** If overlay is have Wrap a DropDown */
53
63
 
54
64
  var renderBreadcrumbNode = function renderBreadcrumbNode(breadcrumbItem) {
55
65
  if (overlay) {
56
- return /*#__PURE__*/React.createElement(_dropdown["default"], (0, _extends2["default"])({
66
+ return /*#__PURE__*/_react["default"].createElement(_dropdown["default"], (0, _extends2["default"])({
57
67
  overlay: overlay,
68
+ visible: visible,
58
69
  placement: "bottomCenter",
59
70
  overlayClassName: "".concat(prefixCls, "-dropdown")
60
- }, dropdownProps), /*#__PURE__*/React.createElement("span", {
71
+ }, dropdownProps, {
72
+ onVisibleChange: handleVisibleChange
73
+ }), /*#__PURE__*/_react["default"].createElement("span", {
61
74
  className: "".concat(prefixCls, "-overlay-link")
62
- }, breadcrumbItem, /*#__PURE__*/React.createElement(_acudIcon.OutlinedDown, null)));
75
+ }, breadcrumbItem, visible ? /*#__PURE__*/_react["default"].createElement(_acudIcon.OutlinedUp, null) : /*#__PURE__*/_react["default"].createElement(_acudIcon.OutlinedDown, null)));
63
76
  }
64
77
 
65
78
  return breadcrumbItem;
@@ -68,11 +81,11 @@ var BreadcrumbItem = function BreadcrumbItem(_a) {
68
81
  var link;
69
82
 
70
83
  if ('href' in restProps) {
71
- link = /*#__PURE__*/React.createElement("a", (0, _extends2["default"])({
84
+ link = /*#__PURE__*/_react["default"].createElement("a", (0, _extends2["default"])({
72
85
  className: "".concat(prefixCls, "-link")
73
86
  }, restProps), children);
74
87
  } else {
75
- link = /*#__PURE__*/React.createElement("span", (0, _extends2["default"])({
88
+ link = /*#__PURE__*/_react["default"].createElement("span", (0, _extends2["default"])({
76
89
  className: "".concat(prefixCls, "-link")
77
90
  }, restProps), children);
78
91
  } // wrap to dropDown
@@ -81,7 +94,7 @@ var BreadcrumbItem = function BreadcrumbItem(_a) {
81
94
  link = renderBreadcrumbNode(link);
82
95
 
83
96
  if (children) {
84
- return /*#__PURE__*/React.createElement("span", null, link, separator && /*#__PURE__*/React.createElement("span", {
97
+ return /*#__PURE__*/_react["default"].createElement("span", null, link, separator && /*#__PURE__*/_react["default"].createElement("span", {
85
98
  className: "".concat(prefixCls, "-separator")
86
99
  }, separator));
87
100
  }
@@ -58,19 +58,19 @@
58
58
  }
59
59
  .acud-dialogbox-sm {
60
60
  width: 520px;
61
- max-height: 240px;
61
+ max-height: 560px;
62
62
  }
63
63
  .acud-dialogbox-md {
64
64
  width: 800px;
65
- max-height: 400px;
65
+ max-height: 560px;
66
66
  }
67
67
  .acud-dialogbox-lg {
68
68
  width: 1120px;
69
- max-height: 480px;
69
+ max-height: 560px;
70
70
  }
71
71
  .acud-dialogbox-xl {
72
72
  width: 1200px;
73
- max-height: 480px;
73
+ max-height: 560px;
74
74
  }
75
75
  .acud-dialogbox-content {
76
76
  position: relative;