Commit 961bdd276c657deed774d0298442ad6382df8bfe

Authored by liuqimichale
1 parent 974ee116

道闸

src/components/halfPieChart.vue
... ... @@ -21,7 +21,7 @@ export default {
21 21 },
22 22 height: {
23 23 type: String,
24   - default: '135px'
  24 + default: '100%'
25 25 },
26 26 autoResize: {
27 27 type: Boolean,
... ... @@ -34,8 +34,7 @@ export default {
34 34 },
35 35 data() {
36 36 return {
37   - chart: null,
38   - sidebarElm: null
  37 + chart: null
39 38 }
40 39 },
41 40 watch: {
... ... @@ -77,8 +76,9 @@ export default {
77 76 {
78 77 name: '半径模式',
79 78 type: 'pie',
80   - radius: ['75%', '90%'],
  79 + radius: ['60%', '75%'],
81 80 center: ['50%', '50%'],
  81 + hoverAnimation:false,
82 82 label: {
83 83 show: false
84 84 },
... ... @@ -123,10 +123,7 @@ export default {
123 123  
124 124 ],
125 125 animationType: 'scale',
126   - animationEasing: 'elasticOut',
127   - animationDelay: function(idx) {
128   - return Math.random() * 200;
129   - }
  126 + animationEasing: 'elasticOut'
130 127 }
131 128  
132 129 ]
... ...