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

【3.3.15】H5端设置tabBar的selectColor和backgroundColor无效,默认显示为weui的样式 #10758

Closed
Sherlock-Luo opened this issue Nov 28, 2021 · 4 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@Sherlock-Luo
Copy link

相关平台

H5

浏览器版本: Chrome 版本 92.0.4515.159(正式版本) (64 位)
使用框架: React

复现步骤

1.taro init myapp
2.选择默认,我测试了默认模板和taro-hook这两个模板
3.设置tabBar的selectColor和backgroundColor无效

期望结果

selectColor和backgroundColor设置有效

实际结果

无效,默认显示.weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon, .weui-tabbar__item.weui-bar__item_on .weui-tabbar__icon>i, .weui-tabbar__item.weui-bar__item_on .weui-tabbar__label {
color: #09bb07;
}和.weui-tabbar {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
position: absolute;
z-index: 500;
bottom: 0;
width: 100%;
background-color: #f7f7fa;
}

环境信息

 Taro CLI 3.3.15 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.4.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.4 - C:\Users\localhost\AppData\Roaming\npm\yarn.CMD
      npm: 6.14.5 - C:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Nov 28, 2021
@ZakaryCode
Copy link
Contributor

未能复现到该问题,可以提供完整的demo看看🤔

也可以自助排查,3.3.15以下的版本不支持该操作,请检查所有依赖是否升级到 3.3.15+

@Sherlock-Luo
Copy link
Author

@ZakaryCode #10736 我和这条issues一样的

@taro-bot2 taro-bot2 bot removed the to be closed label Nov 29, 2021
@Sherlock-Luo
Copy link
Author

image

@ZakaryCode
Copy link
Contributor

原来是配置哦,以为是API,下一个版本修复咯~

重复 issue 先关了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

3 participants