<template>
  <div class="delete_modal" v-if="modalFlag"  @mousewheel="mousewheel">
    <div class="modal_content">
      <div class="text">
        <p>确定删除？</p>
      </div>
      <div class="btn">
        <div
            class="current_button"
            @click="submit"
            style="margin: 0"
        >确定</div>
        <div
            class="current_button"
            style="margin: 0"
            @click="hideModal"
        >取消
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    modalFlag: {
      type: Boolean,
      default: true,
    }
  },
  data() {
    return {
      carType: "",
    };
  },
  methods: {
    submit: function () {
      this.$emit("detlet_data");
    },
    hideModal: function () {
      this.$emit("hide_modal");
    },
        mousewheel: function (e) {
      e.preventDefault();
    },
  },
};
</script>

<style scoped lang="less">
.delete_modal {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(127, 127, 127, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  .modal_content {
    width: 600px;
    height: 300px;
    background-color: #fff;
    transform: translateY(-50px);
    .text {
      margin: 0 auto;
      margin-top: 80px;
      display: flex;
      height: 28px;
      p {
        width: 80px;
        height: 28px;
        font-size: 16px;
        line-height: 28px;
        margin-left: 150px;
      }
    }
    .btn {
      padding-left: 80px;
      margin: 0 auto;
      width: 150px;
      margin-top: 30px;
      display: flex;
      justify-content: space-between;
      button {
        margin: 0!;
      }
    }
  }
}
</style>
