From 11b2ac3b3ead355696c66ea2b76e27dceaeab16e Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Fri, 26 May 2023 22:50:13 +0800 Subject: [PATCH] docs: update documentation of attachment form schema (#217) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新 Form Schema 文档中 Attachment 类型的参数。 Ref https://github.com/halo-dev/halo/pull/3827 /kind documentation ```release-note None ``` --- docs/developer-guide/form-schema.md | 8 ++++++++ versioned_docs/version-2.5/developer-guide/form-schema.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/docs/developer-guide/form-schema.md b/docs/developer-guide/form-schema.md index 061798b..110eb55 100644 --- a/docs/developer-guide/form-schema.md +++ b/docs/developer-guide/form-schema.md @@ -120,12 +120,20 @@ UI 效果: 附件类型的输入框,支持直接调用附件库弹框选择附件。 +#### 参数 + +- `accepts`:文件类型,数据类型为 `string[]`。 + #### 示例 ```yaml - $formkit: attachment name: logo label: Logo + accepts: + - "image/png" + - "video/mp4" + - "audio/*" value: "" ``` diff --git a/versioned_docs/version-2.5/developer-guide/form-schema.md b/versioned_docs/version-2.5/developer-guide/form-schema.md index 061798b..110eb55 100644 --- a/versioned_docs/version-2.5/developer-guide/form-schema.md +++ b/versioned_docs/version-2.5/developer-guide/form-schema.md @@ -120,12 +120,20 @@ UI 效果: 附件类型的输入框,支持直接调用附件库弹框选择附件。 +#### 参数 + +- `accepts`:文件类型,数据类型为 `string[]`。 + #### 示例 ```yaml - $formkit: attachment name: logo label: Logo + accepts: + - "image/png" + - "video/mp4" + - "audio/*" value: "" ```