daofu-large-screen/src/layout/components/TopNav/index.vue

55 lines
1.2 KiB
Vue
Raw Normal View History

2024-01-24 14:15:13 +08:00
<!-- topNav -->
<script lang="ts">
import { defineComponent, ref, unref } from "vue";
export default defineComponent({
components: { TopOption },
name: "TopNav",
});
</script>
<script setup lang="ts">
const title = import.meta.env.VITE_TITLE;
import { ClickOutside as vClickOutside } from "element-plus";
import TopOption from "../../../views/top-menu/top-option.vue";
const buttonRef = ref();
const popoverRef = ref();
const onClickOutside = () => {
unref(popoverRef).popperRef?.delayHide?.();
};
</script>
<template>
<header class="header-container">
<h1 class="top-title">{{ title }}</h1>
<div class="top_option">
<!-- 图层控制 -->
2024-01-24 17:44:57 +08:00
<TopOption></TopOption>
2024-01-24 14:15:13 +08:00
</div>
</header>
</template>
<style lang="scss" scoped>
.header-container {
position: relative;
height: $TopHeight;
background-image: url("@/assets/images/top/top.png");
background-size: 100% 100%;
background-repeat: no-repeat;
z-index: 3;
2024-01-24 17:44:57 +08:00
display: flex;
2024-01-24 14:15:13 +08:00
.top-title {
2024-01-24 17:44:57 +08:00
width: 30%;
font-size: 27px;
font-family: Source Han Sans CN, Source Han Sans CN;
font-weight: bold;
2024-01-24 14:15:13 +08:00
text-align: center;
2024-01-24 17:44:57 +08:00
color: #cfe6ff;
2024-01-24 14:15:13 +08:00
}
}
.top_option {
2024-01-24 17:44:57 +08:00
// margin-top: 15px;
// padding-left: 25px;
2024-01-24 14:15:13 +08:00
}
</style>