UNPKG

press-next

Version:

Vue3 组件库,支持 Composition API

50 lines (44 loc) 1.07 kB
// 奖品数据接口 export interface Prize { id?: string | number; name: string; imageUrl: string; count?: number; description?: string; } export function getMockData() { // 奖品数据 const prizes: Prize[] = [ { id: 1, name: '冠军', imageUrl: 'https://placehold.co/74x74', count: 100, description: '三角洲行动全球总决赛现场观赛资格*2,自选限定皮肤(参考2025幸运一夏福袋奖池)*1', }, { id: 2, name: '亚军', imageUrl: 'https://placehold.co/74x74', count: 100, description: '自选限定皮肤(参考2025幸运一夏福袋奖池)*1,小小英雄蛋1组(10+1)', }, { id: 3, name: '季军', imageUrl: 'https://placehold.co/74x74', count: 100, description: '小小英雄蛋1组(10+1),400点券', }, ]; // 组件属性配置 const componentProps = { prizes, layout: 'grid', }; return componentProps; } const DEMO_DATA = { ...getMockData(), }; export default DEMO_DATA;