detailDialog.vue 544 Bytes
<template>
  <!-- 编辑 -->
  <dialogBox title="操作内容" @closeDialog="closeDialog" @submitForm="handleSubmit" v-model="myValue">
    <p>2</p>
  </dialogBox>
</template>

<script>
export default {
  props: {
    value: { type: Boolean, default: false },
  },
  data () {
    return {
      myValue: this.value,
    }
  },
  watch: {
    value (val) {
      this.myValue = val
    }
  },
  methods: {
    closeDialog () {
      this.$emit('input', false)
    },
    handleSubmit () {
      this.$emit('input', false)
    }
  }
}
</script>