From 16f3f4b4199f360676898e13c591a50041de0212 Mon Sep 17 00:00:00 2001 From: Justineo Date: Tue, 4 Jun 2024 23:11:22 +0800 Subject: [PATCH] fix: fix padding style --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/style.css | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c490a9e..ea9012d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 6.7.3 + +* Fixed that `padding` on the component root doesn't work. + ## 6.7.2 * Fixed that charts inside `` failed to display after activation. diff --git a/package.json b/package.json index 4374031..097b7f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-echarts", - "version": "6.7.2", + "version": "6.7.3", "description": "Vue.js component for Apache ECharts™.", "author": "GU Yiling ", "scripts": { diff --git a/src/style.css b/src/style.css index 1c8f847..070fcaf 100644 --- a/src/style.css +++ b/src/style.css @@ -1,2 +1,2 @@ -x-vue-echarts{display:block;position:relative;width:100%;height:100%;min-width:0} -.vue-echarts-inner{position:absolute!important;top:0;right:0;bottom:0;left: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;width:auto!important;height:auto!important}