<!-- * @Description: 施工人员 * @Author: 王晓颖 * @Date: 2020-12-10 14:35:08 --> <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: 'IndicatorCount', components: {ImageBlock2}, data () { return { data: [ {name: '国内生产总值(GDP)', value: '', unit: '万亿元'}, {name: '国民总收入', value: '', unit: '万亿元'}, {name: '地区GDP', value: '48.58', unit: '亿元'} ] } }, created () { this.getData() }, methods: { getData () { } } } </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>