Archived
feat: Add SendSms component for sending SMS verification code
This commit is contained in:
1 parent
4eb712c1d1
commit
d9d9a87860
4 files changed
+423
-409
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<template>
|
||||
<van-button type="primary" @click="triggerCountdown" :disabled="isCounting">
|
||||
发送验证码
|
||||
{{ !isCounting ? '' : `(${countdownTime}s)` }}
|
||||
</van-button>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { useCountdown } from 'utils4u/vue-use';
|
||||
|
||||
const { countdownTime, triggerCountdown, isCounting } = useCountdown(3);
|
||||
</script>
|
||||
Reference in new issue
Block a user