code refactor

This commit is contained in:
MaysWind
2025-01-11 13:59:47 +08:00
parent 61f26e060e
commit 89b233e51b
25 changed files with 128 additions and 128 deletions
+4 -4
View File
@@ -19,7 +19,7 @@
</template>
<script setup lang="ts">
import { type Ref, ref, computed, watch, useTemplateRef } from 'vue';
import { ref, computed, watch, useTemplateRef } from 'vue';
interface PinCode {
value: string;
@@ -38,11 +38,11 @@ const props = defineProps<{
}>();
const emit = defineEmits<{
(e: 'update:modelValue', value: string): void
(e: 'pincode:confirm', value: string): void
(e: 'update:modelValue', value: string): void;
(e: 'pincode:confirm', value: string): void;
}>();
const codes: Ref<PinCode[]> = ref([]);
const codes = ref<PinCode[]>([]);
const pinCodeInputs = useTemplateRef<HTMLInputElement[]>('pin-code-input');
const finalPinCode = computed<string>(() => {