大屏组件
This commit is contained in:
		@@ -22,6 +22,7 @@
 | 
			
		||||
  import Summary14 from './components/Summary14'
 | 
			
		||||
  import Summary15 from './components/Summary15'
 | 
			
		||||
  import Summary16 from './components/Summary16'
 | 
			
		||||
  import Summary17 from './components/Summary17'
 | 
			
		||||
 | 
			
		||||
  export default {
 | 
			
		||||
    name: 'AiDvSummary',
 | 
			
		||||
@@ -43,7 +44,8 @@
 | 
			
		||||
      Summary13,
 | 
			
		||||
      Summary14,
 | 
			
		||||
      Summary15,
 | 
			
		||||
      Summary16
 | 
			
		||||
      Summary16,
 | 
			
		||||
      Summary17
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    props: {
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										99
									
								
								components/layout/AiDvSummary/components/Summary17.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										99
									
								
								components/layout/AiDvSummary/components/Summary17.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,99 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="Summary17">
 | 
			
		||||
    <div class="Summary17-item" v-for="(item, index) in data" :class="'Summary17-item__' + theme" :key="index" v-if="index < 4">
 | 
			
		||||
      <p>{{ item[value] }}</p>
 | 
			
		||||
      <h2>{{ item[keys] }}</h2>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
  export default {
 | 
			
		||||
    name: 'Summary17',
 | 
			
		||||
 | 
			
		||||
    props: {
 | 
			
		||||
      data: {
 | 
			
		||||
        type: Array,
 | 
			
		||||
        default: () => []
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      keys: {
 | 
			
		||||
        type: String,
 | 
			
		||||
        default: 'key'
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      value: {
 | 
			
		||||
        type: String,
 | 
			
		||||
        default: 'value'
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      theme: {
 | 
			
		||||
        type: String,
 | 
			
		||||
        default: '0'
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    data () {
 | 
			
		||||
      return {
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    methods: {
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
  .Summary17 {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-wrap: wrap;
 | 
			
		||||
    justify-content: space-between;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
 | 
			
		||||
    div {
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .Summary17-item {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      position: relative;
 | 
			
		||||
      align-items: center;
 | 
			
		||||
      justify-content: center;
 | 
			
		||||
      flex-direction: column;
 | 
			
		||||
      width: 126px;
 | 
			
		||||
      height: 139px;
 | 
			
		||||
      text-align: center;
 | 
			
		||||
      color: #fff;
 | 
			
		||||
      font-size: 14px;
 | 
			
		||||
      background: url(../asset/Summary17.png) no-repeat center;
 | 
			
		||||
      background-size: 126px 139px;
 | 
			
		||||
 | 
			
		||||
      &.Summary17-item__1 {
 | 
			
		||||
        background: url(../asset/Summary17-dj.png) no-repeat center;
 | 
			
		||||
        background-size: 126px 139px;
 | 
			
		||||
 | 
			
		||||
        h2 {
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        p {
 | 
			
		||||
          color: #FFDC64;
 | 
			
		||||
        }
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      h2 {
 | 
			
		||||
        margin-top: 30px;
 | 
			
		||||
        color: #ffffff;
 | 
			
		||||
        font-weight: normal;
 | 
			
		||||
        font-size: 14px;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      p {
 | 
			
		||||
        font-weight: 700;
 | 
			
		||||
        font-size: 30px;
 | 
			
		||||
        color: #66FFFF;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
</style>
 | 
			
		||||
		Reference in New Issue
	
	Block a user