|
@@ -0,0 +1,112 @@
|
|
|
+<!-- -->
|
|
|
+<template>
|
|
|
+ <div class="">
|
|
|
+ <el-popover :width="300"
|
|
|
+ popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;">
|
|
|
+ <template #reference>
|
|
|
+ <img src="@/assets/img/userInfo.gif" style="width: 40px;height: 40px;border-radius: 50%;cursor: pointer">
|
|
|
+ </template>
|
|
|
+ <template #default>
|
|
|
+ <div class="demo-rich-conent" style="display: flex; gap: 16px; flex-direction: column">
|
|
|
+ <img src="@/assets/img/userInfo.gif" style="width: 40px;height: 40px;border-radius: 50%;">
|
|
|
+ <div>
|
|
|
+ <p class="demo-rich-content__name" style="margin: 0; font-weight: 500">
|
|
|
+ 你好,管理员
|
|
|
+ </p>
|
|
|
+ <p class="demo-rich-content__mention" style="color: var(--el-color-info)">
|
|
|
+ @element-plus
|
|
|
+ </p>
|
|
|
+ </div>
|
|
|
+ <div class="demo-ico__desc">
|
|
|
+ <div class="demo-ico__desc_item" @click="exitFun(1)">
|
|
|
+ <el-icon size="20" color="#fff">
|
|
|
+ <FullScreen />
|
|
|
+ </el-icon>
|
|
|
+ <p class="demo-ico__desc_item_p">全屏</p>
|
|
|
+ </div>
|
|
|
+ <div class="demo-ico__desc_item" @click="exitFun(2)">
|
|
|
+ <el-icon size="20" color="#fff">
|
|
|
+ <Setting />
|
|
|
+ </el-icon>
|
|
|
+ <p class="demo-ico__desc_item_p">设置</p>
|
|
|
+ </div>
|
|
|
+ <div class="demo-ico__desc_item" @click="exitFun(3)">
|
|
|
+ <el-icon size="20" color="#fff">
|
|
|
+ <Bell />
|
|
|
+ </el-icon>
|
|
|
+ <p class="demo-ico__desc_item_p">系统消息</p>
|
|
|
+ </div>
|
|
|
+ <div class="demo-ico__desc_item" @click="exitFun(4)">
|
|
|
+ <el-icon size="20" color="#fff">
|
|
|
+ <SwitchButton />
|
|
|
+ </el-icon>
|
|
|
+ <p class="demo-ico__desc_item_p">退出账号</p>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-popover>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script lang="ts" setup>
|
|
|
+import { exitFun } from "@/plugins/setFun";
|
|
|
+</script>
|
|
|
+<style lang="scss">
|
|
|
+.demo-ico__desc {
|
|
|
+ display: grid;
|
|
|
+ grid-template-columns: 1fr 1fr;
|
|
|
+ grid-gap: 10px;
|
|
|
+ user-select: none;
|
|
|
+
|
|
|
+ &_item {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ flex-direction: column;
|
|
|
+ padding: 10px 0;
|
|
|
+ border-radius: 2px;
|
|
|
+ cursor: pointer;
|
|
|
+
|
|
|
+ &_p {
|
|
|
+ color: #fff;
|
|
|
+ margin-top: 5px;
|
|
|
+ font-size: 12px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ &_item:nth-child(1) {
|
|
|
+ background: #ee954d;
|
|
|
+ }
|
|
|
+
|
|
|
+ &_item:nth-child(1):hover {
|
|
|
+ background: rgba(#ee954d, 0.6) !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ &_item:nth-child(2) {
|
|
|
+ background: #32b67a;
|
|
|
+ }
|
|
|
+
|
|
|
+ &_item:nth-child(2):hover {
|
|
|
+ background: rgba(#32b67a, 0.6) !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ &_item:nth-child(3) {
|
|
|
+ background: #349ac1;
|
|
|
+ }
|
|
|
+
|
|
|
+ &_item:nth-child(3):hover {
|
|
|
+ background: rgba(#349ac1, 0.6) !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ &_item:nth-child(4) {
|
|
|
+ background: #ff8b8b;
|
|
|
+ }
|
|
|
+
|
|
|
+ &_item:nth-child(4):hover {
|
|
|
+ background: rgba(#ff8b8b, 0.6) !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ &_item:nth-child(5) {
|
|
|
+ background: #e54b4b;
|
|
|
+ }
|
|
|
+}</style>
|