This commit is contained in:
cookfront
2017-03-30 14:33:41 +08:00
parent a11ccb635b
commit 3017419c8e
4 changed files with 45 additions and 12 deletions

View File

@@ -141,6 +141,8 @@ export default {
### click事件
可以在`zan-tabs`上绑定一个`click`事件,事件处理函数有一个参数,参数为对应`tab``tabs`中的索引。
:::demo click事件
```html
<zan-tabs @click="handleTabClick">
@@ -173,6 +175,7 @@ export default {
### zan-tab API
| 参数 | 说明 | 类型 | 默认值 | 可选 |
|-----------|-----------|-----------|-------------|-------------|
| title | tab的标题 | `string` | | |