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:
Ryan Wang
2023-05-26 22:50:13 +08:00
committed by GitHub
parent e7cce8f366
commit 11b2ac3b3e
2 changed files with 16 additions and 0 deletions

View File

@@ -120,12 +120,20 @@ UI 效果:
附件类型的输入框,支持直接调用附件库弹框选择附件。
#### 参数
- `accepts`:文件类型,数据类型为 `string[]`。
#### 示例
```yaml
- $formkit: attachment
name: logo
label: Logo
accepts:
- "image/png"
- "video/mp4"
- "audio/*"
value: ""
```

View File

@@ -120,12 +120,20 @@ UI 效果:
附件类型的输入框,支持直接调用附件库弹框选择附件。
#### 参数
- `accepts`:文件类型,数据类型为 `string[]`。
#### 示例
```yaml
- $formkit: attachment
name: logo
label: Logo
accepts:
- "image/png"
- "video/mp4"
- "audio/*"
value: ""
```