Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabbar组件里面关于selected选项 #1881

Closed
algesthesiah opened this issue Aug 25, 2017 · 6 comments
Closed

tabbar组件里面关于selected选项 #1881

algesthesiah opened this issue Aug 25, 2017 · 6 comments

Comments

@algesthesiah
Copy link

是否选中当前项,你也可以使用v-model来指定选中的tabbar-item的index 可以给个示例么?非常感谢你 现在很懵逼

@algesthesiah
Copy link
Author

我想取这个index

@algesthesiah
Copy link
Author

或者怎么用的都可以

@airyland
Copy link
Owner

<tabbar v-model="index"></tabbar>
data () {
  return {
    index: 0
  }
}

@haohetao
Copy link

不看这个例子还真想不明白怎么写的

@jerryachel
Copy link

同意提问者的说法,文档确实有些地方实在是太含糊了...

@lufeing
Copy link

lufeing commented Aug 17, 2018

丢,害我想半天把v-model放tabbar-item下要怎么操作。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants