Skip to content

Commit

Permalink
fix(ECharts): inherit echarts-for-react props
Browse files Browse the repository at this point in the history
  • Loading branch information
SevenOutman committed Jun 17, 2022
1 parent fcc6a2c commit 3c574b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ECharts.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React, { useContext, useImperativeHandle, useRef } from 'react';
import _merge from 'lodash.merge';
import ReactEchartsCore from 'echarts-for-react/lib/core';
import type { EChartsReactProps } from 'echarts-for-react';
import * as echarts from 'echarts/core';
import type { ECharts as EChartsInstance, EChartsOption, SeriesOption } from 'echarts';
import { CanvasRenderer } from 'echarts/renderers';
Expand Down Expand Up @@ -35,7 +36,7 @@ const defaultOption = {
},
};

export interface EChartsProps extends React.HTMLAttributes<HTMLDivElement> {
export interface EChartsProps extends Omit<EChartsReactProps, 'option'> {
height?: number;
loading?: boolean;
option?: EChartsOption;
Expand Down

0 comments on commit 3c574b4

Please sign in to comment.