mirror of
https://github.com/halo-dev/docs.git
synced 2025-10-22 10:58:56 +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
|
```yaml
|
||||||
- $formkit: attachment
|
- $formkit: attachment
|
||||||
name: logo
|
name: logo
|
||||||
label: Logo
|
label: Logo
|
||||||
|
accepts:
|
||||||
|
- "image/png"
|
||||||
|
- "video/mp4"
|
||||||
|
- "audio/*"
|
||||||
value: ""
|
value: ""
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@@ -120,12 +120,20 @@ UI 效果:
|
|||||||
|
|
||||||
附件类型的输入框,支持直接调用附件库弹框选择附件。
|
附件类型的输入框,支持直接调用附件库弹框选择附件。
|
||||||
|
|
||||||
|
#### 参数
|
||||||
|
|
||||||
|
- `accepts`:文件类型,数据类型为 `string[]`。
|
||||||
|
|
||||||
#### 示例
|
#### 示例
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- $formkit: attachment
|
- $formkit: attachment
|
||||||
name: logo
|
name: logo
|
||||||
label: Logo
|
label: Logo
|
||||||
|
accepts:
|
||||||
|
- "image/png"
|
||||||
|
- "video/mp4"
|
||||||
|
- "audio/*"
|
||||||
value: ""
|
value: ""
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user