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

luckycard 组件如何监听ratio刮开比 触发的事件 #365

Closed
xxGw1997 opened this issue Dec 25, 2020 · 2 comments
Closed

luckycard 组件如何监听ratio刮开比 触发的事件 #365

xxGw1997 opened this issue Dec 25, 2020 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@xxGw1997
Copy link

在使用luckycard的时候,想要在用户刮开70%的时候,就执行回调,让刮刮卡是全部刮开状态。但是现在该如何监听ratio的刮开比并且触发 完全刮开刮刮卡的事件

@xxGw1997 xxGw1997 added the question Further information is requested label Dec 25, 2020
@richard1015
Copy link
Contributor

richard1015 commented Jan 6, 2021

感谢您的反馈, 辛苦@guoxiao158跟进一下

@guoxiao158
Copy link
Contributor

请这样使用
open 为回调函数,ratio为刮开系数。(目前版本支持)
下个版本回优化,当触发回调函数时,自动清空组件的蒙层,展示全部信息

<nut-luckycard
content="1000万"
@OPEN="opencard"
ratio="0.2"
>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants