From 23fbd7a4c8a3f849de94fa90da4598092dc02c48 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期四, 27 一月 2022 09:53:56 +0800 Subject: [PATCH] 对比库没有变化表格bug --- src/pages/shuohuangMonitorAnalyze/components/charts/pie.vue | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/charts/pie.vue b/src/pages/shuohuangMonitorAnalyze/components/charts/pie.vue index c4f767e..f71636f 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/charts/pie.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/charts/pie.vue @@ -1,17 +1,25 @@ <template> - <div ref="pieChart" style="width: 100%; height: 100%;"></div> + <div ref="pieChart" :style="{width: pieW+'px', height: pieH+'px'}"></div> </template> <script> export default { data () { return { - + } }, props: { options: { type: Object + }, + pieW: { + type: Number, + default: 600 + }, + pieH: { + type: Number, + default: 300 } }, mounted () { @@ -29,4 +37,5 @@ </script> <style lang="scss"> + </style> \ No newline at end of file -- Gitblit v1.8.0