| 
						
						
						
					 | 
					 | 
					@ -1,22 +1,25 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					<template> | 
					 | 
					 | 
					 | 
					<template> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  <a-layout-header :class="[backgroundColor, 'global-header']"> | 
					 | 
					 | 
					 | 
					  <a-layout-header :class="[theme, 'global-header']"> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <router-link v-if="isMobile" to="/" class="logo"> | 
					 | 
					 | 
					 | 
					    <div :class="['global-header-wide', layout]"> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <img width="32" src="static/img/vue-antd-logo.png" /> | 
					 | 
					 | 
					 | 
					      <router-link v-if="isMobile || layout === 'head'" to="/" :class="['logo', isMobile ? null : 'pc', theme]"> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </router-link> | 
					 | 
					 | 
					 | 
					        <img width="32" src="static/img/vue-antd-logo.png" /> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <a-divider v-if="isMobile" type="vertical" /> | 
					 | 
					 | 
					 | 
					        <h1 v-if="!isMobile">Vue Antd Admin</h1> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <a-icon v-if="layout === 'side'" class="trigger" :type="collapsed ? 'menu-unfold' : 'menu-fold'" @click="toggleCollapse"/> | 
					 | 
					 | 
					 | 
					      </router-link> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <div v-if="layout === 'head'" class="global-header-menu"> | 
					 | 
					 | 
					 | 
					      <a-divider v-if="isMobile" type="vertical" /> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      <i-menu style="height: 64px; line-height: 64px;" :theme="theme" mode="horizontal" :menuData="menuData" @select="onSelect"/> | 
					 | 
					 | 
					 | 
					      <a-icon v-if="layout === 'side'" class="trigger" :type="collapsed ? 'menu-unfold' : 'menu-fold'" @click="toggleCollapse"/> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </div> | 
					 | 
					 | 
					 | 
					      <div v-if="layout === 'head'" class="global-header-menu"> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <div style="float: right"> | 
					 | 
					 | 
					 | 
					        <i-menu style="height: 64px; line-height: 64px;" :theme="theme" mode="horizontal" :menuData="menuData" @select="onSelect"/> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <header-search class="header-item" /> | 
					 | 
					 | 
					 | 
					      </div> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <a-tooltip class="header-item" title="帮助文档" placement="bottom" > | 
					 | 
					 | 
					 | 
					      <div :class="['global-header-right', theme]"> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          <a> | 
					 | 
					 | 
					 | 
					          <header-search class="header-item" /> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <a-icon type="question-circle-o" /> | 
					 | 
					 | 
					 | 
					          <a-tooltip class="header-item" title="帮助文档" placement="bottom" > | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					          </a> | 
					 | 
					 | 
					 | 
					            <a> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </a-tooltip> | 
					 | 
					 | 
					 | 
					              <a-icon type="question-circle-o" /> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <header-notice class="header-item"/> | 
					 | 
					 | 
					 | 
					            </a> | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <header-avatar class="header-item"/> | 
					 | 
					 | 
					 | 
					          </a-tooltip> | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          <header-notice class="header-item"/> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          <header-avatar class="header-item"/> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      </div> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </div> | 
					 | 
					 | 
					 | 
					    </div> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  </a-layout-header> | 
					 | 
					 | 
					 | 
					  </a-layout-header> | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					</template> | 
					 | 
					 | 
					 | 
					</template> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -48,7 +51,7 @@ export default { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ALayout, | 
					 | 
					 | 
					 | 
					    ALayout, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ALayoutSider, | 
					 | 
					 | 
					 | 
					    ALayoutSider, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    ALayoutHeader}, | 
					 | 
					 | 
					 | 
					    ALayoutHeader}, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  props: ['collapsed', 'menuData', 'theme'], | 
					 | 
					 | 
					 | 
					  props: ['collapsed', 'menuData'], | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  computed: { | 
					 | 
					 | 
					 | 
					  computed: { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    isMobile () { | 
					 | 
					 | 
					 | 
					    isMobile () { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      return this.$store.state.setting.isMobile | 
					 | 
					 | 
					 | 
					      return this.$store.state.setting.isMobile | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -56,8 +59,8 @@ export default { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    layout () { | 
					 | 
					 | 
					 | 
					    layout () { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      return this.$store.state.setting.layout | 
					 | 
					 | 
					 | 
					      return this.$store.state.setting.layout | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    }, | 
					 | 
					 | 
					 | 
					    }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    backgroundColor () { | 
					 | 
					 | 
					 | 
					    theme () { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      return this.layout === 'side' ? 'light' : this.theme | 
					 | 
					 | 
					 | 
					      return this.layout === 'side' ? 'light' : this.$store.state.setting.theme | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  }, | 
					 | 
					 | 
					 | 
					  }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  methods: { | 
					 | 
					 | 
					 | 
					  methods: { | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -78,12 +81,10 @@ export default { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    padding: 0 24px; | 
					 | 
					 | 
					 | 
					    padding: 0 24px; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    cursor: pointer; | 
					 | 
					 | 
					 | 
					    cursor: pointer; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    transition: color .3s; | 
					 | 
					 | 
					 | 
					    transition: color .3s; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    &:hover{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      color: #1890ff; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  .trigger:hover { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    color: #1890ff; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  .header-item{ | 
					 | 
					 | 
					 | 
					  .header-item{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    padding: 0 12px; | 
					 | 
					 | 
					 | 
					    padding: 0 12px; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    display: inline-block; | 
					 | 
					 | 
					 | 
					    display: inline-block; | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -104,23 +105,50 @@ export default { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      background: #fff; | 
					 | 
					 | 
					 | 
					      background: #fff; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    &.dark{ | 
					 | 
					 | 
					 | 
					    &.dark{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      background-color: #001529; | 
					 | 
					 | 
					 | 
					      background: #001529; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    .logo { | 
					 | 
					 | 
					 | 
					    .global-header-wide{ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      height: 64px; | 
					 | 
					 | 
					 | 
					      &.head{ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      line-height: 58px; | 
					 | 
					 | 
					 | 
					        max-width: 1200px; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      vertical-align: top; | 
					 | 
					 | 
					 | 
					        margin: auto; | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      display: inline-block; | 
					 | 
					 | 
					 | 
					      } | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      padding: 0 12px 0 24px; | 
					 | 
					 | 
					 | 
					      &.side{ | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      cursor: pointer; | 
					 | 
					 | 
					 | 
					      } | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      font-size: 20px; | 
					 | 
					 | 
					 | 
					      .logo { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      img { | 
					 | 
					 | 
					 | 
					        height: 64px; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        line-height: 58px; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        vertical-align: top; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        display: inline-block; | 
					 | 
					 | 
					 | 
					        display: inline-block; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        vertical-align: middle; | 
					 | 
					 | 
					 | 
					        padding: 0 12px 0 24px; | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        cursor: pointer; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        font-size: 20px; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        &.pc{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          padding: 0 12px 0 0; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        img { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          display: inline-block; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          vertical-align: middle; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        h1{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          display: inline-block; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          font-size: 16px; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        &.dark h1{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          color: #fff; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      .global-header-menu{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        display: inline-block; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      .global-header-right{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        float: right; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        &.dark{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          color: #fff; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          i{ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            color: #fff; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					          } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      } | 
					 | 
					 | 
					 | 
					      } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    .global-header-menu{ | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      display: inline-block; | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  } | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					</style> | 
					 | 
					 | 
					 | 
					</style> | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					 | 
					
  |