<template>
  <Modal :options="getModalOptions">
    <template #Context>
      111
    </template>
  </Modal>
</template>

<script>
import { defineComponent, computed } from 'vue'
import Modal from '@/components/Modal/index.vue'
export default defineComponent({
  name: 'MenuModal',
  components: { Modal },
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    row: {
      type: Object,
      default: () => {}
    }
  },
  emits: {
    'update:visible': null,
    onClose: null,
    done: null
  },
  setup(props, { emit }) {
    const getModalOptions = computed(() => {
      return {
        visible: props.visible
      }
    })

    /* 关闭弹窗 */
    const handleClose = () => {
      // vodModal.value.handleUploadCancel()
      emit('update:visible', false)
    }

    return {
      getModalOptions
    }
  }
})
</script>
<style scoped lang='scss'>
</style>
