弹窗bug

new-map
ihzero 2023-05-23 13:27:32 +08:00
parent 28fcea4abe
commit 03af77aaa9
1 changed files with 2 additions and 10 deletions

View File

@ -20,12 +20,6 @@
<Tooltip title="最大化" placement="bottom" v-else>
<FullscreenOutlined role="close" @click="handleFull" />
</Tooltip>
<!-- <SvgIcon
@click="handleFull"
name="full-screen"
class="text-[#76E9F0] cursor-pointer"
:size="22"
/> -->
</div>
<img
@click="closeModal"
@ -52,14 +46,12 @@
<script lang="ts">
import { defineComponent, computed, ref, unref, watchEffect } from 'vue'
import { SvgIcon } from '/@/components/Icon'
import { Modal, Tooltip } from 'ant-design-vue'
import { FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons-vue'
export default defineComponent({
components: {
[Modal.name]: Modal,
SvgIcon,
Tooltip,
FullscreenExitOutlined,
FullscreenOutlined,
@ -72,7 +64,7 @@
type: String,
},
},
setup(props, { attrs }) {
setup(props, { attrs, emit }) {
const modelVisible = ref(false)
const isFull = ref(false)
@ -90,7 +82,7 @@
return props.url
})
const closeModal = () => {
modelVisible.value = false
emit('update:visible', false)
}
watchEffect(() => {