迁移大屏UI库和应用
This commit is contained in:
		
							
								
								
									
										115
									
								
								project/dvui/layout/AiDvSummary/components/Summary4.vue
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										115
									
								
								project/dvui/layout/AiDvSummary/components/Summary4.vue
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,115 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <div class="summary4">
 | 
			
		||||
    <div class="summary4-item" v-for="(item, index) in data" :key="index" v-show="index < 3">
 | 
			
		||||
      <p>{{ item[value] }}</p>
 | 
			
		||||
      <h2>{{ item[keys] }}</h2>
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script>
 | 
			
		||||
  export default {
 | 
			
		||||
    name: 'Summary4',
 | 
			
		||||
 | 
			
		||||
    props: {
 | 
			
		||||
      data: {
 | 
			
		||||
        type: Array,
 | 
			
		||||
        default: () => []
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      keys: {
 | 
			
		||||
        type: String,
 | 
			
		||||
        default: 'key'
 | 
			
		||||
      },
 | 
			
		||||
 | 
			
		||||
      value: {
 | 
			
		||||
        type: String,
 | 
			
		||||
        default: 'value'
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    data () {
 | 
			
		||||
      return {
 | 
			
		||||
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style lang="scss" scoped>
 | 
			
		||||
  .summary4 {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    flex-wrap: wrap;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
    width: 100%;
 | 
			
		||||
    height: 100%;
 | 
			
		||||
 | 
			
		||||
    div {
 | 
			
		||||
      box-sizing: border-box;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    .summary4-item {
 | 
			
		||||
      display: flex;
 | 
			
		||||
      position: relative;
 | 
			
		||||
      align-items: center;
 | 
			
		||||
      flex-direction: column;
 | 
			
		||||
      justify-content: space-between;
 | 
			
		||||
      width: 130px;
 | 
			
		||||
      height: 108px;
 | 
			
		||||
      padding: 18px 0 ;
 | 
			
		||||
      font-size: 0;
 | 
			
		||||
      background-image: url(../asset/summary4-small.svg);
 | 
			
		||||
      background-size: 100% 100%;
 | 
			
		||||
 | 
			
		||||
      &::after {
 | 
			
		||||
        position: absolute;
 | 
			
		||||
        top: 50%;
 | 
			
		||||
        left: 50%;
 | 
			
		||||
        z-index: 1;
 | 
			
		||||
        width: 40px;
 | 
			
		||||
        height: 2px;
 | 
			
		||||
        background: #FDDD60;
 | 
			
		||||
        content: '';
 | 
			
		||||
        transform: translate(-50%, -50%);
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      &:nth-of-type(3) {
 | 
			
		||||
        left: -48px;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      &:nth-of-type(2) {
 | 
			
		||||
        z-index: 1;
 | 
			
		||||
        left: -24px;
 | 
			
		||||
        width: 160px;
 | 
			
		||||
        height: 140px;
 | 
			
		||||
        padding-top: 28px;
 | 
			
		||||
        padding: 28px ;
 | 
			
		||||
        background-image: url(../asset/summary4-big.svg);
 | 
			
		||||
        background-size: 100% 100%;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      h2 {
 | 
			
		||||
        color: #fff;
 | 
			
		||||
        font-size: 14px;
 | 
			
		||||
        line-height: 28px;
 | 
			
		||||
        background-image: linear-gradient(
 | 
			
		||||
          180deg,
 | 
			
		||||
          rgba(255, 255, 255, 1) 0%,
 | 
			
		||||
          rgba(140, 209, 255, 1) 100%
 | 
			
		||||
        );
 | 
			
		||||
        -webkit-background-clip: text;
 | 
			
		||||
        -webkit-text-fill-color: transparent;
 | 
			
		||||
      }
 | 
			
		||||
 | 
			
		||||
      p {
 | 
			
		||||
        font-size: 28px;
 | 
			
		||||
        font-weight: 700;
 | 
			
		||||
        line-height: 28px;
 | 
			
		||||
        color: #8BCCFF;
 | 
			
		||||
        background-image: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(235, 249, 255, 1) 36%, rgba(53, 190, 255, 1) 100% );
 | 
			
		||||
        -webkit-background-clip: text;
 | 
			
		||||
        -webkit-text-fill-color: transparent;
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
</style>
 | 
			
		||||
		Reference in New Issue
	
	Block a user