mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
chore: 修复编译报错
This commit is contained in:
parent
40e9ef2887
commit
ba3206439f
@ -269,7 +269,7 @@ export class Chart extends React.Component<ChartProps> {
|
|||||||
await env.loadChartExtends();
|
await env.loadChartExtends();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.echarts = echarts.init(ref, theme);
|
this.echarts = (echarts as any).init(ref, theme);
|
||||||
|
|
||||||
if (typeof onChartMount === 'string') {
|
if (typeof onChartMount === 'string') {
|
||||||
onChartMount = new Function('chart', 'echarts') as any;
|
onChartMount = new Function('chart', 'echarts') as any;
|
||||||
|
Loading…
Reference in New Issue
Block a user