docs: mapping 的 placeholder 例子补充

This commit is contained in:
吴多益 2021-11-15 13:25:13 +08:00 committed by GitHub
parent 9376bf0300
commit 5b4ec444dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,6 +239,26 @@ List 的内容、Card 卡片的内容配置同上
}
```
## 占位文本
通过 `placeholder` 可以控制数据不存在时的展现
```schema
{
"type": "page",
"body": {
"type": "mapping",
"placeholder": "数据不存在",
"map": {
"1": "第一",
"2": "第二",
"3": "第三",
"*": "其他"
}
}
}
```
## 属性表
| 属性名 | 类型 | 默认值 | 说明 |