press-next
Version:
Vue3 组件库,支持 Composition API
30 lines (24 loc) • 647 B
text/typescript
// AI赛事追问组件演示数据
export interface QuestionItem {
id: string | number;
text: string;
}
export function getMockData() {
// 快速问题数据
const quickQuestions: QuestionItem[] = [
{ id: 1, text: '比赛规则是什么?' },
{ id: 2, text: '如何报名参加比赛?' },
{ id: 3, text: '比赛时间安排如何?' },
{ id: 4, text: '奖励设置是怎样的?' },
{ id: 5, text: '需要什么参赛条件?' },
];
// 组件属性配置
const componentProps = {
quickQuestions,
};
return componentProps;
}
const DEMO_DATA = {
...getMockData(),
};
export default DEMO_DATA;