Skip to content

Commit

Permalink
fix: 修复图表无法动态调整size的问题 (#123)
Browse files Browse the repository at this point in the history
加入 ”autoresize “选项字,根据根元素的宽高动态调整图表的宽高。
  • Loading branch information
q664171689 authored Aug 4, 2023
1 parent 84df7f3 commit 32261b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/custom-component/VChart/Component.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<template>
<v-chart ref="chart" class="chart" :option="propValue.option" />
<v-chart
ref="chart"
class="chart"
:option="propValue.option"
autoresize
/>
</template>

<script>
Expand Down

0 comments on commit 32261b0

Please sign in to comment.