From 5e4a9ba91a2f692dfb7ecdb2fd391872ead10d09 Mon Sep 17 00:00:00 2001 From: cuiyuanyuan Date: Tue, 9 Nov 2021 16:39:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DthemeColor=E5=A4=A7?= =?UTF-8?q?=E4=BA=8E10=E6=97=B6=EF=BC=8C=E6=B5=8F=E8=A7=88=E5=99=A8?= =?UTF-8?q?=E5=B4=A9=E6=BA=83=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/element/ChartElement/Chart.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/components/element/ChartElement/Chart.vue b/src/views/components/element/ChartElement/Chart.vue index 2beebe3c..1d1ab3cf 100644 --- a/src/views/components/element/ChartElement/Chart.vue +++ b/src/views/components/element/ChartElement/Chart.vue @@ -129,7 +129,7 @@ export default defineComponent({ const themeColors = computed(() => { let colors: string[] = [] - if (props.themeColor.length === 10) colors = props.themeColor + if (props.themeColor.length >= 10) colors = props.themeColor else if (props.themeColor.length === 1) colors = tinycolor(props.themeColor[0]).analogous(10).map(color => color.toHexString()) else { const len = props.themeColor.length