feat: update ESLint configuration and package dependencies, add Ant Design Vue

This commit is contained in:
严浩
2025-02-27 12:28:58 +08:00
parent 8aef352614
commit 1f2911c096
17 changed files with 320 additions and 126 deletions

View File

@@ -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>