From f450118a3b5862332ac7fee2c48d7e44a9ce9f8d Mon Sep 17 00:00:00 2001 From: Justineo Date: Fri, 19 Feb 2021 18:10:32 +0800 Subject: [PATCH] fix: add getDom method, remove classname --- src/ECharts.ts | 5 +---- src/composables/api.ts | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ECharts.ts b/src/ECharts.ts index 87b05aa..d795168 100644 --- a/src/ECharts.ts +++ b/src/ECharts.ts @@ -186,9 +186,6 @@ export default defineComponent({ }; }, render() { - return h("div", { - ref: "root", - class: "echarts" - }); + return h("div", { ref: "root" }); } }); diff --git a/src/composables/api.ts b/src/composables/api.ts index e5b54bb..9500de5 100644 --- a/src/composables/api.ts +++ b/src/composables/api.ts @@ -5,6 +5,7 @@ import { EChartsType, OptionType } from "../types"; const METHOD_NAMES = [ "getWidth", "getHeight", + "getDom", "getOption", "resize", "dispatchAction",