refactor: 顶部导航栏设置项优化

Former-commit-id: 29a3025d9436a7dbc3a95b836c179b3dd8756ceb
This commit is contained in:
haoxr
2023-02-06 01:08:11 +08:00
parent 7d26f4adbc
commit 704775c7d1
3 changed files with 4 additions and 14 deletions

View File

@@ -18,14 +18,8 @@ function handleLanguageChange(lang: string) {
</script>
<template>
<el-dropdown
class="lang-select"
trigger="click"
@command="handleLanguageChange"
>
<div
class="cursor-pointer text-[#5a5e66] h-[50px] leading-[50px] text-center px-2.5 hover:bg-gray-50 dark:hover:bg-[var(--el-fill-color-light)]"
>
<el-dropdown trigger="click" @command="handleLanguageChange">
<div>
<svg-icon icon-class="language" />
</div>
<template #dropdown>

View File

@@ -1,7 +1,5 @@
<template>
<div
class="cursor-pointer h-[50px] leading-[50px] text-center text-[#5a5e66] px-2.5 hover:bg-gray-50 dark:hover:bg-[var(--el-fill-color-light)]"
>
<div>
<svg-icon
:icon-class="isFullscreen ? 'exit-fullscreen' : 'fullscreen'"
@click="toggle"

View File

@@ -17,9 +17,7 @@ function handleSizeChange(size: string) {
<template>
<el-dropdown trigger="click" @command="handleSizeChange">
<div
class="cursor-pointer h-[50px] leading-[50px] text-center text-[#5a5e66] px-2.5 hover:bg-gray-50 dark:hover:bg-[var(--el-fill-color-light)]"
>
<div>
<svg-icon icon-class="size" />
</div>
<template #dropdown>