|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div shadow="never" class="homeBoxCard" v-loading="loading">
|
|
<div shadow="never" class="homeBoxCard" v-loading="loading">
|
|
- <div class="height300" ref="sumeChartRef" />
|
|
|
|
|
|
+ <div :style="'height:' + Height" ref="sumeChartRef" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -270,7 +270,13 @@ export default defineComponent({
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
|
|
|
|
+ const Height = ref(0)
|
|
|
|
+ Height.value = window.innerHeight - 210 + 'px'
|
|
|
|
+ window.addEventListener('resize', () => {
|
|
|
|
+ Height.value = window.innerHeight - 210 + 'px'
|
|
|
|
+ })
|
|
return {
|
|
return {
|
|
|
|
+ Height,
|
|
sumeChartRef,
|
|
sumeChartRef,
|
|
loading,
|
|
loading,
|
|
total,
|
|
total,
|