mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-28 23:48:21 +08:00
fix: make inner wrapper fit to the root size (#761)
This commit is contained in:
@ -308,7 +308,7 @@ export default defineComponent({
|
|||||||
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, [
|
return h(TAG_NAME, attrs, [
|
||||||
h("div", { ref: "inner", class: "echarts-inner" })
|
h("div", { ref: "inner", class: "vue-echarts-inner" })
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@ -1 +1,2 @@
|
|||||||
x-vue-echarts,.echarts-inner{display:block;width:100%;height:100%;min-width:0}
|
x-vue-echarts{display:flex;flex-direction:column;width:100%;height:100%;min-width:0}
|
||||||
|
.vue-echarts-inner{flex-grow:1;min-width:0}
|
||||||
|
|||||||
Reference in New Issue
Block a user