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>