<template> <div class="container"> <div class="title"> AIS数据接收 <div ref="circle" class="circle" :style="{'background-color': color}"/> </div> <position class="position"/> <weather class="weather"/> <water class="water"/> </div> </template> <script> import Position from '@/views/overview/position' import Weather from '@/views/overview/weather' import Water from '@/views/overview/water' export default { name: 'Left', components: { Weather, Water, Position}, data() { return { color: '#00ff01' } }, created() { }, methods: { } } </script> <style rel="stylesheet/scss" lang="scss" scoped> .container{ display: flex; flex-direction: column; .title{ margin: 10px 0px 0px 50px; color: white; font-size: 18px; display: flex; .circle{ width: 18px; height: 18px; border-radius: 50%; display: inline-block; margin-right: 5px; margin-left: 10px; } } .position{ margin: 10px 0px; width: 100%; height: 25%; } .weather{ margin: 10px 0px; width: 100%; height: 30%; } .water{ margin: 10px 0px; width: 100%; height: 45%; } } </style>