<!-- * @Author: your name * @Date: 2022-04-18 18:00:22 * @LastEditTime: 2022-05-05 10:38:23 * @LastEditors: Please set LastEditors * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /gassafety-progress/gassafetyprogress-web/src/views/statistic/overview/conponents/Left.vue --> <template> <div class="all-flex-h left-component"> <div class="one"> <Scound title="农村两员" /> </div> <div class="two"> <Scound title="双代设备" :left="two.left" :right="two.right" /> </div> <div class="two"> <Scound title="气站统计" :left="three.left" :right="three.right" /> </div> <div class="two"> <Scound title="保修统计" :left="four.left" :right="four.right" /> </div> <div class="three"> <CharBoxA/> </div> <!--<div class="four">--> <!--<CharBoxB/>--> <!--</div>--> </div> </template> <script> import Scound from "./Scound"; import CharBoxA from "./CharBoxA"; import CharBoxB from "./CharBoxB"; export default { name: "", components: { Scound, CharBoxA, CharBoxB }, data() { return { two: { left: { text: "电代煤", numArr: "0", unit: "个", }, right:{ text: "气代煤", numArr: "116799", unit: "个", } }, three: { left: { text: "储配充气站", numArr: "35", unit: "个", }, right:{ text: "气瓶中转站", numArr: "12", unit: "个", } }, four: { left: { text: "销售量", numArr: "14582", unit: "个", }, right:{ text: "保修量", numArr: "12", unit: "个", } }, }; }, methods: {}, }; </script> <style lang="scss" scoped> .left-component { width: 99.8%; height: 100%; justify-content: space-between; > div { box-shadow: 2px 0px 10px 1px rgba(0, 0, 0, 0.1); border-radius: 3px; margin-bottom: 3px; &.one, &.two { height: 12.2%; min-height:104px; // background-color: yellow; } &.three, &.four { // height: 37.3%; flex: 1; // background-color: blue; } } } </style>