fix: fix inner wrapper styles

This commit is contained in:
Justineo
2023-12-12 09:51:27 +08:00
parent 8132842be7
commit b3a10f3654
2 changed files with 4 additions and 2 deletions

View File

@ -307,6 +307,8 @@ export default defineComponent({
) as any; ) as any;
attrs.ref = "root"; attrs.ref = "root";
attrs.class = attrs.class ? ["echarts"].concat(attrs.class) : "echarts"; attrs.class = attrs.class ? ["echarts"].concat(attrs.class) : "echarts";
return h(TAG_NAME, attrs, [h("div", { ref: "inner" })]); return h(TAG_NAME, attrs, [
h("div", { ref: "inner", class: "echarts-inner" })
]);
} }
}); });

View File

@ -1 +1 @@
x-vue-echarts{display:block;width:100%;height:100%;min-width:0}x-vue-echarts>[_echarts_instance_]{width:100%;height:100%} x-vue-echart,.echarts-inner{display:block;width:100%;height:100%;min-width:0}