antd-form-document 4.0.6 → 4.0.7

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 CHANGED
@@ -888,7 +888,7 @@ const App = () => {
888
888
  | multiple | 暂缺 | boolean | false | - |
889
889
  | maxCount | 最大上传文件个数 | number | - | ✓ |
890
890
  | fileSize | 单个文件最大字节;`1B`、`1KB`、`1MB`、`1GB`、`1TB`、`1PB` | string | - | |
891
- | fileType | 上传文件类型;[mime-type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) | string | - | |
891
+ | fileType | 上传文件类型;[mime-type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) 或文件扩展名 `需预先配置` | string | - | |
892
892
  | fileTypeMessage | 上传文件类型提示说明 | string | - | |
893
893
  | defaultHide | 默认是否隐藏 | boolean | false | - |
894
894
  | tips | 字段提示 | string | - | |
@@ -955,7 +955,7 @@ const App = () => {
955
955
  | multiple | 暂缺 | boolean | false | - |
956
956
  | maxCount | 最大上传文件个数 | number | - | ✓ |
957
957
  | fileSize | 单个文件最大字节;`1B`、`1KB`、`1MB`、`1GB`、`1TB`、`1PB` | string | - | |
958
- | fileType | 上传文件类型;[mime-type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) | string | - | |
958
+ | fileType | 上传文件类型;[mime-type](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept) 或文件扩展名 `需预先配置` | string | - | |
959
959
  | fileTypeMessage | 上传文件类型提示说明 | string | - | |
960
960
  | defaultHide | 默认是否隐藏 | boolean | false | - |
961
961
  | tips | 字段提示 | string | - | |
@@ -1271,8 +1271,10 @@ const App = () => {
1271
1271
  | 参数 | 说明 | 类型 | 默认值 | 必填项 |
1272
1272
  | ---------- | ---------- | ------ | ------ | ------ |
1273
1273
  | components | 自定义组件 | object | - | |
1274
+ | previewCompoents | 预览组件 | { PreviewText`文本预览`、PreviewDuration`时长预览`、PreviewSwitch`切换预览`、PreviewList`列表预览`、PreviewImage`图片预览`、PreviewFile`文件预览` } | - | |
1274
1275
  | request | 请求参数 | object | - | |
1275
1276
  | file | 文件参数 | object | - | |
1277
+ | chunk | 大文件上传参数 | object | - | |
1276
1278
  | form | 表单参数 | object | - | |
1277
1279
 
1278
1280
  **例:**
@@ -1284,6 +1286,35 @@ export default defineConfig({
1284
1286
  Department,
1285
1287
  UploadList
1286
1288
  },
1289
+ previewCompoents: {
1290
+ PreviewFile
1291
+ },
1292
+ mimeType: {
1293
+ ".doc": "application/msword",
1294
+ ".docx": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
1295
+ ".xls": "application/vnd.ms-excel",
1296
+ ".xlsx": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
1297
+ ".ppt": "application/vnd.ms-powerpoint",
1298
+ ".pptx": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
1299
+ ".pdf": "application/pdf",
1300
+ ".txt": "text/plain",
1301
+ ".mp3": "audio/mpeg",
1302
+ ".wma": "audio/x-ms-wma",
1303
+ ".wav": "audio/wav",
1304
+ ".mp4": "video/mp4",
1305
+ ".m4v": "video/x-m4v",
1306
+ ".wmv": "video/x-ms-wmv",
1307
+ ".avi": "video/x-msvideo",
1308
+ ".mov": "video/quicktime",
1309
+ ".mkv": "video/x-matroska",
1310
+ ".png": "image/png",
1311
+ ".jpeg": "image/jpeg",
1312
+ ".jpg": "image/jpeg",
1313
+ ".zip": "application/x-zip-compressed",
1314
+ ".rar": "application/octet-stream",
1315
+ ".tar": "application/x-tar",
1316
+ ".gz": "application/x-gzip",
1317
+ },
1287
1318
  request: {
1288
1319
  prefix: "api",
1289
1320
  },
@@ -1292,6 +1323,15 @@ export default defineConfig({
1292
1323
  downloadUrl: "/api/fileDownload",
1293
1324
  uploadUrl: "/api/file/upload"
1294
1325
  },
1326
+ chunk: {
1327
+ checkFile: "/api/checkFile",
1328
+ checkChunk: "/api/checkChunk",
1329
+ chunkUpload: "/api/chunkUpload",
1330
+ doMerge: "/api/doMerge",
1331
+ mergeProgress: "/api/mergeProgress",
1332
+ onComplete: "/api/onComplete",
1333
+ completeProgress: "/api/completeProgress"
1334
+ }
1295
1335
  form: {
1296
1336
  documentUrl: "/form/:formId"
1297
1337
  }