mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 06:20:50 +00:00
improve: head刷新调整
This commit is contained in:
parent
c0a5d4f15b
commit
cbb4e6a688
@ -1,9 +1,9 @@
|
||||
<template>
|
||||
<div class="header-bar">
|
||||
<sider-trigger :collapsed="collapsed" @on-change="handleCollpasedChange"></sider-trigger>
|
||||
<span class="i-layout-header-trigger" @click="handleReload">
|
||||
<!-- <span class="i-layout-header-trigger" @click="handleReload">
|
||||
<Icon type="ios-refresh" color='#fff' />
|
||||
</span>
|
||||
</span> -->
|
||||
<!-- <custom-bread-crumb
|
||||
show-icon
|
||||
style="margin-left: 30px"
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
import reload from './reload.vue';
|
||||
export default reload;
|
||||
@ -0,0 +1,33 @@
|
||||
<template>
|
||||
<div class="full-screen-btn-con" @click="handleReload">
|
||||
<Icon class="icon" type="md-refresh" color='#fff' />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { R } from '@/libs/util';
|
||||
|
||||
export default {
|
||||
name: 'reload',
|
||||
mounted() {},
|
||||
methods: {
|
||||
handleReload() {
|
||||
this.$emit('on-reload');
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
.full-screen-btn-con {
|
||||
margin-right: 17px !important;
|
||||
cursor: pointer;
|
||||
font-size: 20px;
|
||||
}
|
||||
.icon:hover{
|
||||
animation: rotate 6s linear infinite;
|
||||
}
|
||||
@keyframes rotate {
|
||||
0%{-webkit-transform:rotate(0deg);}
|
||||
100%{-webkit-transform:rotate(360deg);}
|
||||
}
|
||||
</style>
|
||||
@ -5,11 +5,13 @@
|
||||
<img v-show="!collapsed" :src="maxLogo" key="max-logo" />
|
||||
<img v-show="collapsed" :src="minLogo" key="min-logo" />
|
||||
</div>
|
||||
<header-bar :collapsed="collapsed" @on-coll-change="handleCollapsedChange" @on-reload="handleReload">
|
||||
<header-bar :collapsed="collapsed" @on-coll-change="handleCollapsedChange">
|
||||
<user :message-unread-count="unreadCount" :user-avatar="userAvatar" />
|
||||
<language v-if="$config.useI18n" @on-lang-change="setLocal" style="margin-right: 10px" :lang="local" />
|
||||
<header-notice></header-notice>
|
||||
<fullscreen v-model="isFullscreen" style="margin-right: 10px" />
|
||||
<Reload @on-reload="handleReload"></Reload>
|
||||
|
||||
<error-store
|
||||
v-if="$config.plugin['error-store'] && $config.plugin['error-store'].showInHeader"
|
||||
:has-read="hasReadErrorPage"
|
||||
@ -77,6 +79,7 @@ import Language from './components/language';
|
||||
import ErrorStore from './components/error-store';
|
||||
import HeaderSearch from './components/header-search';
|
||||
import HeaderNotice from './components/header-notice';
|
||||
import Reload from './components/reload';
|
||||
|
||||
import Setting from '@/setting';
|
||||
import iView from 'iview';
|
||||
@ -101,6 +104,7 @@ export default {
|
||||
iCopyright,
|
||||
HeaderSearch,
|
||||
HeaderNotice,
|
||||
Reload
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user