@qn-pandora/pandora-component 4.4.0 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +12 -0
- package/CHANGELOG.md +8 -1
- package/es/components/FileResumable/constants.d.ts +1 -0
- package/es/components/FileResumable/index.js +10 -3
- package/es/index.css +8257 -8257
- package/es/index.less +25 -25
- package/lib/components/FileResumable/constants.d.ts +1 -0
- package/lib/components/FileResumable/index.js +10 -3
- package/lib/index.css +4818 -4818
- package/lib/index.less +13 -13
- package/package.json +1 -1
package/CHANGELOG.json
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"name": "@qn-pandora/pandora-component",
|
3
3
|
"entries": [
|
4
|
+
{
|
5
|
+
"version": "4.4.1",
|
6
|
+
"tag": "@qn-pandora/pandora-component_v4.4.1",
|
7
|
+
"date": "Mon, 15 Jan 2024 01:53:53 GMT",
|
8
|
+
"comments": {
|
9
|
+
"patch": [
|
10
|
+
{
|
11
|
+
"comment": "2024-01-15发包"
|
12
|
+
}
|
13
|
+
]
|
14
|
+
}
|
15
|
+
},
|
4
16
|
{
|
5
17
|
"version": "4.4.0",
|
6
18
|
"tag": "@qn-pandora/pandora-component_v4.4.0",
|
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
# Change Log - @qn-pandora/pandora-component
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Mon, 15 Jan 2024 01:53:53 GMT and should not be manually modified.
|
4
|
+
|
5
|
+
## 4.4.1
|
6
|
+
Mon, 15 Jan 2024 01:53:53 GMT
|
7
|
+
|
8
|
+
### Patches
|
9
|
+
|
10
|
+
- 2024-01-15发包
|
4
11
|
|
5
12
|
## 4.4.0
|
6
13
|
Fri, 05 Jan 2024 07:56:00 GMT
|
@@ -98,7 +98,7 @@ export default function FileResumable(props) {
|
|
98
98
|
var _g = __read(useState(false), 2), showTool = _g[0], setShowTool = _g[1];
|
99
99
|
var _h = __read(useState(''), 2), imageUrl = _h[0], setImageUrl = _h[1];
|
100
100
|
var locale = useContext(ConfigContext).locale;
|
101
|
-
var maxFileSize = props.maxFileSize, minFileSize = props.minFileSize, minFileSizeErrorCallback = props.minFileSizeErrorCallback, maxFileSizeErrorCallback = props.maxFileSizeErrorCallback, onError = props.onError, onChange = props.onChange, query = props.query, onStop = props.onStop, onSuccess = props.onSuccess, accept = props.accept, fileList = props.fileList, uploading = props.uploading, children = props.children, className = props.className, showUploadList = props.showUploadList, mode = props.mode, uploadIcon = props.uploadIcon, uploadDesc = props.uploadDesc, disabled = props.disabled, defaultImageUrl = props.defaultImageUrl, others = __rest(props, ["maxFileSize", "minFileSize", "minFileSizeErrorCallback", "maxFileSizeErrorCallback", "onError", "onChange", "query", "onStop", "onSuccess", "accept", "fileList", "uploading", "children", "className", "showUploadList", "mode", "uploadIcon", "uploadDesc", "disabled", "defaultImageUrl"]);
|
101
|
+
var maxFileSize = props.maxFileSize, minFileSize = props.minFileSize, minFileSizeErrorCallback = props.minFileSizeErrorCallback, maxFileSizeErrorCallback = props.maxFileSizeErrorCallback, onError = props.onError, onChange = props.onChange, query = props.query, onStop = props.onStop, onSuccess = props.onSuccess, accept = props.accept, fileList = props.fileList, uploading = props.uploading, children = props.children, className = props.className, showUploadList = props.showUploadList, mode = props.mode, uploadIcon = props.uploadIcon, uploadDesc = props.uploadDesc, disabled = props.disabled, defaultImageUrl = props.defaultImageUrl, _j = props.persistence, persistence = _j === void 0 ? 0 : _j, others = __rest(props, ["maxFileSize", "minFileSize", "minFileSizeErrorCallback", "maxFileSizeErrorCallback", "onError", "onChange", "query", "onStop", "onSuccess", "accept", "fileList", "uploading", "children", "className", "showUploadList", "mode", "uploadIcon", "uploadDesc", "disabled", "defaultImageUrl", "persistence"]);
|
102
102
|
var handleRemove = useCallback(function () {
|
103
103
|
onChange === null || onChange === void 0 ? void 0 : onChange(null);
|
104
104
|
}, [onChange]);
|
@@ -264,7 +264,7 @@ export default function FileResumable(props) {
|
|
264
264
|
var params, realFile_1, reader, extension_1;
|
265
265
|
var _this = this;
|
266
266
|
return __generator(this, function (_a) {
|
267
|
-
params = __assign({}, query);
|
267
|
+
params = __assign(__assign({}, query), { persistence: persistence });
|
268
268
|
if (fileList.length === 1) {
|
269
269
|
realFile_1 = fileList[0];
|
270
270
|
reader = new FileReader();
|
@@ -323,7 +323,14 @@ export default function FileResumable(props) {
|
|
323
323
|
setShowTool(true);
|
324
324
|
return [2 /*return*/];
|
325
325
|
});
|
326
|
-
}); }, [
|
326
|
+
}); }, [
|
327
|
+
query,
|
328
|
+
setShowTool,
|
329
|
+
fileList,
|
330
|
+
handleError,
|
331
|
+
handleFileSuccess,
|
332
|
+
persistence
|
333
|
+
]);
|
327
334
|
var handleUploadStart = useCallback(function () {
|
328
335
|
setIsPlayDisabled(true);
|
329
336
|
setIsPauseDisabled(false);
|