- 调整App.vue和所有通用组件为template→script→style顺序 - 涉及NovaDialog、UserCenter、IconSelect等核心组件 - 统一组件结构,提升代码可读性和维护性 - 符合项目新的Vue组件代码块排布规范
29 lines
476 B
Vue
29 lines
476 B
Vue
<template>
|
|
<n-el
|
|
tag="div"
|
|
class="el p-3 cursor-pointer rounded"
|
|
>
|
|
<n-flex
|
|
align="center"
|
|
:wrap="false"
|
|
class="h-full"
|
|
>
|
|
<slot />
|
|
</n-flex>
|
|
</n-el>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
</script>
|
|
|
|
<style scoped>
|
|
.el {
|
|
color: var(--n-text-color);
|
|
transition: 0.3s var(--cubic-bezier-ease-in-out);
|
|
}
|
|
.el:hover {
|
|
background-color: var(--button-color-2-hover);
|
|
color: var(--n-text-color-hover);
|
|
}
|
|
</style>
|