Commit 083b822c authored by Bucky Lee's avatar Bucky Lee
Browse files

update header

parent 29e8d054
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -12,3 +12,4 @@ package-lock.json
pnpm-lock.yaml

*.log
.DS_Store
+4 −1
Original line number Diff line number Diff line
// generated by unplugin-vue-components
// We suggest you to commit this file into source control
// Read more: https://github.com/vuejs/vue-next/pull/3399
// Read more: https://github.com/vuejs/core/pull/3399
import '@vue/runtime-core'

declare module '@vue/runtime-core' {
@@ -11,6 +11,7 @@ declare module '@vue/runtime-core' {
    ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
    ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
    ElIcon: typeof import('element-plus/es')['ElIcon']
    ElImage: typeof import('element-plus/es')['ElImage']
    ElInput: typeof import('element-plus/es')['ElInput']
    ElMenu: typeof import('element-plus/es')['ElMenu']
    ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
@@ -18,6 +19,8 @@ declare module '@vue/runtime-core' {
    ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
    ElTag: typeof import('element-plus/es')['ElTag']
    HelloWorld: typeof import('./components/HelloWorld.vue')['default']
    RouterLink: typeof import('vue-router')['RouterLink']
    RouterView: typeof import('vue-router')['RouterView']
  }
}

+18 −17
Original line number Diff line number Diff line
@@ -2,23 +2,16 @@
import {toggleDark} from '~/composables';
</script>

<!-- 顶部菜单栏,需要加网站标题,不知道加哪-->

<template>
  <el-menu class="el-menu-demo" mode="horizontal">
    <el-menu-item index="1">Element Plus</el-menu-item>
    <el-sub-menu index="2">
      <template #title>Workspace</template>
      <el-menu-item index="2-1">item one</el-menu-item>
      <el-menu-item index="2-2">item two</el-menu-item>
      <el-menu-item index="2-3">item three</el-menu-item>
      <el-sub-menu index="2-4">
        <template #title>item four</template>
        <el-menu-item index="2-4-1">item one</el-menu-item>
        <el-menu-item index="2-4-2">item two</el-menu-item>
        <el-menu-item index="2-4-3">item three</el-menu-item>
      </el-sub-menu>
    </el-sub-menu>
    <el-menu-item index="3" disabled>Info</el-menu-item>
    <el-menu-item index="4">Orders</el-menu-item>
    <div class="logo_image">
      <el-image src='src/assets/logo.png' style="width: 128px; height: 39px" fit="fill"/>
    </div>
    <el-menu-item index="1">首页</el-menu-item>
    <el-menu-item index="2">功能</el-menu-item>
    <el-menu-item index="3">团队介绍</el-menu-item>
    <el-menu-item h="full" @click="toggleDark()">
      <button class="border-none w-full bg-transparent cursor-pointer" style="height: var(--ep-menu-item-height);">
        <i inline-flex i="dark:ep-moon ep-sunny"/>
@@ -26,3 +19,11 @@ import { toggleDark } from '~/composables';
    </el-menu-item>
  </el-menu>
</template>

<style>
.logo_image {
  padding-top: 6px;
  padding-left: 15px;
  padding-right: 15px;
}
</style>
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
<!--更改为使用方法?-->

<template>
  <el-menu
    default-active="2"
+1 −1
Original line number Diff line number Diff line
{
  "name": "element-plus-vite-starter",
  "name": "OSAP_web",
  "private": true,
  "version": "0.1.0",
  "scripts": {
Loading