From 96f859c928f33a690331abc5e69add5b18b437ba Mon Sep 17 00:00:00 2001 From: houyusheng <1440248234@qq.com> Date: Wed, 5 Oct 2022 21:36:51 +0800 Subject: [PATCH] fix: #17667 EChartsInitOpts type error about height and width --- src/core/echarts.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/echarts.ts b/src/core/echarts.ts index 65ac63f857..e36d03607e 100644 --- a/src/core/echarts.ts +++ b/src/core/echarts.ts @@ -328,8 +328,8 @@ type EChartsInitOpts = { useCoarsePointer?: boolean, pointerSize?: number, ssr?: boolean, - width?: number, - height?: number + width?: number | string, + height?: number | string }; class ECharts extends Eventful {