1.0.0 • Published 5 years ago

scratchcard-for-react v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

react-scratchcard

react component scratchcard

使用方式

<ScratchCard
  width = '750' // 遮罩层宽度
  height='280'  // 遮罩层高度
  radius = {20} // 触点半径
  fadeout = '1000'  // 消失延时
  percent={.5}  // 超过占比完全显示
  onFinish={()=>{ // 完成后的回调
    console.log('完成')
  }}
>你中奖了 
</ScratchCard>

需要显示的元素放入children中。

1.0.0

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago