18 lines
408 B
TypeScript
18 lines
408 B
TypeScript
|
import calendar from './calendar'
|
||
|
|
||
|
export interface Widget {
|
||
|
name: string // 小组件类型唯一标识
|
||
|
label: string // 小组件名称
|
||
|
description: string // 小组件描述
|
||
|
icon: string // 小组件图标
|
||
|
modal: () => any // 弹框组件
|
||
|
list: {
|
||
|
w: number
|
||
|
h: number
|
||
|
label: string
|
||
|
component: () => any
|
||
|
}[] // 不同尺寸小组件块
|
||
|
}
|
||
|
|
||
|
export default [calendar] as Widget[]
|