From d76045be1cd5a030ed68269246d7ae1956a5ff06 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 15 十二月 2021 11:00:26 +0800 Subject: [PATCH] 2021-12-15 --- src/tabviews/custom/components/chart/antv-pie/index.scss | 58 ++++++++++++---------------------------------------------- 1 files changed, 12 insertions(+), 46 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-pie/index.scss b/src/tabviews/custom/components/chart/antv-pie/index.scss index 5db4d2f..223d368 100644 --- a/src/tabviews/custom/components/chart/antv-pie/index.scss +++ b/src/tabviews/custom/components/chart/antv-pie/index.scss @@ -12,14 +12,20 @@ margin: 0 0px; position: relative; flex: 1; - .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; } } @@ -27,6 +33,7 @@ margin: 0; padding: 15px; letter-spacing: 0px; + height: 100%; } .canvas.empty { div { @@ -60,47 +67,6 @@ height: 100%; opacity: 0.5; background: #ffffff; - } - } - > .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