From 0baefb97ab3c1c2caca3257a28dd16def8d5a15b Mon Sep 17 00:00:00 2001 From: RickCole21 Date: Thu, 6 Aug 2020 16:08:59 +0800 Subject: [PATCH] add doc --- docs/components/form/formitem.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docs/components/form/formitem.md b/docs/components/form/formitem.md index aab3f6b8c..b4f1649fc 100755 --- a/docs/components/form/formitem.md +++ b/docs/components/form/formitem.md @@ -137,6 +137,30 @@ order: 1 } ``` +### 表单项标签提示 + +配置`labelRemark`可以实现标签描述提示 + +```schema:height="350" scope="body" +{ + "type": "form", + "mode": "horizontal", + "controls": [ + { + "type": "text", + "label": "无标签提示", + "name": "text1" + }, + { + "type": "text", + "label": "有标签提示", + "labelRemark": "这是一段提示", + "name": "text2" + } + ] +} +``` + ### 配置禁用 ##### 静态配置 @@ -585,6 +609,7 @@ amis 会有默认的报错信息,如果你想自定义校验信息,配置`va | labelClassName | `string` | | label 的类名 | | name | `string` | | 字段名,指定该表单项提交时的 key | | label | [模板](../../concepts/template) 或 `false` | | 表单项标签 | +| labelRemark | [Remark](../../components/remark) | | 表单项标签描述 | | description | [模板](../../concepts/template) | | 表单项描述 | | placeholder | `string` | | 表单项描述 | | inline | `boolean` | | 是否为 内联 模式 |