refactor: refactor AuthLayout to configure the login page more freely (#4294)

This commit is contained in:
Vben
2024-08-31 21:38:24 +08:00
committed by GitHub
parent a7d322019e
commit 8404c12129
31 changed files with 314 additions and 115 deletions

View File

@@ -1,4 +1,6 @@
<script setup lang="ts">
import type { ToolbarType } from './types';
import { computed } from 'vue';
import {
@@ -9,7 +11,7 @@ import {
} from '../widgets';
interface Props {
toolbarList?: ('color' | 'language' | 'layout' | 'theme')[];
toolbarList?: ToolbarType[];
}
defineOptions({
@@ -29,8 +31,7 @@ const showTheme = computed(() => props.toolbarList.includes('theme'));
<template>
<div
:class="{
'bg-background dark:bg-accent rounded-3xl px-3 py-1':
toolbarList.length > 1,
'bg-accent z-10 rounded-3xl px-3 py-1': toolbarList.length > 1,
}"
class="flex-center absolute right-2 top-4"
>