|
|
@@ -305,7 +305,7 @@ export struct BigWheelView{
|
|
|
// 遍历每个单元格并绘制扇形
|
|
|
ForEach(this.cells, (cell: Cell) => {
|
|
|
Stack() {
|
|
|
- Sector({ radius: lpx2px(this.wheelWidth) / 2, angle: cell.angle, color: cell.color }); // 创建扇形
|
|
|
+ Sector({ radius: lpx2px(this.wheelWidth-15), angle: cell.angle, color: cell.color }); // 创建扇形
|
|
|
Text(cell.title).fontColor(Color.Black).fontWeight(700).margin({ bottom: this.wheelWidth / 1.4 }); // 显示单元格标题
|
|
|
}.width('100%').height('100%').rotate({ angle: cell.rotate }); // 设置宽度和高度,并旋转
|
|
|
});
|