mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-08 01:17:23 +08:00
chore: update
This commit is contained in:
parent
cb9692b207
commit
2b132455d2
@ -26,8 +26,8 @@ const list = ref([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
function onClick(item) {
|
function onClick(item) {
|
||||||
console.log(item.title);
|
console.log("onClick", item.title);
|
||||||
message("仅提供示例,请根据具体业务自行实现", { type: "success" });
|
message("请根据具体业务自行实现", { type: "success" });
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ const list = ref([
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
function onChange(val, item) {
|
function onChange(val, item) {
|
||||||
|
console.log("onChange", val);
|
||||||
message(`${item.title}设置成功`, { type: "success" });
|
message(`${item.title}设置成功`, { type: "success" });
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
|
||||||
import { getMine } from "@/api/user";
|
import { getMine } from "@/api/user";
|
||||||
import { useRouter } from "vue-router";
|
import { useRouter } from "vue-router";
|
||||||
|
import { ref, onBeforeMount } from "vue";
|
||||||
|
import { useGlobal } from "@pureadmin/utils";
|
||||||
import { ReText } from "@/components/ReText";
|
import { ReText } from "@/components/ReText";
|
||||||
import Profile from "./components/profile.vue";
|
import Profile from "./components/profile.vue";
|
||||||
import Preferences from "./components/preferences.vue";
|
import Preferences from "./components/preferences.vue";
|
||||||
import SecurityLog from "./components/securityLog.vue";
|
import SecurityLog from "./components/securityLog.vue";
|
||||||
import AccountManagement from "./components/accountManagement.vue";
|
import AccountManagement from "./components/accountManagement.vue";
|
||||||
|
import { useDataThemeChange } from "@/layout/hooks/useDataThemeChange";
|
||||||
|
|
||||||
import leftLine from "@iconify-icons/ri/arrow-left-s-line";
|
import leftLine from "@iconify-icons/ri/arrow-left-s-line";
|
||||||
import ProfileIcon from "@iconify-icons/ri/user-3-line";
|
import ProfileIcon from "@iconify-icons/ri/user-3-line";
|
||||||
@ -19,6 +21,10 @@ defineOptions({
|
|||||||
});
|
});
|
||||||
|
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
const { $storage } = useGlobal<GlobalPropertiesApi>();
|
||||||
|
onBeforeMount(() => {
|
||||||
|
useDataThemeChange().dataThemeChange($storage.layout?.overallStyle);
|
||||||
|
});
|
||||||
|
|
||||||
const userInfo = ref({
|
const userInfo = ref({
|
||||||
avatar: "",
|
avatar: "",
|
||||||
@ -60,10 +66,13 @@ getMine().then(res => {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<el-container class="h-full">
|
<el-container class="h-full">
|
||||||
<el-aside class="settings-sidebar px-2" width="240px">
|
<el-aside
|
||||||
|
class="settings-sidebar px-2 dark:!bg-[var(--el-bg-color)]"
|
||||||
|
width="240px"
|
||||||
|
>
|
||||||
<el-menu :default-active="witchPane" class="settings-menu">
|
<el-menu :default-active="witchPane" class="settings-menu">
|
||||||
<el-menu-item
|
<el-menu-item
|
||||||
class="hover:transition-all hover:duration-200 hover:text-base"
|
class="hover:!transition-all hover:!duration-200 hover:!text-base !h-[50px]"
|
||||||
@click="router.go(-1)"
|
@click="router.go(-1)"
|
||||||
>
|
>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
@ -88,7 +97,7 @@ getMine().then(res => {
|
|||||||
:index="item.key"
|
:index="item.key"
|
||||||
@click="witchPane = item.key"
|
@click="witchPane = item.key"
|
||||||
>
|
>
|
||||||
<div class="flex items-center">
|
<div class="flex items-center z-10">
|
||||||
<el-icon><IconifyIconOffline :icon="item.icon" /></el-icon>
|
<el-icon><IconifyIconOffline :icon="item.icon" /></el-icon>
|
||||||
<span>{{ item.label }}</span>
|
<span>{{ item.label }}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -109,24 +118,23 @@ getMine().then(res => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.settings-menu {
|
.settings-menu {
|
||||||
color: $subMenuActiveText;
|
background-color: transparent;
|
||||||
background-color: transparent !important;
|
border: none;
|
||||||
border: none !important;
|
|
||||||
|
|
||||||
::v-deep(.el-menu-item) {
|
::v-deep(.el-menu-item) {
|
||||||
position: relative;
|
height: 48px !important;
|
||||||
|
color: $menuText !important;
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
div {
|
&:hover {
|
||||||
z-index: 1;
|
color: $menuTitleHover !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-active {
|
&.is-active {
|
||||||
span {
|
color: #fff !important;
|
||||||
color: #fff !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
i {
|
&:hover {
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,10 +144,21 @@ getMine().then(res => {
|
|||||||
margin: 4px 0;
|
margin: 4px 0;
|
||||||
clear: both;
|
clear: both;
|
||||||
content: "";
|
content: "";
|
||||||
background: var(--el-color-primary) !important;
|
background: var(--el-color-primary);
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
body[layout] {
|
||||||
|
.el-menu--vertical .is-active {
|
||||||
|
color: #fff !important;
|
||||||
|
transition: color 0.2s;
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
color: #fff !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user