Skip to content

Commit b3a10f3

Browse files
committed
fix: fix inner wrapper styles
1 parent 8132842 commit b3a10f3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/ECharts.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ export default defineComponent({
307307
) as any;
308308
attrs.ref = "root";
309309
attrs.class = attrs.class ? ["echarts"].concat(attrs.class) : "echarts";
310-
return h(TAG_NAME, attrs, [h("div", { ref: "inner" })]);
310+
return h(TAG_NAME, attrs, [
311+
h("div", { ref: "inner", class: "echarts-inner" })
312+
]);
311313
}
312314
});

src/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
x-vue-echarts{display:block;width:100%;height:100%;min-width:0}x-vue-echarts>[_echarts_instance_]{width:100%;height:100%}
1+
x-vue-echart,.echarts-inner{display:block;width:100%;height:100%;min-width:0}

0 commit comments

Comments
 (0)