feat: 优化文件结构、组件、布局

This commit is contained in:
ChenZhaoYu
2023-02-13 11:59:00 +08:00
parent 72df35c929
commit 39f718ef16
15 changed files with 192 additions and 76 deletions

View File

@@ -0,0 +1,20 @@
<script setup lang='ts'>
interface Emit {
(e: 'click'): void
}
const emit = defineEmits<Emit>()
function handleClick() {
emit('click')
}
</script>
<template>
<button
class="flex items-center justify-center w-10 h-10 transition rounded-full hover:bg-neutral-100"
@click="handleClick"
>
<slot />
</button>
</template>