优化弹框关闭图表

This commit is contained in:
ym1026
2025-09-01 17:18:30 +08:00
parent 4ca96a267f
commit cc9a30e205
3 changed files with 16 additions and 7 deletions

View File

@@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" />
<link rel="icon" href="<%= BASE_URL %>favicon.ico" /> <link rel="icon" href="<%= BASE_URL %>favicon.ico" />
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
<link rel="stylesheet" href="http://at.alicdn.com/t/c/font_5010233_d9pawp3ats.css" /> <link rel="stylesheet" href="http://at.alicdn.com/t/c/font_5010233_fpzrc14sfwj.css" />
</head> </head>
<body> <body>
<noscript> <noscript>

View File

@@ -11,11 +11,16 @@
v-model:open="showCtrModal" v-model:open="showCtrModal"
:destroy-on-close="true" :destroy-on-close="true"
:get-container="() => $refs.mapContent" :get-container="() => $refs.mapContent"
:closable="false"
:footer="null" :footer="null"
:title="testVal.name" :title="testVal.name"
:mask="true" :mask="true"
> >
<template #closeIcon>
<i
class="iconfont icon-guanbi"
style="font-size:20px; cursor: pointer; color: #fff; "
/>
</template>
<div class="modal-content"> <div class="modal-content">
<div class="home-modal"> <div class="home-modal">
<Modal></Modal> <Modal></Modal>
@@ -103,7 +108,11 @@ export default {
margin: auto; margin: auto;
box-shadow: none; box-shadow: none;
background: transparent; background: transparent;
.ant-modal-close{
position: absolute;
right: 0;
top: 3px;
}
.ant-modal-body { .ant-modal-body {
height: calc(100% - 45px); height: calc(100% - 45px);
color: #fff; color: #fff;

View File

@@ -1,10 +1,10 @@
import { createRouter, createWebHistory } from 'vue-router' import { createRouter, createWebHistory } from 'vue-router'
export const routes = [ export const routes = [
// { {
// path: '/', path: '/',
// redirect: '/main' redirect: '/main/Home'
// }, },
{ {
path: '/login', path: '/login',
name: 'login', name: 'login',