mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-21 10:17:34 +00:00
docs: update documentation of attachment form schema (#217)
更新 Form Schema 文档中 Attachment 类型的参数。 Ref https://github.com/halo-dev/halo/pull/3827 /kind documentation ```release-note None ```
This commit is contained in:
@@ -120,12 +120,20 @@ UI 效果:
|
||||
|
||||
附件类型的输入框,支持直接调用附件库弹框选择附件。
|
||||
|
||||
#### 参数
|
||||
|
||||
- `accepts`:文件类型,数据类型为 `string[]`。
|
||||
|
||||
#### 示例
|
||||
|
||||
```yaml
|
||||
- $formkit: attachment
|
||||
name: logo
|
||||
label: Logo
|
||||
accepts:
|
||||
- "image/png"
|
||||
- "video/mp4"
|
||||
- "audio/*"
|
||||
value: ""
|
||||
```
|
||||
|
||||
|
@@ -120,12 +120,20 @@ UI 效果:
|
||||
|
||||
附件类型的输入框,支持直接调用附件库弹框选择附件。
|
||||
|
||||
#### 参数
|
||||
|
||||
- `accepts`:文件类型,数据类型为 `string[]`。
|
||||
|
||||
#### 示例
|
||||
|
||||
```yaml
|
||||
- $formkit: attachment
|
||||
name: logo
|
||||
label: Logo
|
||||
accepts:
|
||||
- "image/png"
|
||||
- "video/mp4"
|
||||
- "audio/*"
|
||||
value: ""
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user