press-next
Version:
Vue3 组件库,支持 Composition API
32 lines (26 loc) • 541 B
text/typescript
export interface TestPrize {
name: string;
title: string;
description: string;
image: string;
quantity: number;
}
export function getMockData() {
// 道具数据
const testPrize: TestPrize = {
title: '奖项配置',
name: '王者荣耀皮肤',
description: '限定皮肤礼包',
image: 'https://placehold.co/74x74',
quantity: 10,
};
// 组件属性配置
const componentProps = {
testPrize,
};
return componentProps;
}
const DEMO_DATA = {
...getMockData(),
};
export default DEMO_DATA;