|  | @@ -1,10 +1,75 @@
 | 
	
		
			
				|  |  | -import { defineComponent } from 'vue';
 | 
	
		
			
				|  |  | +import { defineComponent, ref } from 'vue';
 | 
	
		
			
				|  |  | +import styles from './index.module.less';
 | 
	
		
			
				|  |  | +import { NImage, NBadge, NPopover, NIcon } from 'naive-ui';
 | 
	
		
			
				|  |  | +import schoolIcon from './images/schoolIcon.png';
 | 
	
		
			
				|  |  | +import teacherIcon from './images/teacherIcon.png';
 | 
	
		
			
				|  |  | +import messageIcon from './images/messageIcon.png';
 | 
	
		
			
				|  |  |  export default defineComponent({
 | 
	
		
			
				|  |  |    name: 'layoutTop',
 | 
	
		
			
				|  |  |    setup() {
 | 
	
		
			
				|  |  | +    const showHeadFlag = ref(false);
 | 
	
		
			
				|  |  |      return () => (
 | 
	
		
			
				|  |  |        <>
 | 
	
		
			
				|  |  | -        <div>layoutTop</div>
 | 
	
		
			
				|  |  | +        <div class={styles.layoutTop}>
 | 
	
		
			
				|  |  | +          <div class={styles.layoutLeft}>
 | 
	
		
			
				|  |  | +            <NImage src={schoolIcon} class={styles.schoolIcon}></NImage>
 | 
	
		
			
				|  |  | +            <p>武汉市武昌区教育局 | 武汉小学</p>
 | 
	
		
			
				|  |  | +          </div>
 | 
	
		
			
				|  |  | +          <div class={styles.layoutRight}>
 | 
	
		
			
				|  |  | +            <NBadge value={2} class={styles.messageBadge} color={'#FF1036'}>
 | 
	
		
			
				|  |  | +              <NImage
 | 
	
		
			
				|  |  | +                preview-disabled
 | 
	
		
			
				|  |  | +                class={styles.messageIcon}
 | 
	
		
			
				|  |  | +                src={messageIcon}></NImage>
 | 
	
		
			
				|  |  | +            </NBadge>
 | 
	
		
			
				|  |  | +            <div class={styles.line}></div>
 | 
	
		
			
				|  |  | +            <NPopover
 | 
	
		
			
				|  |  | +              show-arrow={false}
 | 
	
		
			
				|  |  | +              trigger="click"
 | 
	
		
			
				|  |  | +              onUpdate:show={val => {
 | 
	
		
			
				|  |  | +                showHeadFlag.value = val;
 | 
	
		
			
				|  |  | +              }}
 | 
	
		
			
				|  |  | +              class={styles.popoverHeader}
 | 
	
		
			
				|  |  | +              placement="bottom-end"
 | 
	
		
			
				|  |  | +              raw={true}
 | 
	
		
			
				|  |  | +              v-slots={{
 | 
	
		
			
				|  |  | +                trigger: () => (
 | 
	
		
			
				|  |  | +                  <div class={styles.mesgWrap}>
 | 
	
		
			
				|  |  | +                    <NImage
 | 
	
		
			
				|  |  | +                      preview-disabled
 | 
	
		
			
				|  |  | +                      class={styles.teacherIcon}
 | 
	
		
			
				|  |  | +                      src={teacherIcon}></NImage>
 | 
	
		
			
				|  |  | +                    <NIcon
 | 
	
		
			
				|  |  | +                      class={
 | 
	
		
			
				|  |  | +                        showHeadFlag.value
 | 
	
		
			
				|  |  | +                          ? styles.rotueLeft
 | 
	
		
			
				|  |  | +                          : styles.rotueRight
 | 
	
		
			
				|  |  | +                      }>
 | 
	
		
			
				|  |  | +                      <svg
 | 
	
		
			
				|  |  | +                        xmlns="http://www.w3.org/2000/svg"
 | 
	
		
			
				|  |  | +                        xmlns:xlink="http://www.w3.org/1999/xlink"
 | 
	
		
			
				|  |  | +                        viewBox="0 0 24 24">
 | 
	
		
			
				|  |  | +                        <path
 | 
	
		
			
				|  |  | +                          d="M7.38 21.01c.49.49 1.28.49 1.77 0l8.31-8.31a.996.996 0 0 0 0-1.41L9.15 2.98c-.49-.49-1.28-.49-1.77 0s-.49 1.28 0 1.77L14.62 12l-7.25 7.25c-.48.48-.48 1.28.01 1.76z"
 | 
	
		
			
				|  |  | +                          fill="currentColor"></path>
 | 
	
		
			
				|  |  | +                      </svg>
 | 
	
		
			
				|  |  | +                    </NIcon>
 | 
	
		
			
				|  |  | +                  </div>
 | 
	
		
			
				|  |  | +                )
 | 
	
		
			
				|  |  | +              }}>
 | 
	
		
			
				|  |  | +              <div class={styles.propWrap}>
 | 
	
		
			
				|  |  | +                <div class={styles.teacherInfo}>
 | 
	
		
			
				|  |  | +                  <NImage
 | 
	
		
			
				|  |  | +                    class={styles.teacherIcon}
 | 
	
		
			
				|  |  | +                    src={teacherIcon}
 | 
	
		
			
				|  |  | +                    previewDisabled></NImage>
 | 
	
		
			
				|  |  | +                </div>
 | 
	
		
			
				|  |  | +                <div class={styles.propWrapList}></div>
 | 
	
		
			
				|  |  | +                <div class={styles.logoutInfo}></div>
 | 
	
		
			
				|  |  | +              </div>
 | 
	
		
			
				|  |  | +            </NPopover>
 | 
	
		
			
				|  |  | +          </div>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  |        </>
 | 
	
		
			
				|  |  |      );
 | 
	
		
			
				|  |  |    }
 |