UI细节调整

This commit is contained in:
kron
2025-06-25 00:09:53 +08:00
parent 6e25124a27
commit 0e73648d6c
14 changed files with 138 additions and 105 deletions

View File

@@ -5,10 +5,6 @@ const props = defineProps({
type: Boolean,
default: false,
},
onFinish: {
type: Function,
default: () => {},
},
});
const count = ref(4);
@@ -20,7 +16,6 @@ watch(
if (timer.value) clearInterval(timer.value);
timer.value = setInterval(() => {
if (count.value <= 1) {
props.onFinish();
clearInterval(timer.value);
}
count.value -= 1;
@@ -46,8 +41,8 @@ onUnmounted(() => {
<style scoped>
.container {
position: fixed;
top: 120px;
position: absolute;
top: calc(50% - 50px);
left: calc(50% - 30px);
}
.number {