vxe-table-demonic
Version:
一个基于 vue 的 PC 端表单/表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、JSON 配置式...
32 lines (25 loc) • 706 B
TypeScript
import { App, VNode } from 'vue'
export type SizeType = null | '' | 'medium' | 'small' | 'mini'
export type ValueOf<T> = T extends any[] ? T[number] : T[keyof T]
export type VXEComponent<
P = { [key: string]: any },
E = { [key: string]: any },
S = { [key: string]: (...args: any[]) => any }
> = ({
new (): {
$props: P & E,
$slots: S
}
} & {
install(app: App): void
})
export interface VxeComponentBase {
xID: string
}
export interface VxeEvent {
$event: Event
[key: string]: any
}
export type VNodeStyle = Record<string, string | number>
export type VNodeClassName = Record<string, boolean>
export type SlotVNodeType = VNode | string | number