变更
This commit is contained in:
@@ -668,8 +668,18 @@ export default {
|
||||
this.stepFlag = this.nowPass.state
|
||||
let nowPass = this.nowPass
|
||||
let temp = nowPass.step % 8
|
||||
// 计算circleStart的角度,1~7分别对应0,45,90,135,180,225,270,0对应315
|
||||
this.circleStart = temp === 0 ? 315 : (temp - 1) * 45
|
||||
const angleMap = {
|
||||
0: 315,
|
||||
1: 0,
|
||||
2: 90,
|
||||
3: 45,
|
||||
4: 135,
|
||||
5: 180,
|
||||
6: 270,
|
||||
7: 225,
|
||||
8: 315,
|
||||
};
|
||||
this.circleStart = angleMap[temp];
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user