docs: text 文档完善

This commit is contained in:
吴多益 2021-03-19 09:40:59 +08:00 committed by GitHub
parent e361b49e08
commit 51e000c008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`即可支持选择器模式。