@douyinfe/semi-foundation 2.32.1-alpha.2 → 2.32.1
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.
|
@@ -295,9 +295,6 @@ class UploadFoundation extends _foundation.default {
|
|
|
295
295
|
_sizeInvalid,
|
|
296
296
|
status
|
|
297
297
|
} = fileInstance;
|
|
298
|
-
const {
|
|
299
|
-
renderThumbnail
|
|
300
|
-
} = this.getProps();
|
|
301
298
|
|
|
302
299
|
try {
|
|
303
300
|
// can't use ... to get rest property on File Object
|
|
@@ -312,7 +309,7 @@ class UploadFoundation extends _foundation.default {
|
|
|
312
309
|
uid: fileInstance.uid,
|
|
313
310
|
percent: 0,
|
|
314
311
|
fileInstance,
|
|
315
|
-
url:
|
|
312
|
+
url: this._createURL(fileInstance)
|
|
316
313
|
};
|
|
317
314
|
|
|
318
315
|
if (_sizeInvalid) {
|
|
@@ -281,9 +281,6 @@ class UploadFoundation extends BaseFoundation {
|
|
|
281
281
|
_sizeInvalid,
|
|
282
282
|
status
|
|
283
283
|
} = fileInstance;
|
|
284
|
-
const {
|
|
285
|
-
renderThumbnail
|
|
286
|
-
} = this.getProps();
|
|
287
284
|
|
|
288
285
|
try {
|
|
289
286
|
// can't use ... to get rest property on File Object
|
|
@@ -298,7 +295,7 @@ class UploadFoundation extends BaseFoundation {
|
|
|
298
295
|
uid: fileInstance.uid,
|
|
299
296
|
percent: 0,
|
|
300
297
|
fileInstance,
|
|
301
|
-
url:
|
|
298
|
+
url: this._createURL(fileInstance)
|
|
302
299
|
};
|
|
303
300
|
|
|
304
301
|
if (_sizeInvalid) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.32.1
|
|
3
|
+
"version": "2.32.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "cf24900a712ebce46d0c0e06aa31dcc97519fe13",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/upload/foundation.ts
CHANGED
|
@@ -261,7 +261,6 @@ class UploadFoundation<P = Record<string, any>, S = Record<string, any>> extends
|
|
|
261
261
|
|
|
262
262
|
buildFileItem(fileInstance: CustomFile, uploadTrigger: string): BaseFileItem {
|
|
263
263
|
const { _sizeInvalid, status } = fileInstance;
|
|
264
|
-
const { renderThumbnail } = this.getProps();
|
|
265
264
|
try {
|
|
266
265
|
// can't use ... to get rest property on File Object
|
|
267
266
|
delete fileInstance._sizeInvalid;
|
|
@@ -275,7 +274,7 @@ class UploadFoundation<P = Record<string, any>, S = Record<string, any>> extends
|
|
|
275
274
|
uid: fileInstance.uid,
|
|
276
275
|
percent: 0,
|
|
277
276
|
fileInstance,
|
|
278
|
-
url:
|
|
277
|
+
url: this._createURL(fileInstance),
|
|
279
278
|
};
|
|
280
279
|
|
|
281
280
|
if (_sizeInvalid) {
|
|
@@ -323,7 +322,7 @@ class UploadFoundation<P = Record<string, any>, S = Record<string, any>> extends
|
|
|
323
322
|
|
|
324
323
|
// 插入多个文件到指定位置
|
|
325
324
|
// Insert files to the specified location
|
|
326
|
-
insertFileToList(files: Array<CustomFile>, index:
|
|
325
|
+
insertFileToList(files: Array<CustomFile>, index:number): void {
|
|
327
326
|
const { limit, transformFile, accept, uploadTrigger } = this.getProps();
|
|
328
327
|
const { fileList } = this.getStates();
|
|
329
328
|
|