ViewLineGroup.vue 668 Bytes
<template>
  <div class="line-group">
    <template v-for="(i,index) in items">
      <div
        class="box"
        :key="index"
        :style="[{'height':height},{'margin-bottom':hideMargin?0:'1vh'}]"
      ></div>
    </template>
  </div>
</template>

<script type='text/ecmascript-6'>
export default {
  name: 'ViewLineGroup',
  props: {
    height: {
      type: String,
      default: '19.8vh'
    },
    hideMargin: Boolean
  },
  data () {
    return {
      items: [1, 2]
    }
  },
  mounted () {
  },
  methods: {
  }
}
</script>

<style scoped lang='scss'>
.line-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 8px;
}
</style>