-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
taro4 custom-tab-bar无法正常编译 微信小程序编译后dist文件下没有custom-tab-bar #16678
Comments
补充一下 vite编译 |
+1 我也一样遇到了这个问题,我使用的是react。 |
目前先降为3.6使用了,希望官方早日解决一下,还是想用4的vite的 |
我因为页面少,就没有继续用自带的custom-tab了。直接自己重新写个nav component,每个页面手动在最下面导入一下。也就几次的事情。vite还是要用的哈哈。 |
我Taro v3.6.33也没有 |
有同样的问题, taro4 + react + vite |
taro4 + vue3 + vite |
同样的问题 taro4 + react + vite |
+1! |
|
同样的问题, taro4 + react + vite 想着用原生写的custom-tab-bar的内容,手动拷贝到了dist。可是会遇到点击切换tab没实时更新选中的问题,解决方式Taro是在对应tab页面加载时,获取tabbar对象进行setData。 但目前使用Taro.getTabBar方法获取不到tabbar对象,尝试多种方式也无效(包括getCurrentPages,getCurrentInstance等),依旧无法获取到tabbar对象。 |
同样的问题 |
实测, 使用vite会有这个问题, 创建项目的时候使用webpack能正常显示 |
相关平台
微信小程序
复现仓库
https://github.com/sixiTr/tar-4.0.6.git
小程序基础库: 3.6.0
使用框架: Vue 3
复现步骤
vue3
taro4.0.6
app.config.ts 中的tabBar设置custom:true
src下新建custom-tab-bar 编译后dist目录下没有custom-tab-bar
期望结果
dist下正常编译出custom-tab-bar
实际结果
dist下没有编译出custom-tab-bar
环境信息
The text was updated successfully, but these errors were encountered: