|
@@ -1,9 +1,12 @@
|
|
|
<script lang="ts" setup>
|
|
|
+import { ref } from 'vue';
|
|
|
+
|
|
|
import { useVbenModal } from '@vben/common-ui';
|
|
|
|
|
|
-import { message } from 'ant-design-vue';
|
|
|
+import { Input, message } from 'ant-design-vue';
|
|
|
|
|
|
const [Modal, modalApi] = useVbenModal({
|
|
|
+ destroyOnClose: false,
|
|
|
onCancel() {
|
|
|
modalApi.close();
|
|
|
},
|
|
@@ -12,6 +15,7 @@ const [Modal, modalApi] = useVbenModal({
|
|
|
// modalApi.close();
|
|
|
},
|
|
|
});
|
|
|
+const value = ref();
|
|
|
</script>
|
|
|
<template>
|
|
|
<Modal
|
|
@@ -21,5 +25,6 @@ const [Modal, modalApi] = useVbenModal({
|
|
|
title-tooltip="标题提示内容"
|
|
|
>
|
|
|
此弹窗指定在内容区域打开
|
|
|
+ <Input v-model="value" placeholder="KeepAlive测试" />
|
|
|
</Modal>
|
|
|
</template>
|