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

大转盘设置奖品图片,不支持设置图片borderRadius,大佬能否支持 #509

Open
guawazi233 opened this issue Sep 9, 2024 · 0 comments

Comments

@guawazi233
Copy link

  • 你当前是什么框架(必填):react
  • 你使用的是哪个包(必填):
  • 你当前插件的版本(必填):0.1.13
  • 当前环境是小程序还是浏览器(选填):浏览
  • 详细描述你的bug:大转盘设置奖品图片,不支持设置图片borderRadius
<div id="my-lucky"></div>

<script>
  const prizeImg = {
    src: '/static/imgs/prize.png',
    width: '40%',
    top: '10%',
    borderRadius: '20%',
    
  }
  const myLucky = new LuckyCanvas.LuckyWheel('#my-lucky', {
    width: '200px',
    height: '200px',
    blocks: [{ padding: '10px', background: '#869cfa' }],
    prizes: [
      { background: '#e9e8fe', imgs: [prizeImg] },
      { background: '#b8c5f2', imgs: [prizeImg] },
      { background: '#e9e8fe', imgs: [prizeImg] },
      { background: '#b8c5f2', imgs: [prizeImg] },
      { background: '#e9e8fe', imgs: [prizeImg] },
      { background: '#b8c5f2', imgs: [prizeImg] },
    ]
  })
</script>

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

1 participant