feat: update ESLint configuration and package dependencies, add Ant Design Vue
This commit is contained in:
@ -1,13 +1,3 @@
|
||||
<template>
|
||||
<Button
|
||||
:label="`发送验证码${isCounting ? `(${countdownTime}s)` : ''}`"
|
||||
variant="link"
|
||||
@click="sendSms"
|
||||
:loading="isSending"
|
||||
:disabled="isSending || isCounting"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
const { remaining: countdownTime, start: startCountdown, isActive: isCounting } = useCountdown($__DEV__ ? 3 : 60);
|
||||
|
||||
@ -24,3 +14,9 @@ const sendSms = async () => {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<AButton ghost type="primary" @click="sendSms" :loading="isSending" :disabled="isSending || isCounting">
|
||||
发送验证码{{ isCounting ? `(${countdownTime}s)` : '' }}
|
||||
</AButton>
|
||||
</template>
|
||||
|
Reference in New Issue
Block a user