-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
80 additions
and
91 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{ | ||
"name": "vue-admin-complex", | ||
"version": "0.0.0", | ||
"private": true, | ||
"type": "module", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,72 @@ | ||
<script setup> | ||
import DropDownList from './DropDownList.vue' | ||
import { useRouter } from 'vue-router' | ||
const router = useRouter() | ||
const dropdownLists = [ | ||
{ | ||
title: '退出登录', | ||
onClick: () => { | ||
router.push('/') | ||
} | ||
} | ||
] | ||
</script> | ||
|
||
<template> | ||
<div class="wrapper"> | ||
<div class="logo-container"> | ||
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="32" height="32" /> | ||
<span class="title">Vue Admin Complex</span> | ||
</div> | ||
<div class="right-container"> | ||
<div class="tools"></div> | ||
<div class="user-info"> | ||
<img alt="user avatar" class="avatar" src="@/assets/avatar.png" width="32" height="32" /> | ||
<DropDownList title="admin user" :list="dropdownLists" /> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.wrapper { | ||
width: 100%; | ||
height: 60px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding-inline: 40px; | ||
padding-block: 8px; | ||
border-bottom: 1px solid rgba(60, 60, 60, 0.12); | ||
} | ||
.logo-container { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.logo { | ||
width: 32px; | ||
height: auto; | ||
} | ||
.title { | ||
font-size: 14px; | ||
font-weight: 600; | ||
margin-left: 12px; | ||
} | ||
.right-container { | ||
display: flex; | ||
align-items: center; | ||
column-gap: 10px; | ||
} | ||
.user-info { | ||
display: flex; | ||
align-items: center; | ||
column-gap: 10px; | ||
} | ||
</style> | ||
<script setup lang="ts"> | ||
import DropDownList from './DropDownList.vue' | ||
import { useRouter } from 'vue-router' | ||
const router = useRouter() | ||
const dropdownLists = [ | ||
{ | ||
title: '退出登录', | ||
onClick: () => { | ||
router.push('/') | ||
} | ||
} | ||
] | ||
</script> | ||
|
||
<template> | ||
<div class="wrapper"> | ||
<div class="logo-container"> | ||
<img alt="Vue logo" class="logo" src="@/assets/logo.svg" width="32" height="32" /> | ||
<span class="title">Vue Admin Complex</span> | ||
</div> | ||
<div class="right-container"> | ||
<div class="tools"></div> | ||
<div class="user-info"> | ||
<img alt="user avatar" class="avatar" src="@/assets/avatar.png" width="32" height="32" /> | ||
<DropDownList title="admin user" :list="dropdownLists" /> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.wrapper { | ||
width: 100%; | ||
height: 60px; | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: center; | ||
padding-inline: 40px; | ||
padding-block: 8px; | ||
border-bottom: 1px solid rgba(60, 60, 60, 0.12); | ||
} | ||
.logo-container { | ||
display: flex; | ||
align-items: center; | ||
} | ||
.logo { | ||
width: 32px; | ||
height: auto; | ||
} | ||
.title { | ||
font-size: 14px; | ||
font-weight: 600; | ||
margin-left: 12px; | ||
} | ||
.right-container { | ||
display: flex; | ||
align-items: center; | ||
column-gap: 10px; | ||
} | ||
.user-info { | ||
display: flex; | ||
align-items: center; | ||
column-gap: 10px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,3 @@ | ||
<script setup></script> | ||
<template> | ||
<div class="admin-container"> | ||
page one | ||
</div> | ||
</template> | ||
<style scoped> | ||
</style> | ||
<template> | ||
<div class="admin-container">page one</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters