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.
- package/dist/acud.css +51 -38
- package/dist/acud.css.map +1 -1
- package/dist/acud.js +513 -477
- package/dist/acud.js.map +1 -1
- package/dist/acud.min.css +1 -1
- package/dist/acud.min.css.map +1 -1
- package/dist/acud.min.js +6 -6
- package/dist/acud.min.js.map +1 -1
- package/es/cascader/Cascader.js +2 -1
- package/es/cascader/MenuItem.js +7 -13
- package/es/cascader/Menus.d.ts +3 -2
- package/es/cascader/Menus.js +30 -24
- package/es/cascader/index.js +21 -14
- package/es/cascader/style/index.css +15 -11
- package/es/cascader/style/index.less +21 -14
- package/es/date-picker/generatePicker/generateSinglePicker.js +7 -5
- package/es/dropdown/dropdown.js +2 -3
- package/es/form/style/horizontal.less +3 -2
- package/es/form/style/index.css +2 -3
- package/es/input/style/index.css +3 -0
- package/es/input/style/index.less +3 -0
- package/es/input-number/src/hooks/useLayoutEffect.d.ts +1 -1
- package/es/locale/en_US.js +2 -0
- package/es/locale/zh_CN.js +2 -0
- package/es/menu/menu.d.ts +2 -1
- package/es/radio/Radio.d.ts +1 -0
- package/es/radio/Radio.js +3 -2
- package/es/radio/RadioButton.js +3 -2
- package/es/radio/RadioGroup.d.ts +1 -0
- package/es/radio/RadioGroup.js +4 -1
- package/es/radio/context.d.ts +1 -0
- package/es/toast/index.js +5 -6
- package/es/toast/style/index.css +1 -1
- package/es/toast/style/index.less +3 -3
- package/es/transfer/SourceList.js +1 -0
- package/es/transfer/index.js +3 -7
- package/es/transfer/style/index.css +3 -0
- package/es/transfer/style/index.less +3 -0
- package/es/upload/Upload.js +6 -1
- package/es/upload/UploadList/ListItem.d.ts +1 -0
- package/es/upload/UploadList/ListItem.js +5 -3
- package/es/upload/UploadList/index.js +7 -3
- package/es/upload/interface.d.ts +2 -0
- package/es/upload/style/index.css +26 -22
- package/es/upload/style/index.less +29 -22
- package/lib/cascader/Cascader.js +2 -1
- package/lib/cascader/MenuItem.js +7 -13
- package/lib/cascader/Menus.d.ts +3 -2
- package/lib/cascader/Menus.js +31 -24
- package/lib/cascader/index.js +22 -14
- package/lib/cascader/style/index.css +15 -11
- package/lib/cascader/style/index.less +21 -14
- package/lib/date-picker/generatePicker/generateSinglePicker.js +7 -5
- package/lib/dropdown/dropdown.js +2 -3
- package/lib/form/style/horizontal.less +3 -2
- package/lib/form/style/index.css +2 -3
- package/lib/input/style/index.css +3 -0
- package/lib/input/style/index.less +3 -0
- package/lib/input-number/src/hooks/useLayoutEffect.d.ts +1 -1
- package/lib/locale/en_US.js +5 -0
- package/lib/locale/zh_CN.js +5 -0
- package/lib/menu/menu.d.ts +2 -1
- package/lib/radio/Radio.d.ts +1 -0
- package/lib/radio/Radio.js +3 -2
- package/lib/radio/RadioButton.js +3 -2
- package/lib/radio/RadioGroup.d.ts +1 -0
- package/lib/radio/RadioGroup.js +5 -1
- package/lib/radio/context.d.ts +1 -0
- package/lib/toast/index.js +5 -6
- package/lib/toast/style/index.css +1 -1
- package/lib/toast/style/index.less +3 -3
- package/lib/transfer/SourceList.js +1 -0
- package/lib/transfer/index.js +3 -7
- package/lib/transfer/style/index.css +3 -0
- package/lib/transfer/style/index.less +3 -0
- package/lib/upload/Upload.js +6 -1
- package/lib/upload/UploadList/ListItem.d.ts +1 -0
- package/lib/upload/UploadList/ListItem.js +5 -3
- package/lib/upload/UploadList/index.js +7 -3
- package/lib/upload/interface.d.ts +2 -0
- package/lib/upload/style/index.css +26 -22
- package/lib/upload/style/index.less +29 -22
- package/package.json +1 -1
- package/CHANGELOG.md +0 -4
package/lib/toast/index.js
CHANGED
|
@@ -74,7 +74,6 @@ function ToastDom(props) {
|
|
|
74
74
|
|
|
75
75
|
var _useState = (0, _react.useState)(null),
|
|
76
76
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
77
|
-
timerID = _useState2[0],
|
|
78
77
|
setTimerID = _useState2[1];
|
|
79
78
|
|
|
80
79
|
var _useState3 = (0, _react.useState)(countdown),
|
|
@@ -101,9 +100,9 @@ function ToastDom(props) {
|
|
|
101
100
|
}
|
|
102
101
|
|
|
103
102
|
return function () {
|
|
104
|
-
|
|
105
|
-
|
|
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:
|
|
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
|
package/lib/transfer/index.js
CHANGED
|
@@ -80,11 +80,7 @@ function transfer(props) {
|
|
|
80
80
|
tKeys = _React$useState2[0],
|
|
81
81
|
setTKeys = _React$useState2[1];
|
|
82
82
|
|
|
83
|
-
|
|
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:
|
|
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:
|
|
101
|
+
tKeys: mergedKeys,
|
|
106
102
|
setTKeys: setTKeys,
|
|
107
103
|
expansionSource: expansionSource
|
|
108
104
|
})));
|
package/lib/upload/Upload.js
CHANGED
|
@@ -107,6 +107,7 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
107
107
|
type = props.type,
|
|
108
108
|
children = props.children,
|
|
109
109
|
style = props.style,
|
|
110
|
+
motionDeadline = props.motionDeadline,
|
|
110
111
|
itemRender = props.itemRender,
|
|
111
112
|
maxCount = props.maxCount,
|
|
112
113
|
description = props.description,
|
|
@@ -447,6 +448,7 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
447
448
|
return /*#__PURE__*/React.createElement(_UploadList["default"], {
|
|
448
449
|
listType: listType,
|
|
449
450
|
items: mergedFileList,
|
|
451
|
+
motionDeadline: motionDeadline,
|
|
450
452
|
previewFile: previewFile,
|
|
451
453
|
onPreview: onPreview,
|
|
452
454
|
onDownload: onDownload,
|
|
@@ -474,12 +476,15 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
474
476
|
|
|
475
477
|
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
478
|
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);
|
|
479
|
+
})), (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
480
|
return /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("div", {
|
|
479
481
|
className: dragCls,
|
|
480
482
|
onDrop: onFileDrop,
|
|
481
483
|
onDragOver: onFileDrop,
|
|
482
484
|
onDragLeave: onFileDrop,
|
|
485
|
+
onMouseDown: onFileDrop,
|
|
486
|
+
onMouseUp: onFileDrop,
|
|
487
|
+
onMouseLeave: onFileDrop,
|
|
483
488
|
style: style
|
|
484
489
|
}, /*#__PURE__*/React.createElement(_BaseUpload["default"], (0, _extends2["default"])({}, rcUploadProps, {
|
|
485
490
|
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
|
|
32
|
+
var _OutlinedButtonUpload = _interopRequireDefault(require("acud-icon/lib/icons/OutlinedButtonUpload"));
|
|
33
33
|
|
|
34
34
|
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
35
35
|
|
|
@@ -60,6 +60,8 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
60
60
|
actionIconRender = _ref.actionIconRender,
|
|
61
61
|
itemRender = _ref.itemRender,
|
|
62
62
|
isImgUrl = _ref.isImgUrl,
|
|
63
|
+
_ref$motionDeadline = _ref.motionDeadline,
|
|
64
|
+
motionDeadline = _ref$motionDeadline === void 0 ? 2000 : _ref$motionDeadline,
|
|
63
65
|
showPreviewIcon = _ref.showPreviewIcon,
|
|
64
66
|
showRemoveIcon = _ref.showRemoveIcon,
|
|
65
67
|
showDownloadIcon = _ref.showDownloadIcon,
|
|
@@ -185,7 +187,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
185
187
|
title: locale.previewFile
|
|
186
188
|
}, /*#__PURE__*/React.createElement(_OutlinedEye["default"], null)) : null; // 上传icon
|
|
187
189
|
|
|
188
|
-
var uploadIcon = showUploadIcon ? actionIconRender((typeof customUploadIcon === 'function' ? customUploadIcon(file) : customUploadIcon) || /*#__PURE__*/React.createElement(
|
|
190
|
+
var uploadIcon = showUploadIcon ? actionIconRender((typeof customUploadIcon === 'function' ? customUploadIcon(file) : customUploadIcon) || /*#__PURE__*/React.createElement(_OutlinedButtonUpload["default"], null), function () {
|
|
189
191
|
return onUpload(file);
|
|
190
192
|
}, prefixCls, locale.uploadFile) : null;
|
|
191
193
|
var actions = listType === 'picture-card' && file.status !== 'uploading' && /*#__PURE__*/React.createElement("span", {
|
|
@@ -214,7 +216,7 @@ var ListItem = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
214
216
|
}, iconAndPreview), actions, showProgress && /*#__PURE__*/React.createElement(_rcMotion["default"], {
|
|
215
217
|
motionName: "".concat(rootPrefixCls, "-fade"),
|
|
216
218
|
visible: file.status === 'uploading',
|
|
217
|
-
motionDeadline:
|
|
219
|
+
motionDeadline: motionDeadline
|
|
218
220
|
}, function (_ref2) {
|
|
219
221
|
var motionClassName = _ref2.className;
|
|
220
222
|
// show loading icon if upload progress listener is disabled
|
|
@@ -92,7 +92,7 @@ var renderIcon = function renderIcon(fileName) {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
return /*#__PURE__*/React.createElement(Icon, {
|
|
95
|
-
width:
|
|
95
|
+
width: 16
|
|
96
96
|
});
|
|
97
97
|
};
|
|
98
98
|
|
|
@@ -119,6 +119,8 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
|
|
|
119
119
|
downloadIcon = _ref.downloadIcon,
|
|
120
120
|
uploadIcon = _ref.uploadIcon,
|
|
121
121
|
progress = _ref.progress,
|
|
122
|
+
_ref$motionDeadline = _ref.motionDeadline,
|
|
123
|
+
motionDeadline = _ref$motionDeadline === void 0 ? 2000 : _ref$motionDeadline,
|
|
122
124
|
appendAction = _ref.appendAction,
|
|
123
125
|
itemRender = _ref.itemRender;
|
|
124
126
|
var forceUpdate = (0, _useForceUpdate["default"])();
|
|
@@ -254,7 +256,7 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
|
|
|
254
256
|
var animationDirection = listType === 'picture-card' ? 'animate-inline' : 'animate'; // const transitionName = list.length === 0 ? '' : `${prefixCls}-${animationDirection}`;
|
|
255
257
|
|
|
256
258
|
var motionConfig = {
|
|
257
|
-
motionDeadline:
|
|
259
|
+
motionDeadline: motionDeadline,
|
|
258
260
|
motionName: "".concat(prefixCls, "-").concat(animationDirection),
|
|
259
261
|
keys: motionKeyList,
|
|
260
262
|
motionAppear: motionAppear
|
|
@@ -307,7 +309,8 @@ var InternalUploadList = function InternalUploadList(_ref, ref) {
|
|
|
307
309
|
onPreview: onInternalPreview,
|
|
308
310
|
onDownload: onInternalDownload,
|
|
309
311
|
onClose: onInternalClose,
|
|
310
|
-
onUpload: onInternalUpload
|
|
312
|
+
onUpload: onInternalUpload,
|
|
313
|
+
motionDeadline: motionDeadline
|
|
311
314
|
});
|
|
312
315
|
}));
|
|
313
316
|
};
|
|
@@ -320,6 +323,7 @@ UploadList.defaultProps = {
|
|
|
320
323
|
// showInfo: false
|
|
321
324
|
},
|
|
322
325
|
showUploadIcon: true,
|
|
326
|
+
motionDeadline: 2000,
|
|
323
327
|
showRemoveIcon: true,
|
|
324
328
|
showDownloadIcon: false,
|
|
325
329
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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-
|
|
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:
|
|
523
|
-
object-fit:
|
|
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
|
|
587
|
-
|
|
588
|
-
|
|
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:
|
|
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:
|
|
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
|
|
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
|
|
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-
|
|
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:
|
|
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,
|
package/package.json
CHANGED
package/CHANGELOG.md
DELETED