mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-04-05 19:41:59 +08:00
feat(components): 增加刷新、搜索的头部按钮
This commit is contained in:
parent
f336487fca
commit
c832194801
@ -11,6 +11,8 @@
|
||||
<Breadcrumb />
|
||||
</div>
|
||||
<div class="flex-y-center h-full">
|
||||
<Refresh />
|
||||
<Search />
|
||||
<Notices />
|
||||
<Github />
|
||||
<FullScreen />
|
||||
@ -44,6 +46,8 @@ import {
|
||||
Github,
|
||||
Notices,
|
||||
UserCenter,
|
||||
Search,
|
||||
Refresh,
|
||||
} from '../components';
|
||||
|
||||
const appStore = useAppStore();
|
||||
|
17
src/layouts/components/header/Refresh.vue
Normal file
17
src/layouts/components/header/Refresh.vue
Normal file
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<n-tooltip placement="bottom" trigger="hover">
|
||||
<template #trigger>
|
||||
<HeaderButton @click="handleRefresh"><e-icon icon="icon-park-outline:refresh" /></HeaderButton>
|
||||
</template>
|
||||
<span>刷新页面</span>
|
||||
</n-tooltip>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import HeaderButton from '../common/HeaderButton.vue';
|
||||
const handleRefresh = () => {
|
||||
window.open('https://github.com/chen-see');
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
17
src/layouts/components/header/Search.vue
Normal file
17
src/layouts/components/header/Search.vue
Normal file
@ -0,0 +1,17 @@
|
||||
<template>
|
||||
<n-tooltip placement="bottom" trigger="hover">
|
||||
<template #trigger>
|
||||
<HeaderButton @click="handleSearch"><e-icon icon="icon-park-outline:search" /></HeaderButton>
|
||||
</template>
|
||||
<span>搜索</span>
|
||||
</n-tooltip>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import HeaderButton from '../common/HeaderButton.vue';
|
||||
const handleSearch = () => {
|
||||
window.open('https://github.com/chen-see');
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
@ -11,5 +11,20 @@ import Setting from './header/Setting.vue';
|
||||
import Github from './header/Github.vue';
|
||||
import Notices from './header/Notices.vue';
|
||||
import UserCenter from './header/UserCenter.vue';
|
||||
import Search from './header/Search.vue';
|
||||
import Refresh from './header/Refresh.vue';
|
||||
|
||||
export { Breadcrumb, CollapaseButton, Menu, Logo, FullScreen, DarkMode, Setting, Github, Notices, UserCenter };
|
||||
export {
|
||||
Breadcrumb,
|
||||
CollapaseButton,
|
||||
Menu,
|
||||
Logo,
|
||||
FullScreen,
|
||||
DarkMode,
|
||||
Setting,
|
||||
Github,
|
||||
Notices,
|
||||
UserCenter,
|
||||
Search,
|
||||
Refresh,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user