Newer
Older
smartwell_front / src / views / zhangqiu / components / showItem.vue
<template>
  <div class="showItem">
    <div class="box">
      <img class="border" :src="require('@/assets/zhangqiu/border.png')" alt="">
      <div class="showItem_content">
        <div class="title">
          <img class="title_bg" :src="require('@/assets/zhangqiu/littleTitle.png')">
          <slot name="default">
            已安装设备
          </slot>
        </div>
        <div class="showItem_container">
          <slot name="container" />
        </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>