press-next
Version:
Vue3 组件库,支持 Composition API
31 lines (25 loc) • 775 B
text/typescript
// AI办赛选择模式组件演示数据
export interface ModeItem {
id: string | number;
name: string;
description?: string;
}
export function getMockData() {
// 模式选项数据
const modeList: ModeItem[] = [
{ id: 1, name: '快速模式', description: '快速创建比赛' },
{ id: 2, name: '自定义模式', description: '自定义比赛设置' },
{ id: 3, name: '模板模式', description: '使用预设模板' },
{ id: 4, name: '高级模式', description: '高级比赛配置' },
];
// 组件属性配置
const componentProps = {
modeList,
title: '除此之外,你还需要定制下比赛模式哦!请选择:',
};
return componentProps;
}
const DEMO_DATA = {
...getMockData(),
};
export default DEMO_DATA;