import type { Component } from 'vue' import calendar from './calendar' import weather from './weather' import weApply from './weApply' 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 [calendar, weather, weApply] as Widget[]