<template>
    <popup v-if="show">
      <div @touchmove.stop class="ui-message ui-message-confirm" style="width: 90%">
        <div class="ui-message-header">
          <span>{{title}}</span>
          <span @click="$emit('close')">
            <i class="iconfont icon-close"></i>
          </span>
        </div>
        <div class="ui-message-main">
          <slot name="content" />
        </div>
      </div>
    </popup>
</template>

<script>
import Popup from "@/components/shared/popup";

export default {
  props:['show','title'],
  components:{
    Popup
  },
  data(){
    return {
      key:''
    }
  },
  methods:{
    
  }
}
</script>

<style lang="less" scoped>
.ui-message-confirm{
  padding: 0;
  border-radius: 0;
  .icon-close{
    color: #909090;
  }
  

  .ui-message-header{
    border-bottom: 1px solid #EBEBEB;
    padding: 12px 20px 12px 30px;
    >span{
      margin: 0;
    }
  }
  .ui-message-main{
    margin: 20px auto;
    background: #fff;
    
  }
  .ui-message-footer{
    width: 100%;
    .btn{
      width: 80%;
      display: flex;
      justify-content: center;
      margin: 0 auto;
      .ui-button{
        max-width: 104px
      }
    }

  }
}
</style>

<style lang="less" scoped>
.con {
  padding: 24px 30px;
  .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .icon-close{
      color: #202020;
    }
  }
  .btn{
    margin-top: 18px;
    .ui-button{
      position: relative;
      &:hover{
        .upload-list{
          display: block;
        }
      }
    }
  }
  
  >.list{
    margin-top: 20px;
    .img{
      width: 60px;
      height: 60px;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      >img{
        position: absolute;
        height: 100%;
        transform: translate(-50%,-50%);
        top: 50%;
        left: 50%;
      }
    }
    .audio{
      position: relative;
      width: 60px;
      height: 60px;
      i{
        font-size: 24px;
        position: absolute;
        transform: translateY(-50%);
        top: 50%;
        left: 5px;
        cursor: pointer;
      }
    }
  }
}

.cancel{
  background: #EBEBEB;

}

.ui-button-rect{
  border-radius: 0;
  align-items: center;
  vertical-align: middle;
  color: #202020;
  display: flex;
  justify-content: center;
  padding: 0 20px;
  line-height: 32px;
  height: 32px;
  border: none;
  text-align: center;
  >i{
    margin-left: 5px;
  }
}


.ui-message-header{
  font-weight: bold;
  font-size: 16px;
}


</style>