56 lines
1.2 KiB
Vue
56 lines
1.2 KiB
Vue
|
|
<!-- 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">
|
||
|
|
<!-- 图层控制 -->
|
||
|
|
<!-- <TopOption></TopOption> -->
|
||
|
|
</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;
|
||
|
|
|
||
|
|
.top-title {
|
||
|
|
position: relative;
|
||
|
|
margin-block: 0;
|
||
|
|
color: #fff;
|
||
|
|
letter-spacing: 4px;
|
||
|
|
font-size: 18px;
|
||
|
|
top: 40%;
|
||
|
|
transform: translateY(-50%);
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
.top_option {
|
||
|
|
margin-top: 15px;
|
||
|
|
padding-left: 25px;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
|