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

h5 不支持 CoverView、CoverImage #8504

Closed
yjgeek opened this issue Jan 12, 2021 · 1 comment
Closed

h5 不支持 CoverView、CoverImage #8504

yjgeek opened this issue Jan 12, 2021 · 1 comment
Assignees
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@yjgeek
Copy link

yjgeek commented Jan 12, 2021

相关平台

H5

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

复现步骤

期望结果

降级处理

实际结果

H5 暂不支持 CoverView 组件!

环境信息

👽 Taro v3.0.16


  Taro CLI 3.0.16 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 13.3.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.5 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
      npm: 6.13.1 - C:\Program Files\nodejs\npm.CMD

补充信息

我看到这里有说已加上降级:#2129
但是我用的版本还是有这个问题

@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Jan 12, 2021
@yjgeek
Copy link
Author

yjgeek commented Jan 13, 2021

目前我的解决方案是:
`
const CView = process.env.TARO_ENV === 'h5' ? View : CoverView

const CImage = process.env.TARO_ENV === 'h5' ? Image : CoverImage
`

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

2 participants