We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e44b428 commit 90e2dbdCopy full SHA for 90e2dbd
src/echart.tsx
@@ -3,19 +3,11 @@ import { useECharts } from './use-echarts'
3
4
// Types
5
import type { UseEChartsOptions } from './use-echarts'
6
+import type { EChartsEventProp } from './events'
7
import type { FC, HTMLAttributes } from 'react'
8
-type ContainerProps = Omit<
9
- HTMLAttributes<HTMLDivElement>,
10
- | 'title'
11
- | 'onClick'
12
- | 'onDoubleClick'
13
- | 'onMouseDown'
14
- | 'onMouseMove'
15
- | 'onMouseOut'
16
- | 'onMouseOver'
17
->
18
-export type EChartProps = ContainerProps & UseEChartsOptions
+export type EChartProps = UseEChartsOptions &
+ Omit<HTMLAttributes<HTMLDivElement>, EChartsEventProp & UseEChartsOptions>
19
20
export const EChart: FC<EChartProps> = ({
21
// Init
0 commit comments