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

taro-ui 微信小程序编译tabbar不显示,h5没问题 #4167

Closed
guggit opened this issue Aug 14, 2019 · 9 comments
Closed

taro-ui 微信小程序编译tabbar不显示,h5没问题 #4167

guggit opened this issue Aug 14, 2019 · 9 comments

Comments

@guggit
Copy link

guggit commented Aug 14, 2019

问题描述
如题,查出原因是编译后的wxml变量不正确导致的,下面贴截图
复现步骤
使用官方写法直接不显示,应该是编译问题

<AtTabBar
  tabList={[
    { title: '待办事项', iconType: 'bullet-list', text: 'new' },
    { title: '拍照', iconType: 'camera' },
    { title: '文件夹', iconType: 'folder', text: '100', max: '99' }
  ]}
  onClick={this.handleClick.bind(this)}
  current={this.state.current}
/>
![63001462-413ee400-bea6-11e9-851e-d8b3cc4e1a54](https://user-images.githubusercontent.com/34000909/63001627-93800500-bea6-11e9-8ca5-ffa7a4bf7262.png)
![63001435-3421f500-bea6-11e9-9cec-1301435d41a7](https://user-images.githubusercontent.com/34000909/63001634-97ac2280-bea6-11e9-86f3-f5dd2669289c.png)

**期望行为**
正确显示

**系统信息**
> Taro v1.2 及以上版本已添加 `taro info` 命令,方便大家查看系统及依赖信息,运行该命令后将结果贴下面即可。

 - 操作系统: [Windows 10]
 - Taro 版本 [1.3.13]
 - Node.js 版本 [10.14.1]
 - 报错平台 [weapp]
@taro-bot
Copy link

taro-bot bot commented Aug 14, 2019

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@guggit
Copy link
Author

guggit commented Aug 14, 2019

image

@guggit
Copy link
Author

guggit commented Aug 14, 2019

image

@luckyadam
Copy link
Member

cli 和项目中 taro 相关依赖的版本是一致的么

@guggit
Copy link
Author

guggit commented Aug 15, 2019

cli 和项目中 taro 相关依赖的版本是一致的么

感谢 昨天已经发现是全局cli没更新导致的

@guggit
Copy link
Author

guggit commented Aug 15, 2019

cli 和项目中 taro 相关依赖的版本是一致的么

另一个环境还是这样,问题好像还是没解决,cli是1.3.13的

@guggit
Copy link
Author

guggit commented Aug 20, 2019

cli 和项目中 taro 相关依赖的版本是一致的么

老李,和电脑系统有关系吗,有问题的是server 2012r2,win10没问题 cli均装的1.3.13

@guggit
Copy link
Author

guggit commented Aug 20, 2019

@luckyadam 关掉吧,无效bug

@sunvictor
Copy link

请问您这个问题解决了么

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