UNPKG

press-next

Version:

Vue3 组件库,支持 Composition API

50 lines (45 loc) 963 B
// 成员数据接口 export interface Member { id: string | number; name: string; avatar: string; } export function getMockData() { // 模拟成员数据 const members: Member[] = [ { id: 1, name: '用户1', avatar: 'https://placehold.co/64x64', }, { id: 2, name: '用户2', avatar: 'https://placehold.co/64x64', }, { id: 3, name: '用户3', avatar: 'https://placehold.co/64x64', }, ]; // 组件属性配置 const componentProps = { teamName: '深圳大学', countdownDays: 29, countdownHours: '23', countdownMinutes: '59', countdownText: '报名截止', teamRequiredMembers: 6, teamCurrentMembers: 3, members, teamTips: '点击查看参赛格式', inviteButtonText: '邀请好友', customClass: 'test-schedule-style', }; return componentProps; } const DEMO_DATA = { ...getMockData(), }; export default DEMO_DATA;