perf: 根据tailwindcss推荐优化类名

This commit is contained in:
xiaoxian521
2025-12-08 15:44:00 +08:00
parent aeb4feb6f9
commit d794c7965c
12 changed files with 128 additions and 16 deletions

View File

@@ -70,16 +70,16 @@ getMine().then(res => {
<el-container class="h-full">
<el-aside
v-if="isOpen"
class="pure-account-settings overflow-hidden px-2 dark:bg-(--el-bg-color)! border-r-[1px] border-[var(--pure-border-color)]"
class="pure-account-settings overflow-hidden px-2 dark:bg-(--el-bg-color)! border-r-[1px] border-(--pure-border-color)"
:width="deviceDetection() ? '180px' : '240px'"
>
<el-menu :default-active="witchPane" class="pure-account-settings-menu">
<div
class="h-[50px]! text-[var(--pure-theme-menu-text)] cursor-pointer text-sm transition-all duration-300 ease-in-out hover:scale-105 will-change-transform transform-gpu origin-center hover:text-base! hover:text-[var(--pure-theme-menu-title-hover)]!"
class="h-[50px]! text-(--pure-theme-menu-text) cursor-pointer text-sm transition-all duration-300 ease-in-out hover:scale-105 will-change-transform transform-gpu origin-center hover:text-base! hover:text-(--pure-theme-menu-title-hover)!"
@click="router.go(-1)"
>
<div
class="h-full flex items-center px-[var(--el-menu-base-level-padding)]"
class="h-full flex items-center px-(--el-menu-base-level-padding)"
>
<IconifyIconOffline :icon="leftLine" />
<span class="ml-2">返回</span>