Newer
Older
smartwell_front / src / views / zhangqiu / components / showItem.vue
liuyangyingjie on 16 Aug 2022 1 KB feat(view): 新增章丘驾驶舱看板
<template>
  <div class="showItem">
          <div class="box">
             <img class="border" src="@/views/zhangqiu/resources/border.png" alt=""/>
              <div class="showItem_content">
                <div class="title">
                  <img class="title_bg" src="@/views/zhangqiu/resources/littleTitle.png" alt="小标题背景"/>
                   <slot name="default">已安装设备</slot>
                </div>
                <div class="showItem_container">
                <slot name="container"></slot>
                </div>
              </div>
          </div>
        </div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
.showItem{
  margin-top: 10px;
   width: 400px;
   height: 32%;
   .box{
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
   }
   .showItem_content{
    width: 100%;
    height: 100%;
    padding: 0 20px;
    box-sizing: border-box;
    .title{
      width: 100%;
      position: relative;
      color: #fff;
      font-size: 15px;
      text-align: left;
      height: 50px;
      line-height: 50px;
      font-weight: bold;
      .title_bg{
        position: absolute;
        width: 80%;
        height: 100%;
      }

    }
   }
 .border{
  position:absolute;
  width: 100%;
  height: 100%;
 }
}
</style>