chore: 优化echarts图表

master
dap 1 year ago
parent 9fcba07d62
commit 36a937191e

@ -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>

@ -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>

Loading…
Cancel
Save