所有的数据来源于data中
computed
:{
rotateSliders(){
const { rotateSlider
, startAngle
, endAngle
, gapAngle
, lineationItemWidth
} = this
return {
rotateSlider
, startAngle
, endAngle
, gapAngle
, lineationItemWidth
}
},
},
watch
:{
rotateSliders
: function (e
) {
if (this.isAttached
) {
this.initRotateSlider();
}
},
}
转载请注明原文地址:https://tech.qufami.com/read-7378.html