From 4fab6c272b1068bd90b592436623b36de1e5921b Mon Sep 17 00:00:00 2001 From: Justineo Date: Sun, 8 Jan 2023 23:38:03 +0800 Subject: [PATCH] chore: make emit type a little more consistent with runtime --- src/ECharts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ECharts.ts b/src/ECharts.ts index 237d068..1f576f5 100644 --- a/src/ECharts.ts +++ b/src/ECharts.ts @@ -68,7 +68,7 @@ export default defineComponent({ ...autoresizeProps, ...loadingProps }, - emits: [] as unknown as Emits, + emits: {} as unknown as Emits, inheritAttrs: false, setup(props, { attrs }) { const root = shallowRef();