xyyd-fatfox/src/widgets/hotspot/index.ts

31 lines
637 B
TypeScript

import asyncLoader from '@/utils/asyncLoader'
import type { Widget } from '..'
export default {
name: 'hotspot',
label: '热点资讯',
description: '热点信息尽在此处',
icon: '/tab/icons/hot_information_icon.png',
modal: asyncLoader(() => import('./Modal')),
list: [
{
w: 2,
h: 1,
label: '小',
component: asyncLoader(() => import('./Small'))
},
{
w: 2,
h: 2,
label: '中',
component: asyncLoader(() => import('./Middle'))
},
{
w: 4,
h: 2,
label: '大',
component: asyncLoader(() => import('./Large'))
}
]
} as Widget