feat: 数据mock

This commit is contained in:
2026-06-18 13:10:09 +08:00
parent deae38fb05
commit 9bd85a4e43
15 changed files with 466 additions and 403 deletions

View File

@@ -72,40 +72,10 @@
<script setup lang="ts">
import { computed } from 'vue'
/** 房间内玩家 */
interface RoomPlayer {
avatar: string
nickname: string
}
/** 房间数据 */
export interface Room {
id: string
/** 桌号显示名,如 "桌 01" */
name: string
/** 游戏图标 emoji */
gameIcon: string
/** 游戏 ID */
gameId: string
/** 最大玩家数 */
maxPlayers: number
/** 已入座玩家列表 */
players: RoomPlayer[]
/** 房间状态 */
status: 'waiting' | 'playing' | 'finished'
/** 状态展示文字 */
statusText: string
/** 底注金额 */
stakes: number
/** 玩法模式标签 */
mode: string
/** 房主昵称 */
creatorName: string
}
import type { RoomItem, RoomPlayer, RoomStatus } from '@/api/modules/game'
const props = defineProps<{
room: Room
room: RoomItem
}>()
const emit = defineEmits<{