<!-- topNav -->
<script lang="ts">
import { defineComponent, ref, unref } from "vue";
export default defineComponent({
  components: { TopOption },
  name: "TopNav",
});
</script>
<script setup lang="ts">

import { ClickOutside as vClickOutside } from "element-plus";
import TopOption from "../../../views/top-menu/top-option.vue";
import Toplayer from "../../../views/top-menu/top-layer.vue";
const title = import.meta.env.VITE_TITLE;
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">
      <!-- 图层控制 -->
       <Toplayer></Toplayer>
       <!-- 标题 -->
      <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;
  display: flex;

  .top-title {
    width: 30%;
    font-size: 27px;
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: bold;
    text-align: center;
    color: #cfe6ff;
  }
}
.top_option {
  // margin-top: 15px;
  // padding-left: 25px;
}
</style>

