Merge pull request #7496 from dataease/pr@dev@fix_chart_height

fix(视图-AntV): 视图高度未计算标题
This commit is contained in:
wisonic-s 2024-01-02 17:07:10 +08:00 committed by GitHub
commit f55b633fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,7 +12,7 @@
@trackClick="trackClick"
/>
<span
v-if="chart.type && antVRenderStatus"
v-if="chart.type"
v-show="title_show"
ref="title"
:class="titleIsRight"
@ -235,8 +235,6 @@ export default {
},
async drawView() {
const chart = JSON.parse(JSON.stringify(this.chart))
// type
// if (chart.data) {
this.antVRenderStatus = true
if (!chart.data || (!chart.data.data && !chart.data.series)) {
chart.data = {