refactor: ♻️ unocss 自定义样式名修改

This commit is contained in:
郝先瑞 2024-02-22 18:20:19 +08:00
parent d30fb87d30
commit 11645b5df1
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
<template> <template>
<div class="login-container"> <div class="login-container">
<!-- 顶部 --> <!-- 顶部 -->
<div class="absolute-tl flex-x-end p-3 w-full"> <div class="absolute-lt flex-x-end p-3 w-full">
<el-switch <el-switch
v-model="isDark" v-model="isDark"
inline-prompt inline-prompt
@ -17,7 +17,7 @@
<el-card class="!border-none !bg-transparent !rounded-4% w-100 <sm:w-85"> <el-card class="!border-none !bg-transparent !rounded-4% w-100 <sm:w-85">
<div class="text-center relative"> <div class="text-center relative">
<h2>{{ defaultSettings.title }}</h2> <h2>{{ defaultSettings.title }}</h2>
<el-tag class="ml-2 absolute-tr">{{ defaultSettings.version }}</el-tag> <el-tag class="ml-2 absolute-rt">{{ defaultSettings.version }}</el-tag>
</div> </div>
<el-form <el-form

View File

@ -18,9 +18,9 @@ export default defineConfig({
"wh-full": "w-full h-full", "wh-full": "w-full h-full",
"flex-x-between": "flex items-center justify-between", "flex-x-between": "flex items-center justify-between",
"flex-x-end": "flex items-center justify-end", "flex-x-end": "flex items-center justify-end",
"absolute-tl": "absolute top-0 left-0", "absolute-lt": "absolute left-0 top-0",
"absolute-tr": "absolute top-0 right-0", "absolute-rt": "absolute right-0 top-0 ",
"fixed-tl": "fixed top-0 left-0", "fixed-lt": "fixed left-0 top-0",
}, },
theme: { theme: {
colors: { colors: {