From 3fe6be8e6eeae41fcfabc5876cac2fddd1c860f0 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期四, 21 一月 2021 11:41:07 +0800 Subject: [PATCH] 朔黄首页数据统计分析tab静态页完善 --- 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 46e941c..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: 600px; height: 300px;"></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