xyyd-fatfox/src/widgets/index.ts

29 lines
902 B
TypeScript

import type { Component } from 'vue'
import calendar from './calendar'
import weather from './weather'
import weApply from './weApply'
import gameNews from './gameNews'
import eat from './eat'
import discount from './discount'
import hotspot from './hotspot'
import constellation from './constellation'
import gameVideo from './gameVideo'
import work from './work'
import game from './game'
import notepad from './notepad'
export interface Widget {
name: string // 小组件类型唯一标识
label: string // 小组件名称
description: string // 小组件描述
icon: string // 小组件图标
modal: Component | null // 弹框组件
list: {
w: number
h: number
label: string
component: Component
}[] // 不同尺寸小组件块
}
export default [game, calendar, weather, weApply, gameNews, eat, discount, hotspot, constellation, gameVideo, work, notepad] as Widget[]