chore: 优化echarts图表

This commit is contained in:
dap 2024-08-07 16:48:44 +08:00
parent 9fcba07d62
commit 36a937191e
2 changed files with 2 additions and 8 deletions

View File

@ -8,7 +8,6 @@ import { preferences } from '@vben/preferences';
export default defineComponent({
components: { EchartsUI },
name: 'CommandChart',
props: {
data: {
default: () => [],
@ -71,9 +70,7 @@ export default defineComponent({
</script>
<template>
<div class="flex h-[400px] w-full items-center justify-center">
<EchartsUI ref="chartRef" />
</div>
<EchartsUI ref="chartRef" height="400px" width="100%" />
</template>
<style scoped></style>

View File

@ -8,7 +8,6 @@ import { preferences } from '@vben/preferences';
export default defineComponent({
components: { EchartsUI },
name: 'MemoryChart',
props: {
data: {
default: '0',
@ -90,9 +89,7 @@ export default defineComponent({
</script>
<template>
<div class="flex h-[400px] w-full items-center justify-center">
<EchartsUI ref="memoryHtmlRef" />
</div>
<EchartsUI ref="memoryHtmlRef" height="400px" width="100%" />
</template>
<style scoped></style>