[Doc] props title

This commit is contained in:
陈嘉涵
2019-05-03 09:37:24 +08:00
parent 921f8a88fb
commit e3cb465dc2
101 changed files with 279 additions and 283 deletions
+4 -4
View File
@@ -63,7 +63,7 @@ export default {
}
```
### Tabbar API
### Tabbar Props
| Attribute | Description | Type | Default |
|------|------|------|------|
@@ -73,13 +73,13 @@ export default {
| active-color | Color of active tab item | `String` | `#1989fa` |
| safe-area-inset-bottom | Whether to enable bottom safe area adaptation, to enable those features use `viewport-fit=cover` in the `viewport` meta tag | `Boolean` | `false` |
### Tabbar Event
### Tabbar Events
| Event | Description | Arguments |
|------|------|------|
| change | Triggered when change active tab | active: index of current tab |
### TabbarItem API
### TabbarItem Props
| Attribute | Description | Type | Default |
|------|------|------|------|
@@ -90,7 +90,7 @@ export default {
| to | Target route of the link, same as to of `vue-router` | `String | Object` | - |
| replace | If true, the navigation will not leave a history record | `Boolean` | `false` |
### TabbarItem Slot
### TabbarItem Slots
| Name | Description | slot-scope |
|------|------|------|
+4 -4
View File
@@ -78,7 +78,7 @@ export default {
</van-tabbar>
```
### Tabbar API
### Tabbar Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
@@ -88,13 +88,13 @@ export default {
| active-color | 选中标签的颜色 | `String` | `#1989fa` | 1.5.1 |
| safe-area-inset-bottom | 是否开启 iPhone X 底部安全区适配,需要在 `viewport` meta 标签中设置 `viewport-fit=cover` | `Boolean` | `false` | 1.6.15 |
### Tabbar Event
### Tabbar Events
| 事件名 | 说明 | 回调参数 |
|------|------|------|
| change | 切换标签时触发 | active: 当前选中标签 |
### TabbarItem API
### TabbarItem Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|------|------|------|------|------|
@@ -105,7 +105,7 @@ export default {
| to | 路由跳转对象,同 `vue-router` 的 to | `String | Object` | - | - |
| replace | 跳转时是否替换当前页面历史 | `Boolean` | `false` | - |
### TabbarItem Slot
### TabbarItem Slots
| 名称 | 说明 | slot-scope |
|------|------|------|