File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5353 </ div >
5454 </ div >
5555 </ div >
56-
5756 < div class ="block-title "> Semicircle Gauges</ div >
5857 < div class ="block block-strong ">
5958 < div class ="row ">
7675 data-value-text-color ="#e91e63 "
7776 data-border-color ="#e91e63 "
7877 data-label-text ="of 60kg total "
79- data-label-color ="#333 "
78+ data-label-text- color ="#333 "
8079 > </ div >
8180 </ div >
8281 </ div >
154153 methods : {
155154 setGaugeValue : function ( value ) {
156155 var self = this ;
157- self . demoGauge1 . update ( {
156+ self . demoGauge . update ( {
158157 value : value / 100 ,
159158 valueText : value + '%' ,
160159 } ) ;
164163 pageInit : function ( e , page ) {
165164 var self = this ;
166165 var app = self . $app ;
167- self . demoGauge1 = app . gauge . create ( {
166+ self . demoGauge = app . gauge . create ( {
168167 el : '.demo-gauge' ,
169168 type : 'circle' ,
170169 value : 0.5 ,
176175 valueTextColor : '#2196f3' ,
177176 labelText : 'amount of something' ,
178177 } ) ;
179- }
178+ } ,
179+ pageBeforeRemove : function ( e , page ) {
180+ if ( this . demoGauge ) this . demoGauge . destroy ( ) ;
181+ } ,
180182 }
181183 }
182184</ script >
You can’t perform that action at this time.
0 commit comments