From 51e000c008ab472b62f7a4e4d29c78a12c23c2db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=A4=9A=E7=9B=8A?= Date: Fri, 19 Mar 2021 09:40:59 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20text=20=E6=96=87=E6=A1=A3=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh-CN/components/form/text.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/docs/zh-CN/components/form/text.md b/docs/zh-CN/components/form/text.md index 8cecbb1a3..f24547151 100755 --- a/docs/zh-CN/components/form/text.md +++ b/docs/zh-CN/components/form/text.md @@ -89,6 +89,25 @@ order: 56 } ``` +## 可清除 + +通过 `"clearable": true` 可以设置文本可清除 + +```schema: scope="body" +{ + "type": "form", + "api": "https://3xsw4ap8wah59.cfc-execute.bj.baidubce.com/api/amis-mock/mock2/form/saveForm", + "controls": [ + { + "name": "text", + "type": "text", + "label": "text", + "clearable: true + } + ] +} +``` + ## 选择器模式 配置`options`即可支持选择器模式。