From 1f7e2b4d8440f2eb95dfa366513541778368e2fe Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 13 May 2022 14:55:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=9A=E5=BB=BA=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bigscreen/designer/components/Add.vue | 2 +- .../designer/components/RenderElement.vue | 7 +++++- .../AiEchart/template/pie/pieChart1.js | 7 ++---- .../AiEchart/template/pie/pieChart3.js | 25 ++++++------------- .../AiDvSummary/components/Summary11.vue | 2 +- 5 files changed, 18 insertions(+), 25 deletions(-) diff --git a/packages/bigscreen/designer/components/Add.vue b/packages/bigscreen/designer/components/Add.vue index 2ef44329..ec66be32 100644 --- a/packages/bigscreen/designer/components/Add.vue +++ b/packages/bigscreen/designer/components/Add.vue @@ -159,7 +159,7 @@ export default { }, mounted () { - + }, methods: { diff --git a/packages/bigscreen/designer/components/RenderElement.vue b/packages/bigscreen/designer/components/RenderElement.vue index 622c6a70..03dc5cac 100644 --- a/packages/bigscreen/designer/components/RenderElement.vue +++ b/packages/bigscreen/designer/components/RenderElement.vue @@ -210,6 +210,7 @@ headerHeight: 42, rowNum: rowNum || 7, index: isShowIndex === '1', + waitTime: 8000, carousel: 'page', indexHeader: '排名', align: ['center', 'center', 'center', 'center', 'center'] @@ -244,8 +245,12 @@ -webkit-background-clip: text; -webkit-text-fill-color: transparent; + & > div:nth-of-type(2n - 1) { + background-color: transparent!important; + } + & > div:nth-of-type(2n) { - background: rgba(0, 0, 0, 0.1)!important; + background-color: rgba(0, 0, 0, 0.1)!important; } .index { diff --git a/project/dvui/components/AiEchart/template/pie/pieChart1.js b/project/dvui/components/AiEchart/template/pie/pieChart1.js index 3f02649d..c79fa1a6 100644 --- a/project/dvui/components/AiEchart/template/pie/pieChart1.js +++ b/project/dvui/components/AiEchart/template/pie/pieChart1.js @@ -1,7 +1,7 @@ export default { legend: { - right: 0, - top: '30%', + right: 20, + top: 'middle', orient: 'vertical', textStyle: {color: "#fff", fontSize: 14} }, @@ -14,9 +14,6 @@ export default { xAxis: {show: false}, yAxis: {show: false}, tooltip: { - backgroundColor: "rgba(14, 51, 111, 0.9)", - borderColor: "#1A6ABC", - textStyle: {color: "#fff"} }, series: { type: "pie", diff --git a/project/dvui/components/AiEchart/template/pie/pieChart3.js b/project/dvui/components/AiEchart/template/pie/pieChart3.js index 0e1b712b..88417746 100644 --- a/project/dvui/components/AiEchart/template/pie/pieChart3.js +++ b/project/dvui/components/AiEchart/template/pie/pieChart3.js @@ -1,19 +1,19 @@ export default { legend: { - right: 0, - top: '30%', + right: 20, + top: 'middle', orient: 'vertical', textStyle: {color: "#fff", fontSize: 14} }, grid: { - height: 260 + top: '0%', + left: '0%', + right: '0px', + bottom: '0%' }, xAxis: {show: false}, yAxis: {show: false}, tooltip: { - backgroundColor: "rgba(14, 51, 111, 0.9)", - borderColor: "#1A6ABC", - textStyle: {color: "#fff"} }, series: { type: "pie", @@ -26,16 +26,7 @@ export default { label: { show: false }, - labelLine: {}, - labelLayout: function (params) { - let points = params.labelLinePoints, - isLeft = points[2][0] < points[1][0] - points[2][0] = - points[2][0] + (params.labelRect.width + 4) * (isLeft ? -1 : 1) - return { - labelLinePoints: points - } - } + labelLine: {} }, render: (h, params) => { const formatNum = num => { @@ -62,7 +53,7 @@ export default { color: "#8BCCFF", left: "50%", top: "50%", - zIndex: '0', + zIndex: '-1', display: "flex", alignItems: "center", justifyContent: "center", diff --git a/project/dvui/layout/AiDvSummary/components/Summary11.vue b/project/dvui/layout/AiDvSummary/components/Summary11.vue index 79670553..492bd541 100644 --- a/project/dvui/layout/AiDvSummary/components/Summary11.vue +++ b/project/dvui/layout/AiDvSummary/components/Summary11.vue @@ -76,7 +76,6 @@ .middle { flex: 1; - // padding: 0 8px; text-align: center; h2 { @@ -93,6 +92,7 @@ p { margin: 8px 0 4px; font-size: 32px; + text-align: center; font-weight: bold; color: #CEE1FF; line-height: 35px;