Files
admin-vben5/playground/src/views/examples/modal/drag-demo.vue

20 lines
421 B
Vue
Raw Normal View History

<script lang="ts" setup>
import { useVbenModal } from '@vben/common-ui';
import { message } from 'ant-design-vue';
const [Modal, modalApi] = useVbenModal({
draggable: true,
onCancel() {
modalApi.close();
},
onConfirm() {
message.info('onConfirm');
// modalApi.close();
},
});
</script>
<template>
<Modal title="可拖拽示例"> 鼠标移动到 header 可拖拽弹窗 </Modal>
</template>