大屏组件
This commit is contained in:
		@@ -21,6 +21,7 @@
 | 
			
		||||
  import Summary13 from './components/Summary13'
 | 
			
		||||
  import Summary14 from './components/Summary14'
 | 
			
		||||
  import Summary15 from './components/Summary15'
 | 
			
		||||
  import Summary16 from './components/Summary16'
 | 
			
		||||
 | 
			
		||||
  export default {
 | 
			
		||||
    name: 'AiDvSummary',
 | 
			
		||||
@@ -41,7 +42,8 @@
 | 
			
		||||
      Summary12,
 | 
			
		||||
      Summary13,
 | 
			
		||||
      Summary14,
 | 
			
		||||
      Summary15
 | 
			
		||||
      Summary15,
 | 
			
		||||
      Summary16
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    props: {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										
											BIN
										
									
								
								components/layout/AiDvSummary/asset/Summary16-dj.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								components/layout/AiDvSummary/asset/Summary16-dj.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 14 KiB  | 
							
								
								
									
										
											BIN
										
									
								
								components/layout/AiDvSummary/asset/Summary16.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								components/layout/AiDvSummary/asset/Summary16.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 9.9 KiB  | 
							
								
								
									
										90
									
								
								components/layout/AiDvSummary/components/Summary16.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										90
									
								
								components/layout/AiDvSummary/components/Summary16.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,90 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="Summary16">
 | 
			
		||||
    <div class="Summary16-item" v-for="(item, index) in data" :class="'Summary16-item' + (index + 1)" :key="index" v-if="index < 4">
 | 
			
		||||
      <h2>{{ item[keys] }}</h2>
 | 
			
		||||
      <p>{{ item[value] }}</p>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
  export default {
 | 
			
		||||
    name: 'Summary16',
 | 
			
		||||
 | 
			
		||||
    props: {
 | 
			
		||||
      data: {
 | 
			
		||||
        type: Array,
 | 
			
		||||
        default: () => []
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      keys: {
 | 
			
		||||
        type: String,
 | 
			
		||||
        default: 'key'
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      value: {
 | 
			
		||||
        type: String,
 | 
			
		||||
        default: 'value'
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    data () {
 | 
			
		||||
      return {
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    methods: {
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
  .Summary16 {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-wrap: wrap;
 | 
			
		||||
    justify-content: space-between;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
 | 
			
		||||
    div {
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .Summary16-item {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      position: relative;
 | 
			
		||||
      align-items: center;
 | 
			
		||||
      justify-content: space-between;
 | 
			
		||||
      flex-direction: column;
 | 
			
		||||
      width: 122px;
 | 
			
		||||
      height: 132px;
 | 
			
		||||
      padding-bottom: 44px;
 | 
			
		||||
      text-align: center;
 | 
			
		||||
      color: #fff;
 | 
			
		||||
      font-size: 14px;
 | 
			
		||||
      background: url(../asset/Summary16.png) no-repeat;
 | 
			
		||||
      background-position: center 14px;
 | 
			
		||||
      background-size: 122px 80px;
 | 
			
		||||
      background-position: bottom;
 | 
			
		||||
 | 
			
		||||
      h2 {
 | 
			
		||||
        color: #ffffff;
 | 
			
		||||
        font-size: 18px;
 | 
			
		||||
        background: linear-gradient(to bottom, #ffff, #EBF9FF, #35BEFF);
 | 
			
		||||
        -webkit-background-clip: text;
 | 
			
		||||
        color: transparent;
 | 
			
		||||
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      p {
 | 
			
		||||
        color: #ffffff;
 | 
			
		||||
        font-weight: 700;
 | 
			
		||||
        font-size: 44px;
 | 
			
		||||
        background: linear-gradient(to bottom, #ffff, #EBF9FF, #35BEFF);
 | 
			
		||||
        -webkit-background-clip: text;
 | 
			
		||||
        color: transparent;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
</style>
 | 
			
		||||
		Reference in New Issue
	
	Block a user