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版本配置app.config.ts tabBar字体选中颜色不生效,以及控制台会打印tabBar数据 #10736

Closed
yangjian84 opened this issue Nov 25, 2021 · 1 comment · Fixed by #10806
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Milestone

Comments

@yangjian84
Copy link

yangjian84 commented Nov 25, 2021

相关平台

H5

浏览器版本: chrome
使用框架: React

复现步骤

  tabBar = {
    list: [
      {
        iconPath: 'img/home-normal@2x.png',
        selectedIconPath: 'img/home-active@2x.png',
        pagePath: 'pages/main/index',
        text: '首页',
      },
      {
        iconPath: 'img/enterprise-normal@2x.png',
        selectedIconPath: 'img/enterprise-active@2x.png',
        pagePath: 'pages/enterpriseService/index',
        text: '企服',
      },
      {
        iconPath: 'img/my-normal@2x.png',
        selectedIconPath: 'img/my-active@2x.png',
        pagePath: 'pages/mine/index',
        text: '我的',
      },
    ],
    color: '#999999',
    selectedColor: '#FFBD00',
    backgroundColor: '#fff',
    borderStyle: 'white',
    homePage: 'pages/main/index',
  }

期望结果

能改变tabBar字体选中颜色

实际结果

WeChat25226ac442edcdd0d9d95655f47ffaad

![image](https://user-images.githubusercontent.com/60739864/143366766-4c912e96-30dd-4f98-8612-ccbf2220dd39.png) tabBar字体选中颜色为绿色,不能改变, 以及控制台会有打印

环境信息

👽 Taro v3.3.15


  Taro CLI 3.3.15 environment info:
    System:
      OS: macOS 12.0.1
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 15.14.0 - ~/.nvm/versions/node/v15.14.0/bin/node
      Yarn: 1.22.11 - ~/.nvm/versions/node/v15.14.0/bin/yarn
      npm: 7.7.6 - ~/.nvm/versions/node/v15.14.0/bin/npm
    npmPackages:
      @tarojs/components: ^3.3.15 => 3.3.15 
      @tarojs/mini-runner: ^3.3.15 => 3.3.15 
      @tarojs/react: ^3.3.15 => 3.3.15 
      @tarojs/runtime: ^3.3.15 => 3.3.15 
      @tarojs/taro: ^3.3.15 => 3.3.15 
      @tarojs/webpack-runner: ^3.3.15 => 3.3.15 
      babel-preset-taro: ^3.3.15 => 3.3.15 
      eslint-config-taro: 3.3.15 => 3.3.15 
      nervjs: ^1.5.7 => 1.5.7 
      react: ^17.0.2 => 17.0.2 
      taro-ui: 3.0.0-alpha.10 => 3.0.0-alpha.10 

@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Nov 25, 2021
@yangjian84 yangjian84 changed the title 3.3.15版本配置app.config.ts tabBar字体选中颜色不生效 3.3.15版本配置app.config.ts tabBar字体选中颜色不生效,以及控制台会打印tabBar数据 Nov 25, 2021
@Ttou
Copy link

Ttou commented Nov 26, 2021

console 忘记去了

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
H5
  
Done
Development

Successfully merging a pull request may close this issue.

3 participants