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-dashboard/index.scss | 72 ++++++----------------------------- 1 files changed, 13 insertions(+), 59 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-dashboard/index.scss b/src/tabviews/custom/components/chart/antv-dashboard/index.scss index 10db44d..89aa840 100644 --- a/src/tabviews/custom/components/chart/antv-dashboard/index.scss +++ b/src/tabviews/custom/components/chart/antv-dashboard/index.scss @@ -12,14 +12,21 @@ 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,21 +34,9 @@ margin: 0; padding: 15px; letter-spacing: 0px; + height: 100%; } - .canvas.empty { - div { - opacity: 0; - } - } - .ant-empty { - position: absolute; - top: calc(50% - 34px); - left: calc(50% - 92px); - .ant-empty-image { - height: 60px; - } - } .loading-mask { position: absolute; left: 0px; @@ -60,47 +55,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