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

关于i-tab-bar和i-tab-bar-item的问题 #34

Open
WentaoHou opened this issue Jun 15, 2018 · 5 comments
Open

关于i-tab-bar和i-tab-bar-item的问题 #34

WentaoHou opened this issue Jun 15, 2018 · 5 comments

Comments

@WentaoHou
Copy link

请问,使用i-tab-bar和i-tab-bar-item的时候怎么定义每个tab要显示的页面?我看了一下这两个组件,并没有设置tab页面的功能,如果是点击tab的时候用navigateTo方法跳转到指定的页面的话,跳转到页面是没有tabbar,我也想过在每个tab页面上都加个tabbar,但是tabbar会跟页面一起滑动,而且这样的做法太low了,所以很郁闷,不知道设计这两个组件的目的是什么?

@WentaoHou
Copy link
Author

我是在mpvue中使用的iview-weapp

@WentaoHou
Copy link
Author

对此问题,我在原来的i-tab-bar-item组件上做了以下修改:加了一个slot,来显示每个item中的内容,只有在active的时候才显示;

wxml
image

wxss
wx20180619-143735

使用:
wx20180619-144145

@wangliguang
Copy link

wangliguang commented Sep 18, 2018

请教大佬, 怎么讲我的四个page放到1,2,3,4的位置。 将page做成组件感觉不太靠谱

@baobaomax
Copy link

设置tab页面的功能,如果是点击tab的时候用navigateTo方法跳转到指定的页面的话,跳转到页面是没有tabbar,我也想过在每个tab页面上都加个tabbar,但是tabbar会跟页面一起滑动,而且这样的做法太low了, 请问题主,现在这个问题解决了吗,我也是碰到这个问题。。。。。

@ksialis
Copy link

ksialis commented Dec 11, 2018

大佬,你们怎么获取到change之后的key值的?

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

No branches or pull requests

4 participants