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

LuckyWheel不支持vw #531

Open
cat-kun opened this issue Jan 15, 2025 · 2 comments
Open

LuckyWheel不支持vw #531

cat-kun opened this issue Jan 15, 2025 · 2 comments

Comments

@cat-kun
Copy link

cat-kun commented Jan 15, 2025

  • 你当前是什么框架(必填):taro
  • 你使用的是哪个包(必填):@lucky-canvas/taro
  • 你当前插件的版本(必填):0.0.14
  • 当前环境是小程序还是浏览器(选填):小程序
  • 详细描述你的bug:LuckyWheel组件 width height不支持vw,会被解析成px
  • 问题代码(重要):
<LuckyWheel
  ref={myLucky}
  width='100vw'
  height='100vw'
  blocks={blocks}
  prizes={prizes}
  buttons={buttons}
  onStart={handleStart}
  onEnd={handleEnd}
/>

已提交PR:#532

@buuing
Copy link
Owner

buuing commented Jan 16, 2025

小程序里为什么要支持vw, vw是浏览器里的单位

@cat-kun
Copy link
Author

cat-kun commented Jan 16, 2025

小程序里为什么要支持vw, vw是浏览器里的单位

总有一些公司内部的特殊需求

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

2 participants