Skip to content

Commit

Permalink
chore: update common (#2863)
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Apr 25, 2024
1 parent 4d4fcb1 commit 964c5e8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/upload/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export interface TdUploadProps<T extends UploadFile = UploadFile> {
* HTTP 请求类型
* @default POST
*/
method?: 'POST' | 'GET' | 'PUT' | 'OPTION' | 'PATCH' | 'post' | 'get' | 'put' | 'option' | 'patch';
method?: 'POST' | 'GET' | 'PUT' | 'OPTIONS' | 'PATCH' | 'post' | 'get' | 'put' | 'options' | 'patch';
/**
* 模拟进度间隔时间,单位:毫秒,默认:300。由于原始的上传请求,小文件上传进度只有 0 和 100,故而新增模拟进度,每间隔 `mockProgressDuration` 毫秒刷新一次模拟进度。小文件设置小一点,大文件设置大一点。注意:当 `useMockProgress` 为真时,当前设置有效
*/
Expand Down
2 changes: 1 addition & 1 deletion src/upload/upload.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inputAttributes | Object | - | add attributes to HTML element `input`。Typescri
isBatchUpload | Boolean | false | make all files to be a whole package, files can only be replaced or deleted together, can not add more files | N
locale | Object | - | upload language config, priority of `locale` is higher than global language config。Typescript:`UploadConfig` `import { UploadConfig } from '../config-provider/type'`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/src/upload/type.ts) | N
max | Number | 0 | max count of files limit | N
method | String | POST | HTTP request method。options: POST/GET/PUT/OPTION/PATCH/post/get/put/option/patch | N
method | String | POST | HTTP request method。options: POST/GET/PUT/OPTIONS/PATCH/post/get/put/options/patch | N
mockProgressDuration | Number | - | mock progress duration time. more large files more duration time | N
multiple | Boolean | false | multiple files uploading | N
name | String | file | field name of files in upload request data | N
Expand Down
2 changes: 1 addition & 1 deletion src/upload/upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ inputAttributes | Object | - | 用于添加属性到 HTML 元素 `input`。TS
isBatchUpload | Boolean | false | 多个文件是否作为一个独立文件包,整体替换,整体删除。不允许追加文件,只允许替换文件。`theme=file-flow` 时有效 | N
locale | Object | - | 上传组件文本语言配置,支持自定义配置组件中的全部文本。优先级高于全局配置中语言。TS 类型:`UploadConfig` `import { UploadConfig } from '../config-provider/type'`[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/src/upload/type.ts) | N
max | Number | 0 | 用于控制文件上传数量,值为 0 则不限制。注意,单文件上传场景,请勿设置 `max` 属性 | N
method | String | POST | HTTP 请求类型。可选项:POST/GET/PUT/OPTION/PATCH/post/get/put/option/patch | N
method | String | POST | HTTP 请求类型。可选项:POST/GET/PUT/OPTIONS/PATCH/post/get/put/options/patch | N
mockProgressDuration | Number | - | 模拟进度间隔时间,单位:毫秒,默认:300。由于原始的上传请求,小文件上传进度只有 0 和 100,故而新增模拟进度,每间隔 `mockProgressDuration` 毫秒刷新一次模拟进度。小文件设置小一点,大文件设置大一点。注意:当 `useMockProgress` 为真时,当前设置有效 | N
multiple | Boolean | false | 支持多文件上传 | N
name | String | file | 文件上传时的名称 | N
Expand Down

0 comments on commit 964c5e8

Please sign in to comment.