From f3d4db769ba9b51b799d981511a710fd443d0e08 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 21 四月 2025 12:18:03 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/tabviews/custom/components/chart/antv-pie/index.scss | 86 +++++++----------------------------------- 1 files changed, 15 insertions(+), 71 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-pie/index.scss b/src/tabviews/custom/components/chart/antv-pie/index.scss index bf252bb..38e9566 100644 --- a/src/tabviews/custom/components/chart/antv-pie/index.scss +++ b/src/tabviews/custom/components/chart/antv-pie/index.scss @@ -1,40 +1,28 @@ .custom-pie-chart-plot-box { + position: relative; background: #ffffff; background-position: center center; background-repeat: no-repeat; background-size: cover; min-height: 100px; - - > .chart-header { - height: 45px; - border-bottom: 1px solid #e8e8e8; - overflow: hidden; - text-decoration: inherit; - font-weight: inherit; - font-style: inherit; - - .chart-title { - // font-size: 16px; - float: left; - line-height: 45px; - margin-left: 10px; - text-decoration: inherit; - font-weight: inherit; - font-style: inherit; - } - } .canvas-wrap { margin: 0 0px; position: relative; - .chart-action { + .download { position: absolute; - top: 2px; - right: 5px; z-index: 1; + right: 10px; + top: 10px; + opacity: 0; + transition: opacity 0.3s; + cursor: pointer; + font-size: 16px; } - .chart-action.with-title { - top: 35px; + } + .canvas-wrap:hover { + .download { + opacity: 1; } } @@ -59,10 +47,10 @@ } .loading-mask { position: absolute; - left: 20px; + left: 0px; top: 0; - right: 20px; - bottom: 30px; + right: 0px; + bottom: 0px; display: flex; align-items: center; justify-content: center; @@ -75,50 +63,6 @@ height: 100%; opacity: 0.5; background: #ffffff; - } - } - .chart-title + .loading-mask { - top: 40px; - } - > .ant-select { - width: 150px; - float: right; - position: relative; - z-index: 1; - .ant-select-selection { - min-height: 24px; - height: 28px; - li { - background: unset; - border: 0; - width: 99%; - padding: 0; - margin-right: 0; - cursor: pointer; - - .type-label { - overflow: hidden; - word-break: break-word; - white-space: nowrap; - text-overflow: ellipsis; - } - } - li + li { - margin-top: 0; - width: 1%; - opacity: 0; - } - } - } - > .ant-select.ant-select-focused { - .ant-select-selection { - li { - width: 50%; - } - li + li { - width: 49%; - opacity: 1; - } } } .g2-tooltip-list{ -- Gitblit v1.8.0