大屏标题组件
This commit is contained in:
		
							
								
								
									
										63
									
								
								components/layout/AiDvPanel/borders/border13.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										63
									
								
								components/layout/AiDvPanel/borders/border13.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,63 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <section class="border13" :class="'border13-' + theme">
 | 
			
		||||
    <div class="border13-title">
 | 
			
		||||
      <!-- <img src="../asset/ic-badge.png" v-if="theme === '1'" /> -->
 | 
			
		||||
      <h2>{{ title }}</h2>
 | 
			
		||||
    </div>
 | 
			
		||||
    <div class="slot">
 | 
			
		||||
      <slot/>
 | 
			
		||||
    </div>
 | 
			
		||||
  </section>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
export default {
 | 
			
		||||
  name: 'border13',
 | 
			
		||||
 | 
			
		||||
  props: ['title', 'theme']
 | 
			
		||||
}
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
.border13 {
 | 
			
		||||
  height: 100%;
 | 
			
		||||
 | 
			
		||||
  .border13-title {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    height: 41px;
 | 
			
		||||
    padding: 0 23px;
 | 
			
		||||
    box-sizing: border-box;
 | 
			
		||||
    background-image: url(../asset/border13.png);
 | 
			
		||||
    background-size: 100% 41px;
 | 
			
		||||
    background-repeat: no-repeat;
 | 
			
		||||
 | 
			
		||||
    h2 {
 | 
			
		||||
      position: relative;
 | 
			
		||||
      top: -3px;
 | 
			
		||||
      font-size: 24px;
 | 
			
		||||
      color: #E2EBF1;
 | 
			
		||||
      font-weight: normal;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    img {
 | 
			
		||||
      width: 28px;
 | 
			
		||||
      height: 28px;
 | 
			
		||||
      margin-right: 8px;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  &.border13-1 .border13-title {
 | 
			
		||||
    // background-image: url(../asset/border8.png);
 | 
			
		||||
    // background-position: bottom;
 | 
			
		||||
 | 
			
		||||
    &:after {
 | 
			
		||||
      background: #FFA086;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .slot {
 | 
			
		||||
    height: calc(100% - 41px);
 | 
			
		||||
    padding-top: 19px;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
		Reference in New Issue
	
	Block a user