div 设置自适应高度 ,height: 100vh

2021-02-07  本文已影响0人  lancelot123

div 设置自适应高度 ,height: 100vh

<template>
  <div class="mod-config">
    <el-row>
      <el-col>
        <div class="showBtResponse"></div>
      </el-col>
    </el-row>
    <el-row class="bottomContent">
      <el-input v-model="btCmd" placeholder="请输入BT指令" type="textarea" :rows="2"></el-input>
      <el-button>发送</el-button>
    </el-row>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        btCmd: ""
      }
    },
    components: {},
    activated() {
      this.getData()
    },
    methods: {}
  }
</script>
<style scoped>
  .showBtResponse {
    width: 100%;
    border: 1px solid black;
    height: 65vh;
  }
  .bottomContent{

  }
</style>

上一篇下一篇

猜你喜欢

热点阅读