<template>
  <div class="emptWrap">
    <div class="emptLeft">
      <h2>{{ title }}</h2>
      <p>{{ context }}</p>
      <el-button type="primary" @click="addSome">{{ btnTitle }}</el-button>
    </div>
    <div class="emptRight">
      <div class="imgWrap">
        <img src="./emptyPage_bg.png" width="100%" alt="">
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ["title", "btnTitle", "context"],
  data() {
    return {};
  },
  methods:{
    addSome(){
      this.$emit('submit')
    }
  }
};
</script>
<style lang="less" scoped>
.emptWrap {
  justify-content: center;
  background-color: #fff;
  padding: 85px 0 100px;
  display: flex;
  flex-direction: row;
  .emptLeft {
    margin-top: 80px;
    width: 365px;
    margin-right: 20px;
    h2 {
      font-size: 32px;
      font-family: PingFangSC-Semibold, PingFang SC;
      font-weight: 600;
      color: #000000;
      line-height: 45px;
      margin-bottom: 20px;
    }
    p {
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: #666666;
      line-height: 24px;
      margin-bottom: 30px;
    }
  }
}
.imgWrap {
  width: 573px;
  height: 375px;
  img {
    width: 100%;
  }
}
</style>
