🎈 perf:优化iframe布局

This commit is contained in:
preschooler
2024-08-21 13:29:15 +08:00
parent 65f1863327
commit eb9a9257de
8 changed files with 35 additions and 30 deletions

View File

@ -106,14 +106,8 @@
<el-button @click="submitForm" type="primary" :disabled="formLoading"> </el-button>
<el-button @click="dialogVisible = false"> </el-button>
</template>
<el-dialog
v-model="mapDialogVisible"
title="获取经纬度"
append-to-body
width="500px"
class="mapBox"
>
<iframe id="mapPage" width="100%" height="100%" frameborder="0" :src="tencentLbsUrl"></iframe>
<el-dialog v-model="mapDialogVisible" title="获取经纬度" append-to-body>
<IFrame class="h-609px" :src="tencentLbsUrl" />
</el-dialog>
</Dialog>
</template>
@ -266,8 +260,3 @@ onMounted(async () => {
await initTencentLbsMap()
})
</script>
<style lang="scss">
.mapBox .el-dialog__body {
height: 640px !important;
}
</style>