<template>
  <Modal :options="getModelOptions">
    <template #Context>
      添加用户
    </template>
  </Modal>
</template>

<script>
import Modal from '@/components/Modal/index.vue'
import { defineComponent, computed } from 'vue'
export default {
  name: 'UserModal',
  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>
