antd-form-document 4.0.17 → 4.1.0
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/README.md +7 -1
- package/dist/index.tsx +1 -1
- package/dist/index.tsx.map +1 -1
- package/dist/src/config.d.ts +2 -1
- package/dist/src/config.d.ts.map +1 -1
- package/dist/src/service/UploadComponent.d.ts +16 -0
- package/dist/src/service/UploadComponent.d.ts.map +1 -1
- package/dist/src/service/WidgetComponent.d.ts +0 -7
- package/dist/src/service/WidgetComponent.d.ts.map +1 -1
- package/dist/src/utils/request.d.ts +1 -1
- package/dist/src/utils/request.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1066,6 +1066,8 @@ const App = () => {
|
|
|
1066
1066
|
| fileSize | 单个文件最大字节;`1B`、`1KB`、`1MB`、`1GB`、`1TB`、`1PB` | string | - | |
|
|
1067
1067
|
| fileType | 上传文件类型;[mime-type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) 或文件扩展名 `需预先配置` | string | - | |
|
|
1068
1068
|
| fileTypeMessage | 上传文件类型提示说明 | string | - | |
|
|
1069
|
+
| fileChunkSize | 上传文件分片大小 | string | 10MB | |
|
|
1070
|
+
| requestTimeout | 上传分片文件超时时长 | string | 60s | |
|
|
1069
1071
|
| defaultHide | 默认是否隐藏 | boolean | false | - |
|
|
1070
1072
|
| tips | 字段提示 | string | - | |
|
|
1071
1073
|
| hideClear | 是否在控件隐藏时清除数据 | boolean | false | - |
|
|
@@ -1432,13 +1434,17 @@ export default defineConfig({
|
|
|
1432
1434
|
},
|
|
1433
1435
|
request: {
|
|
1434
1436
|
prefix: "api",
|
|
1437
|
+
timeout: 20000,
|
|
1435
1438
|
},
|
|
1436
1439
|
file: {
|
|
1437
1440
|
listUrl: "'/api/fileList'",
|
|
1438
1441
|
downloadUrl: "/api/fileDownload",
|
|
1439
1442
|
uploadUrl: "/api/file/upload"
|
|
1443
|
+
previewUrl: "/file/preview",
|
|
1440
1444
|
},
|
|
1441
1445
|
chunk: {
|
|
1446
|
+
threads: 5,
|
|
1447
|
+
chunkSize: 10 * 1024 ** 2,
|
|
1442
1448
|
checkFile: "/api/checkFile",
|
|
1443
1449
|
checkChunk: "/api/checkChunk",
|
|
1444
1450
|
chunkUpload: "/api/chunkUpload",
|
|
@@ -1446,7 +1452,7 @@ export default defineConfig({
|
|
|
1446
1452
|
mergeProgress: "/api/mergeProgress",
|
|
1447
1453
|
onComplete: "/api/onComplete",
|
|
1448
1454
|
completeProgress: "/api/completeProgress"
|
|
1449
|
-
}
|
|
1455
|
+
},
|
|
1450
1456
|
form: {
|
|
1451
1457
|
documentUrl: "/form/:formId"
|
|
1452
1458
|
}
|