<!-- * @Description: 违章总数,处置情况 * @Author: 王晓颖 * @Date: 2020-12-07 11:31:42 --> <template> <div style="width: 100%;height:100%;padding:0.1rem" > <div class="youth-count-container"> <image-block2 v-for="item of data" :key="item.name" :data="item"/> </div> </div> </template> <script> import ImageBlock2 from '@/components/block/imageBlock2' export default { name: 'TrafficPeccanyCount', components: {ImageBlock2}, data () { return { data: [ {name: '今日违章', value: 12, unit: '个'}, {name: '本月违章', value: 138, unit: '个'}, {name: '全年违章', value: 15437, unit: '个'} ] } }, created () { this.getData() }, methods: { } } </script> <style rel="stylesheet/scss" lang="scss" scoped> .youth-count-container{ // 垂直flex height: 100%; padding-left:0.03rem; padding-right:0.03rem; display: -webkit-flex; /* Safari */ display: flex; flex-direction: column; justify-content: space-between; margin:auto; } </style>