chore: 修复编译报错

This commit is contained in:
吴多益 2021-09-24 13:43:24 +08:00 committed by GitHub
parent 40e9ef2887
commit ba3206439f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -269,7 +269,7 @@ export class Chart extends React.Component<ChartProps> {
await env.loadChartExtends();
}
this.echarts = echarts.init(ref, theme);
this.echarts = (echarts as any).init(ref, theme);
if (typeof onChartMount === 'string') {
onChartMount = new Function('chart', 'echarts') as any;