修复文档错误

This commit is contained in:
liaoxuezhi 2019-05-10 12:13:30 +08:00
parent 00146d8c8f
commit 11f216bfff
4 changed files with 36 additions and 5 deletions

View File

@ -4,8 +4,8 @@
```schema:height="800" scope="body"
{
"type": "Action.md",
"api": "/api/mock2/Action.md/users",
"type": "crud",
"api": "/api/mock2/crud/users",
"syncLocation": false,
"mode": "cards",
"defaultParams": {

View File

@ -4,8 +4,8 @@
```schema:height="800" scope="body"
{
"type": "Action.md",
"api": "/api/mock2/Action.md/permissions",
"type": "crud",
"api": "/api/mock2/crud/permissions",
"mode": "list",
"placeholder": "当前组内, 还没有配置任何权限.",
"syncLocation": false,

View File

@ -6,7 +6,7 @@
```schema:height="800" scope="body"
{
"type": "Action.md",
"type": "crud",
"api": "/api/sample",
"syncLocation": false,
"title": null,

31
docs/renderers/Tabs.md Normal file
View File

@ -0,0 +1,31 @@
## Tabs
| 属性名 | 类型 | 默认值 | 说明 |
| ----------------- | ----------------------- | ----------------------------------- | -------------------------------------------------------- |
| type | `string` | `"tabs"` | 指定为 Tabs 渲染器 |
| className | `string` | | 外层 Dom 的类名 |
| tabsClassName | `string` | | Tabs Dom 的类名 |
| tabs | `Array` | | tabs 内容 |
| tabs[x].title | `string` | | Tab 标题 |
| tabs[x].icon | `icon` | | Tab 的图标 |
| tabs[x].tab | [Container](#container) | | 内容区 |
| tabs[x].hash | `string` | | 设置以后将跟 url 的 hash 对应 |
| tabs[x].reload | `boolean` | | 设置以后内容每次都会重新渲染,对于 crud 的重新拉取很有用 |
| tabs[x].className | `string` | `"bg-white b-l b-r b-b wrapper-md"` | Tab 区域样式 |
```schema:height="300" scope="body"
{
"type": "tabs",
"tabs": [
{
"title": "Tab 1",
"tab": "Content 1"
},
{
"title": "Tab 2",
"tab": "Content 2"
}
]
}
```