feat(chengdu): 更新结算界面添加准备状态和房间管理功能

- 添加玩家准备状态显示和切换功能
- 实现房主控制下一局开始的游戏流程
- 添加退出房间按钮和相关状态管理
- 集成准备状态的计算逻辑和UI展示
- 更新组件props传递准备和房间状态数据
- 重构结算界面按钮布局和交互逻辑
This commit is contained in:
2026-04-07 13:36:28 +08:00
parent 3c876c4c3d
commit e495dc6070
3 changed files with 77 additions and 23 deletions

View File

@@ -230,6 +230,7 @@ export function useChengduTableView(deps: TableViewDeps): TableViewResult {
score: deps.gameStore.scores[player.playerId] ?? 0,
isWinner: winnerSet.has(player.playerId),
seatIndex: player.seatIndex,
isReady: Boolean(player.isReady),
}))
.sort((a, b) => b.score - a.score)
})