acud 0.0.63 → 0.0.66

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 (115) hide show
  1. package/dist/acud.css +164 -53
  2. package/dist/acud.css.map +1 -1
  3. package/dist/acud.js +817 -213
  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 +10 -4
  8. package/dist/acud.min.js.map +1 -1
  9. package/es/alert/style/index.css +1 -1
  10. package/es/alert/style/index.less +150 -147
  11. package/es/alert/style/rtl.less +27 -27
  12. package/es/breadcrumb/BreadcrumbItem.d.ts +1 -1
  13. package/es/breadcrumb/BreadcrumbItem.js +16 -4
  14. package/es/date-picker/src/Picker.js +1 -1
  15. package/es/date-picker/src/RangePicker.js +1 -1
  16. package/es/date-picker/style/index.css +43 -11
  17. package/es/date-picker/style/index.less +13 -2
  18. package/es/date-picker/style/panel.less +32 -10
  19. package/es/dialog-box/style/index.css +4 -4
  20. package/es/dropdown/dropdown-button.js +11 -2
  21. package/es/dropdown/style/index.css +6 -1
  22. package/es/dropdown/style/index.less +6 -1
  23. package/es/modal/DialogBox.d.ts +46 -0
  24. package/es/modal/DialogBox.js +152 -0
  25. package/es/modal/Modal.d.ts +5 -0
  26. package/es/modal/Modal.js +6 -4
  27. package/es/modal/dialog.d.ts +17 -0
  28. package/es/modal/dialog.js +123 -0
  29. package/es/modal/index.d.ts +11 -2
  30. package/es/modal/index.js +10 -1
  31. package/es/modal/style/index.css +62 -16
  32. package/es/modal/style/index.less +76 -5
  33. package/es/modal/style/mixin.less +2 -2
  34. package/es/progress/style/common.less +5 -3
  35. package/es/progress/style/index.css +2 -1
  36. package/es/radio/index.d.ts +3 -0
  37. package/es/style/themes/dark/components/modal.less +14 -9
  38. package/es/style/themes/default/components/datePicker.less +1 -1
  39. package/es/style/themes/default/components/modal.less +14 -14
  40. package/es/time-picker/style/index.css +1 -0
  41. package/es/time-picker/style/index.less +1 -0
  42. package/es/transfer/{dataSource.d.ts → DataSource.d.ts} +1 -1
  43. package/es/transfer/{dataSource.js → DataSource.js} +37 -6
  44. package/{lib/transfer/sourceList.d.ts → es/transfer/SourceList.d.ts} +2 -2
  45. package/es/transfer/{sourceList.js → SourceList.js} +0 -0
  46. package/es/transfer/{target.d.ts → Target.d.ts} +1 -1
  47. package/es/transfer/{target.js → Target.js} +60 -4
  48. package/{lib/transfer/targetList.d.ts → es/transfer/TargetList.d.ts} +2 -2
  49. package/es/transfer/{targetList.js → TargetList.js} +0 -0
  50. package/es/transfer/index.d.ts +3 -0
  51. package/es/transfer/index.js +9 -4
  52. package/es/transfer/style/css.js +3 -1
  53. package/es/transfer/style/index.css +27 -5
  54. package/es/transfer/style/index.d.ts +1 -0
  55. package/es/transfer/style/index.js +3 -1
  56. package/es/transfer/style/index.less +32 -5
  57. package/es/upload/UploadList/ListItem.js +7 -2
  58. package/es/upload/UploadList/index.js +4 -7
  59. package/es/upload/style/index.css +17 -13
  60. package/es/upload/style/index.less +25 -20
  61. package/es/upload/utils.js +1 -1
  62. package/lib/alert/style/index.css +1 -1
  63. package/lib/alert/style/index.less +150 -147
  64. package/lib/alert/style/rtl.less +27 -27
  65. package/lib/breadcrumb/BreadcrumbItem.d.ts +1 -1
  66. package/lib/breadcrumb/BreadcrumbItem.js +21 -8
  67. package/lib/date-picker/src/Picker.js +1 -1
  68. package/lib/date-picker/src/RangePicker.js +1 -1
  69. package/lib/date-picker/style/index.css +43 -11
  70. package/lib/date-picker/style/index.less +13 -2
  71. package/lib/date-picker/style/panel.less +32 -10
  72. package/lib/dialog-box/style/index.css +4 -4
  73. package/lib/dropdown/dropdown-button.js +11 -2
  74. package/lib/dropdown/style/index.css +6 -1
  75. package/lib/dropdown/style/index.less +6 -1
  76. package/lib/modal/DialogBox.d.ts +46 -0
  77. package/lib/modal/DialogBox.js +179 -0
  78. package/lib/modal/Modal.d.ts +5 -0
  79. package/lib/modal/Modal.js +6 -4
  80. package/lib/modal/dialog.d.ts +17 -0
  81. package/lib/modal/dialog.js +145 -0
  82. package/lib/modal/index.d.ts +11 -2
  83. package/lib/modal/index.js +13 -1
  84. package/lib/modal/style/index.css +62 -16
  85. package/lib/modal/style/index.less +76 -5
  86. package/lib/modal/style/mixin.less +2 -2
  87. package/lib/progress/style/common.less +5 -3
  88. package/lib/progress/style/index.css +2 -1
  89. package/lib/radio/index.d.ts +3 -0
  90. package/lib/style/themes/dark/components/modal.less +14 -9
  91. package/lib/style/themes/default/components/datePicker.less +1 -1
  92. package/lib/style/themes/default/components/modal.less +14 -14
  93. package/lib/time-picker/style/index.css +1 -0
  94. package/lib/time-picker/style/index.less +1 -0
  95. package/lib/transfer/{dataSource.d.ts → DataSource.d.ts} +1 -1
  96. package/lib/transfer/{dataSource.js → DataSource.js} +38 -6
  97. package/{es/transfer/sourceList.d.ts → lib/transfer/SourceList.d.ts} +2 -2
  98. package/lib/transfer/{sourceList.js → SourceList.js} +0 -0
  99. package/lib/transfer/{target.d.ts → Target.d.ts} +1 -1
  100. package/lib/transfer/{target.js → Target.js} +63 -5
  101. package/{es/transfer/targetList.d.ts → lib/transfer/TargetList.d.ts} +2 -2
  102. package/lib/transfer/{targetList.js → TargetList.js} +0 -0
  103. package/lib/transfer/index.d.ts +3 -0
  104. package/lib/transfer/index.js +11 -7
  105. package/lib/transfer/style/css.js +3 -1
  106. package/lib/transfer/style/index.css +27 -5
  107. package/lib/transfer/style/index.d.ts +1 -0
  108. package/lib/transfer/style/index.js +3 -1
  109. package/lib/transfer/style/index.less +32 -5
  110. package/lib/upload/UploadList/ListItem.js +7 -2
  111. package/lib/upload/UploadList/index.js +4 -7
  112. package/lib/upload/style/index.css +17 -13
  113. package/lib/upload/style/index.less +25 -20
  114. package/lib/upload/utils.js +1 -1
  115. package/package.json +1 -1
