|
@@ -7,7 +7,7 @@
|
|
|
@mousedown="handleDragMouseDown"
|
|
|
>
|
|
|
<div class="tw-text-2xl tw-cursor-move">{{ title }}</div>
|
|
|
- <a-button shape="circle" @click="close">
|
|
|
+ <a-button shape="circle" @click="$emit('close')">
|
|
|
<template #icon><CloseOutlined /></template>
|
|
|
</a-button>
|
|
|
</header>
|
|
@@ -38,11 +38,8 @@ export default defineComponent({
|
|
|
width: { type: String, default: "30%" },
|
|
|
height: { type: String, default: "30%" },
|
|
|
},
|
|
|
+ emits: ["close"],
|
|
|
setup({ top, width, height, title }) {
|
|
|
- const close = () => {
|
|
|
- store.setting.uiSetting["answer.paper.modal"] = false;
|
|
|
- };
|
|
|
-
|
|
|
const positionStyle = reactive({
|
|
|
top,
|
|
|
left: "10%",
|
|
@@ -140,7 +137,6 @@ export default defineComponent({
|
|
|
});
|
|
|
|
|
|
return {
|
|
|
- close,
|
|
|
positionStyle,
|
|
|
mouseHandler,
|
|
|
resizeHandler,
|
|
@@ -153,7 +149,7 @@ export default defineComponent({
|
|
|
|
|
|
<style scoped>
|
|
|
.dialog-container {
|
|
|
- z-index: 9000;
|
|
|
+ z-index: 1000;
|
|
|
position: absolute;
|
|
|
min-width: 100px;
|
|
|
background-color: white;
|