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

How can I get the totalSeconds data in the @progress event? #84

Closed
mrnasil opened this issue Dec 16, 2022 · 1 comment
Closed

How can I get the totalSeconds data in the @progress event? #84

mrnasil opened this issue Dec 16, 2022 · 1 comment

Comments

@mrnasil
Copy link

mrnasil commented Dec 16, 2022

`
<vue-countdown
v-if="counting"
v-slot="{ totalSeconds }"
:time="180000"
@EnD="onCountdownEnd"
@progress="functionName"
>Resend Code ({{ totalSeconds }} sec.)

    const functionName= () => {
    console.log('data')

}

`

@mrnasil
Copy link
Author

mrnasil commented Dec 16, 2022

I added ref="countdown" and get ref data.

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