UNPKG

press-next

Version:

Vue3 组件库,支持 Composition API

61 lines (54 loc) 1.46 kB
export interface LogoItem { id: string | number; url: string; name?: string; } export function getMockData() { // Logo 列表数据 - 来自 press-gp-popup-set-logo/config.ts const logoList: LogoItem[] = [ { id: 1, url: 'https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/match-logo-new-3.png', name: '队徽1', }, { id: 2, url: 'https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/match-logo-new-4.png', name: '队徽2', }, { id: 3, url: 'https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/match-logo-new-5.png', name: '队徽3', }, { id: 4, url: 'https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/match-logo-new-6.png', name: '队徽4', }, { id: 5, url: 'https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/match-logo-new-7.png', name: '队徽5', }, { id: 6, url: 'https://image-1251917893.file.myqcloud.com/tip-project/pubg/pubg-match/match-logo-new-1.png', name: '队徽6', }, ]; // 组件属性配置 const componentProps = { show: false, title: '修改队徽', buttonText: '确定修改', logoList, defaultLogo: logoList[0]?.url || '', customClass: '', }; return componentProps; } const DEMO_DATA = { ...getMockData(), }; export default DEMO_DATA;