Skip to content

Commit

Permalink
fix: fix inner wrapper styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Justineo committed Dec 12, 2023
1 parent 8132842 commit b3a10f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/ECharts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ export default defineComponent({
) as any;
attrs.ref = "root";
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" })
]);
}
});
2 changes: 1 addition & 1 deletion src/style.css
Original file line number Diff line number Diff line change
@@ -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}

3 comments on commit b3a10f3

@vercel
Copy link

@vercel vercel bot commented on b3a10f3 Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@huzhibin
Copy link

@huzhibin huzhibin commented on b3a10f3 Dec 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/style.css 中 x-vue-echarts 标签名称变了,会导致之前的默认样式丢失
@cnberg

@Justineo
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in v6.6.4.

Please sign in to comment.