mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
[new feature] Tab support vue-router (#305)
* fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router
This commit is contained in:
@@ -14,10 +14,13 @@
|
||||
|
||||
<script>
|
||||
import Icon from '../icon';
|
||||
import RouterLink from '../mixins/router-link';
|
||||
|
||||
export default {
|
||||
name: 'van-tabbar-item',
|
||||
|
||||
mixins: [RouterLink],
|
||||
|
||||
components: {
|
||||
[Icon.name]: Icon
|
||||
},
|
||||
@@ -45,6 +48,7 @@ export default {
|
||||
methods: {
|
||||
onClick() {
|
||||
this.$parent.onChange(this.$parent.items.indexOf(this));
|
||||
this.routerLink();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Reference in New Issue
Block a user