UNPKG

press-next

Version:

Vue3 组件库,支持 Composition API

69 lines (63 loc) 1.39 kB
// 成员数据接口 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', }, { id: 4, name: '用户4', avatar: 'https://placehold.co/64x64', }, { id: 5, name: '用户5', avatar: 'https://placehold.co/64x64', }, { id: 6, name: '用户6', avatar: 'https://placehold.co/64x64', }, { id: 7, name: '用户7', avatar: 'https://placehold.co/64x64', }, ]; // 组件属性配置 const componentProps = { teamName: '深圳大学', endTime: Date.now() + 29 * 24 * 60 * 60 * 1000 + 23 * 60 * 60 * 1000 + 59 * 60 * 1000, // 29天23小时59分后 countdownText: '报名截止', teamRequiredMembers: 6, teamCurrentMembers: members.length, members, teamTips: '否则将失去参赛资格', inviteButtonText: '邀请好友', customClass: 'test-schedule-style', }; return componentProps; } const DEMO_DATA = { ...getMockData(), }; export default DEMO_DATA;