Skip to content

Commit

Permalink
fix: 完善tabbar说明文档
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenyulei committed Sep 25, 2020
1 parent 533620d commit 58c7af5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/packages/tabbar/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ export default {
};
```

**重要提示**

组件中的 curr 属性相当于默认的选中tab,如果tabbar组件被应用于跳转路由,若tabbar没有按照预想的选中高亮的话,请注意,一般是因为重新渲染了tabbar组件导致的,解决方法如下:
- 方法1、通过监听切换事件 @tab-switch 改变传入数据 tabList 中想要高亮对象的 curr 值为 true;
- 方法2、把 tabbar 组件放在路由层级之外,令其独立出来,避免点击 tabbar 会重新渲染该组件;



### Prop
Expand Down

0 comments on commit 58c7af5

Please sign in to comment.