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

[已找到临时解决方案] DatetimePicker在Popup里不渲染 #425

Closed
1 task done
bingtsingw opened this issue Nov 30, 2022 · 6 comments
Closed
1 task done

[已找到临时解决方案] DatetimePicker在Popup里不渲染 #425

bingtsingw opened this issue Nov 30, 2022 · 6 comments

Comments

@bingtsingw
Copy link

这个 Issue 涉及以下平台:

  • 微信小程序

BUG 描述
<Popup><DatetimePicker /></Popup>时, 里面的内容没有渲染, 我看了下源码, 把picker-column里的CustomWrapper注释掉就可以渲染了,
但是我在vantui的demo里没有复现, 只在我自己的项目里出现这个bug, 很奇怪

截图
image
只在<Popup>里不渲染

@zuolung
Copy link
Contributor

zuolung commented Dec 1, 2022

麻烦提供下taro版本

@bingtsingw
Copy link
Author

麻烦提供下taro版本

3.5.7和3.5.8都不行

@bingtsingw
Copy link
Author

d45ebbd
我看到这个commit里面有一段改动
image
改回去好像就可以

{process.env.TARO_ENV === 'weapp' ? (
  <CustomWrapper>{renderColumn}</CustomWrapper>
) : (
  <View>{renderColumn}</View>
)}

不知道当时这段改动的用意是什么, 能不能改回去

@bingtsingw
Copy link
Author

好像是taro编译的时候, custom-wrapper组件没有编译进去, 找到临时的解决方案了

NervJS/taro#12239 (comment)

@bingtsingw bingtsingw changed the title DatetimePicker在Popup里不渲染 [已找到临时解决方案] DatetimePicker在Popup里不渲染 Dec 1, 2022
@wenlittleoil
Copy link

我也遇到了该问题,你们解决了吗,如果要在项目里面通过修改包源码来解决,那将是极其糟糕的方式,宁可弃用,也不留坑给后续维护者

@zuolung
Copy link
Contributor

zuolung commented Aug 15, 2023

3.1.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants