-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
NavBar的fixed设置为true,直接把下面的内容挡住了 #2887
Comments
fixed之后,是需要开发者自己给页面设定 |
这个应该没有问题吧…… |
岂不是要动态获取导航栏的高度,然后才能设定合适的padding。 |
colorui的nav对应的是Tab,不是NavBar哈 |
vant weapp可以给fixed状态的nav bar填充一个占位块,占住顶部的位置。 |
@zszjszlk2 你是怎么把它顶上最上面的,我通过custom-class设置padding-top 无效 |
在他下面加多一个view来顶开,话说导航栏高度是怎么计算的,vant这里封装的不好啊,对面colorui的随拿随用。 |
可能的问题是在这里
这是官方说明: created | Function | 否 | 组件生命周期函数-在组件实例刚刚被创建时执行,注意此时不能调用 setData ) |
vant weapp内部的 |
* feat(NavBar): add new prop fill fix #2887 * refactor(NavBar): rename fill to placeholder
作为导航栏应该能有吸顶效果吧?能否增加?
The text was updated successfully, but these errors were encountered: