From 678e7ea48be68af9bf443ce27dbd3a979c9a66b7 Mon Sep 17 00:00:00 2001 From: pipipi-pikachu Date: Fri, 27 Aug 2021 14:05:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AF=BC=E5=87=BAPPTX=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E8=83=8C=E6=99=AF=E5=A1=AB=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hooks/useExport.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hooks/useExport.ts b/src/hooks/useExport.ts index 56c65312..5427c0aa 100644 --- a/src/hooks/useExport.ts +++ b/src/hooks/useExport.ts @@ -399,6 +399,8 @@ export default () => { chartColors: el.chartType === 'pie' ? chartColors : chartColors.slice(0, el.data.series.length), } + if (el.fill) options.fill = formatColor(el.fill).color + let type = pptx.ChartType.bar if (el.chartType === 'bar') { type = pptx.ChartType.bar