@@ -71,8 +71,8 @@ npm start
7171| ` accept ` | string \| AcceptConfig | - | input accept 配置。 |
7272| ` action ` | string \| ` (file) => string \| PromiseLike<string> ` | - | 上传地址或异步解析函数。 |
7373| ` beforeUpload ` | ` (file, fileList) => BeforeUploadFileType \| Promise<void \| BeforeUploadFileType> \| void ` | - | 上传前校验或转换文件。返回 false 可阻止上传。 |
74- | ` className ` | string | - | 根className 。 |
75- | ` classNames ` | ` { input?: string } ` | - | 语义className 。 |
74+ | ` className ` | string | - | 根 className 。 |
75+ | ` classNames ` | ` { input?: string } ` | - | 语义化类名 。 |
7676| ` component ` | React.ComponentType<any > \| string | ` 'span' ` | 根组件。 |
7777| ` customRequest ` | CustomUploadRequestOption | - | 覆盖默认请求行为。 |
7878| ` data ` | object \| ` (file) => object ` | ` {} ` | 额外上传数据。 |
@@ -91,7 +91,7 @@ npm start
9191| ` onSuccess ` | ` (response, file, xhr) => void ` | - | 上传成功回调。 |
9292| ` openFileDialogOnClick ` | boolean | true | 点击根节点时打开文件选择框。 |
9393| ` pastable ` | boolean | false | 启用粘贴上传。 |
94- | ` prefixCls ` | string | ` 'rc-upload' ` | 前缀className 。 |
94+ | ` prefixCls ` | string | ` 'rc-upload' ` | 前缀 className 。 |
9595| ` style ` | React.CSSProperties | - | 根样式。 |
9696| ` styles ` | ` { input?: React.CSSProperties } ` | - | 语义化样式。 |
9797| ` withCredentials ` | boolean | false | 随 Ajax 上传发送凭证。 |
@@ -100,7 +100,7 @@ npm start
100100
101101| 名称 | 类型 | 说明 |
102102| ------- | ------------------------- | ----------------------- |
103- | ` abort ` | ` (file? : RcFile) => void ` | 中止进行中的上传。 |
103+ | ` abort ` | ` (file: RcFile) => void ` | 中止进行中的上传。 |
104104
105105## 本地开发
106106
0 commit comments