From 72419e2f826031a158173f46d723a672064e37cd Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 31 八月 2021 22:42:51 +0800 Subject: [PATCH] 2021-08-31 --- src/tabviews/custom/components/chart/antv-bar-line/index.scss | 55 ++++++++++++------------------------------------------- 1 files changed, 12 insertions(+), 43 deletions(-) diff --git a/src/tabviews/custom/components/chart/antv-bar-line/index.scss b/src/tabviews/custom/components/chart/antv-bar-line/index.scss index 24f4113..093ce92 100644 --- a/src/tabviews/custom/components/chart/antv-bar-line/index.scss +++ b/src/tabviews/custom/components/chart/antv-bar-line/index.scss @@ -5,21 +5,27 @@ background-repeat: no-repeat; background-size: cover; min-height: 100px; + display: flex; + flex-flow: column; .canvas-wrap { margin: 0 0px; position: relative; + flex: 1; .chart-action { position: absolute; - top: 2px; + top: 0px; right: 5px; z-index: 1; + .ant-btn { + float: right; + } } } .canvas { margin: 0; - padding: 20px 15px 15px; + padding: 15px 10px 10px; letter-spacing: 0px; } .canvas.empty { @@ -42,6 +48,10 @@ top: 0; right: 0px; bottom: 0px; + display: flex; + align-items: center; + justify-content: center; + text-align: justify; z-index: 1; .ant-spin-blur { @@ -50,47 +60,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