Skip to content

Commit

Permalink
docs(attachments): add file-card props description (#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
wzc520pyfm authored Feb 17, 2025
1 parent 3c79fae commit ba911ce
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/attachments/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,16 @@ interface PlaceholderType {
| nativeElement | Get the native node | HTMLElement | - |
| upload | Manually upload a file | (file: File) => void | - |

### Attachments.FileCard Props

| Property | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| prefixCls | The prefix of the style class name | string | - | - |
| className | Style class name | string | - | - |
| style | Style Object | React.CSSProperties | - | - |
| item | Attachment, same as Upload `UploadFile` | Attachment | - | - |
| onRemove | Callback function when attachment is removed | (item: Attachment) => void | - | - |

## Semantic DOM

<code src="./demo/_semantic.tsx" simplify="true"></code>
Expand Down
10 changes: 10 additions & 0 deletions components/attachments/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,16 @@ interface PlaceholderType {
| nativeElement | 获取原生节点 | HTMLElement | - |
| upload | 手工调用上传文件 | (file: File) => void | - |

### Attachments.FileCard Props

| 属性 | 说明 | 类型 | 默认值 | 版本 |
| --------- | ---------------------------- | -------------------------- | ------ | ---- |
| prefixCls | 样式类名的前缀 | string | - | - |
| className | 样式类名 | string | - | - |
| style | 样式对象 | React.CSSProperties | - | - |
| item | 附件,同 Upload `UploadFile` | Attachment | - | - |
| onRemove | 附件移除时的回调函数 | (item: Attachment) => void | - | - |

## Semantic DOM

<code src="./demo/_semantic.tsx" simplify="true"></code>
Expand Down

0 comments on commit ba911ce

Please sign in to comment.