2022-05-24 10:12:03 +08:00
|
|
|
<template>
|
|
|
|
|
<Modal :options="getModelOptions">
|
|
|
|
|
<template #Context>
|
|
|
|
|
添加用户
|
|
|
|
|
</template>
|
|
|
|
|
</Modal>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2022-05-24 10:23:04 +08:00
|
|
|
import Modal from '@/components/CardModal/index.vue'
|
2022-05-24 10:12:03 +08:00
|
|
|
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>
|