<template>
  <div>
    <el-dialog title=""
               :visible.sync="isShowImg"
               width="600px"
               :append-to-body='true'
               :before-close="handleClose">
      <div class="box">
        <img :src="initContenta"
             alt="">
      </div>

    </el-dialog>
  </div>
</template>

<script>
export default {
  name: "",
  props: {
    isShowImg: {
      type: Boolean,
      default: false,
    },
    initContenta: {
      type: String,
      default: false,
    },
  },
  data() {
    return {};
  },
  methods: {
    handleClose() {
      console.log("执行了");
      this.$emit("noShowImg");
    },
  },
};
</script>
<style lang="scss" scoped>
.box {
  text-align: center;
  img {
    width: 500px;
    height: 500px;
  }
  .name {
    font-size: 22px;
    text-align: center;
    // font-weight: 500;
    // color: #5454fb;

    span {
      margin-left: 10px;
    }
  }
  .type {
    margin-top: 15px;
    font-size: 17px;
    span {
      margin-left: 10px;
    }
  }
  .nameType {
    margin-top: 15px;
    font-size: 17px;

    span {
      margin-left: 10px;
    }
  }
  .menuTitle {
    margin-top: 15px;
    font-size: 17px;
  }
  .money {
    font-size: 15px;
  }
  .button-box {
    display: flex;
    margin-left: 350px;
  }
  .button {
    width: 100px;
    height: 40px;
    // background-color: #03b615;
    // color: #ffffff;
    padding: 5px 10px;
    // margin-left: 120px;
    margin-top: 20px;
    // margin-left: 450px;
  }
}
</style>