@@ -21,9 +21,9 @@ var _classnames2 = _interopRequireDefault(require("classnames"));
21
21
 
22
22
  var _default = _interopRequireDefault(require("../locale/default"));
23
23
 
24
- var _dataSource = _interopRequireDefault(require("./dataSource"));
24
+ var _DataSource = _interopRequireDefault(require("./DataSource"));
25
25
 
26
- var _target = _interopRequireDefault(require("./target"));
26
+ var _Target = _interopRequireDefault(require("./Target"));
27
27
 
28
28
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
29
29
 
@@ -33,11 +33,13 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
33
33
  * transfer 穿梭框
34
34
  * author zhousheng
35
35
  */
36
- ;
37
-
38
36
  function transfer(props) {
37
+ var _classnames;
38
+
39
39
  var _props$prefixCls = props.prefixCls,
40
40
  prefixCls = _props$prefixCls === void 0 ? 'acud-transfer' : _props$prefixCls,
41
+ _props$displayType = props.displayType,
42
+ displayType = _props$displayType === void 0 ? 'single' : _props$displayType,
41
43
  _props$targetKeys = props.targetKeys,
42
44
  targetKeys = _props$targetKeys === void 0 ? [] : _props$targetKeys,
43
45
  onChange = props.onChange,
@@ -82,16 +84,18 @@ function transfer(props) {
82
84
  React.useEffect(function () {
83
85
  onChange && onChange(tKeys);
84
86
  }, [tKeys]);
85
- var classNames = (0, _classnames2["default"])((0, _defineProperty2["default"])({}, prefixCls, true));
87
+ var classNames = (0, _classnames2["default"])((_classnames = {}, (0, _defineProperty2["default"])(_classnames, prefixCls, true), (0, _defineProperty2["default"])(_classnames, "".concat(prefixCls, "-table"), displayType === 'table'), _classnames));
86
88
  return /*#__PURE__*/React.createElement("div", {
87
89
  className: classNames
88
- }, /*#__PURE__*/React.createElement(_dataSource["default"], (0, _extends2["default"])({}, props, {
90
+ }, /*#__PURE__*/React.createElement(_DataSource["default"], (0, _extends2["default"])({}, props, {
91
+ displayType: displayType,
89
92
  locale: userLocale,
90
93
  prefixCls: prefixCls,
91
94
  tKeys: tKeys,
92
95
  setTKeys: setTKeys,
93
96
  expansionSource: expansionSource
94
- })), /*#__PURE__*/React.createElement(_target["default"], (0, _extends2["default"])({}, props, {
97
+ })), /*#__PURE__*/React.createElement(_Target["default"], (0, _extends2["default"])({}, props, {
98
+ displayType: displayType,
95
99
  locale: userLocale,
96
100
  prefixCls: prefixCls,
97
101
  tKeys: tKeys,
@@ -2,4 +2,6 @@
2
2
 
3
3
  require("../../style/index.css");
4
4
 
5
- require("./index.css");
5
+ require("./index.css");
6
+
7
+ require("../../table/style/css");
@@ -32,6 +32,7 @@
32
32
  border: 1px solid #E8E9EB;
33
33
  border-radius: 4px;
34
34
  background-color: #F7F7F9;
35
+ overflow: hidden;
35
36
  }
36
37
  .acud-transfer-datasource-header {
37
38
  display: flex;
@@ -42,8 +43,10 @@
42
43
  border-radius: 4px 4px 0 0;
43
44
  line-height: 21px;
44
45
  }
46
+ .acud-transfer-datasource-header-checkall {
47
+ margin-right: 12px;
48
+ }
45
49
  .acud-transfer-datasource-label {
46
- margin-left: 12px;
47
50
  color: #151B26;
48
51
  font-size: 12px;
49
52
  font-weight: #FFECD4;
@@ -148,8 +151,8 @@
148
151
  padding-left: 60px;
149
152
  }
150
153
  .acud-transfer-datasource-search {
151
- height: 24px;
152
- margin: 8px 12px;
154
+ height: 40px;
155
+ padding: 8px 12px;
153
156
  width: auto;
154
157
  flex-shrink: 0;
155
158
  }
@@ -173,6 +176,7 @@
173
176
  border-radius: 4px;
174
177
  background-color: #F7F7F9;
175
178
  margin-left: 16px;
179
+ overflow: hidden;
176
180
  }
177
181
  .acud-transfer-target-header {
178
182
  display: flex;
@@ -325,10 +329,10 @@
325
329
  padding-left: 56px;
326
330
  }
327
331
  .acud-transfer-target-search {
328
- margin: 8px 12px;
332
+ padding: 8px 12px;
329
333
  width: auto;
330
334
  flex-shrink: 0;
331
- height: 24px;
335
+ height: 40px;
332
336
  }
333
337
  .acud-transfer-target-nodata {
334
338
  display: flex;
@@ -344,3 +348,21 @@
344
348
  .acud-transfer .acud-input input {
345
349
  font-size: 12px;
346
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';
@@ -2,4 +2,6 @@
2
2
 
3
3
  require("../../style/index.less");
4
4
 
5
- require("./index.less");
5
+ require("./index.less");
6
+
7
+ require("../../table/style");
@@ -26,6 +26,7 @@
26
26
  border: 1px solid @G8;
27
27
  border-radius: @R3;
28
28
  background-color: @G10;
29
+ overflow: hidden;
29
30
  &-header {
30
31
  display: flex;
31
32
  flex: none;
@@ -34,9 +35,11 @@
34
35
  background-color: @G10;
35
36
  border-radius: @R3 @R3 0 0;
36
37
  line-height: 21px;
38
+ &-checkall {
39
+ margin-right: @P * 3;
40
+ }
37
41
  }
38
42
  &-label {
39
- margin-left: @P * 3;
40
43
  color: @G2;
41
44
  font-size: @T2;
42
45
  font-weight: @W2;
@@ -87,8 +90,8 @@
87
90
  }
88
91
  }
89
92
  &-search {
90
- height: @P * 6;
91
- margin: @P * 2 @P * 3;
93
+ height: @P * 10;
94
+ padding: @P * 2 @P * 3;
92
95
  width: auto;
93
96
  flex-shrink: 0;
94
97
  }
@@ -113,6 +116,7 @@
113
116
  border-radius: @R3;
114
117
  background-color: @G10;
115
118
  margin-left: @P * 4;
119
+ overflow: hidden;
116
120
  &-header {
117
121
  display: flex;
118
122
  flex: none;
@@ -186,10 +190,10 @@
186
190
  }
187
191
  }
188
192
  &-search {
189
- margin: @P * 2 @P * 3;
193
+ padding: @P * 2 @P * 3;
190
194
  width: auto;
191
195
  flex-shrink: 0;
192
- height: @P * 6;
196
+ height: @P * 10;
193
197
  }
194
198
  &-nodata {
195
199
  display: flex;
@@ -206,4 +210,27 @@
206
210
  .@{acud-prefix}-input input {
207
211
  font-size: 12px;
208
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
+ }
209
236
  }
@@ -132,7 +132,11 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
132
132
 
133
133
  var infoUploadingClass = (0, _classnames["default"])((_classNames3 = {}, (0, _defineProperty2["default"])(_classNames3, "".concat(prefixCls, "-list-item"), true), (0, _defineProperty2["default"])(_classNames3, "".concat(prefixCls, "-list-item-").concat(file.status), true), (0, _defineProperty2["default"])(_classNames3, "".concat(prefixCls, "-list-item-list-type-").concat(listType), true), _classNames3));
134
134
  var linkProps = typeof file.linkProps === 'string' ? JSON.parse(file.linkProps) : file.linkProps;
135
- var removeIcon = showRemoveIcon ? actionIconRender((typeof customRemoveIcon === 'function' ? customRemoveIcon(file) : customRemoveIcon) || listType === 'text' ? /*#__PURE__*/React.createElement(_OutlinedClose["default"], null) : /*#__PURE__*/React.createElement(_OutlinedDelete["default"], null), function () {
135
+ var removeIcon = showRemoveIcon ? actionIconRender((typeof customRemoveIcon === 'function' ? customRemoveIcon(file) : customRemoveIcon) || listType === 'text' ? /*#__PURE__*/React.createElement(_OutlinedClose["default"], {
136
+ width: 16
137
+ }) : /*#__PURE__*/React.createElement(_OutlinedDelete["default"], {
138
+ width: 16
139
+ }), function () {
136
140
  return onClose(file);
137
141
  }, prefixCls, locale.removeFile) : null;
138
142
  var downloadIcon = showDownloadIcon ? actionIconRender((typeof customDownloadIcon === 'function' ? customDownloadIcon(file) : customDownloadIcon) || /*#__PURE__*/React.createElement(_OutlinedCloudDownload["default"], null), function () {
@@ -219,7 +223,8 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
219
223
  strokeColor: "#2468F2",
220
224
  infoType: "none",
221
225
  type: "line",
222
- percent: file.percent
226
+ percent: file.percent,
227
+ strokeWidth: listType === 'text' ? 2 : 4
223
228
  }, progressProps)) : null;
224
229
  return /*#__PURE__*/React.createElement("div", {
225
230
  className: (0, _classnames["default"])("".concat(prefixCls, "-list-item-progress"), motionClassName)
@@ -196,16 +196,14 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
196
196
  }) : /*#__PURE__*/React.createElement(_OutlinedFile["default"], {
197
197
  width: 24
198
198
  });
199
- var icon = isLoading ? /*#__PURE__*/React.createElement(_OutlinedLoading["default"], {
200
- animation: "spin"
201
- }) : renderIcon(file.name || file.fileName);
199
+ var icon = renderIcon(file.name || file.fileName);
202
200
 
203
201
  if (listType === 'picture') {
204
202
  icon = isLoading ? /*#__PURE__*/React.createElement(_OutlinedLoading["default"], {
205
203
  animation: "spin"
206
204
  }) : fileIcon;
207
205
  } else if (listType === 'picture-card') {
208
- icon = isLoading ? locale.uploading : fileIcon;
206
+ icon = isLoading ? "".concat(locale.uploading, "...") : fileIcon;
209
207
  }
210
208
 
211
209
  return icon;
@@ -318,9 +316,8 @@ var UploadList = /*#__PURE__*/React.forwardRef(InternalUploadList);
318
316
  UploadList.displayName = 'UploadList';
319
317
  UploadList.defaultProps = {
320
318
  listType: 'text',
321
- progress: {
322
- strokeWidth: 2 // showInfo: false
323
-
319
+ progress: {// strokeWidth: 4,
320
+ // showInfo: false
324
321
  },
325
322
  showUploadIcon: true,
326
323
  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} {
@@ -39,7 +39,7 @@ function updateFileList(file, fileList) {
39
39
  });
40
40
 
41
41
  if (fileIndex === -1) {
42
- nextFileList.push(file);
42
+ nextFileList.unshift(file);
43
43
  } else {
44
44
  nextFileList[fileIndex] = file;
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acud",
3
- "version": "0.0.63",
3
+ "version": "0.0.66",
4
4
  "description": "acg react 组件库",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",