UNPKG

vxe-table-demonic

Version:

一个基于 vue 的 PC 端表单/表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、JSON 配置式...

22 lines (19 loc) 961 B
import { VxeTableConstructor, VxeTableMethods, VxeTablePrivateMethods } from '../table' import { VxeGridConstructor, VxeGridPrivateMethods } from '../grid' export namespace VxeGlobalHooksHandles { export type Name = 'VxeGrid' | 'VxeTable' export interface HookOptions { setupTable?($table: VxeTableConstructor<any> & VxeTableMethods<any> & VxeTablePrivateMethods<any>): void | { [key: string]: any } setupGrid?($grid: VxeGridConstructor<any> & VxeGridPrivateMethods<any>): void | { [key: string]: any } } } export interface VxeGlobalHooks { mixin(options: { [type: string]: VxeGlobalHooksHandles.HookOptions }): VxeGlobalHooks has(type: string): boolean get(type: string): VxeGlobalHooksHandles.HookOptions add(type: string, options: VxeGlobalHooksHandles.HookOptions): VxeGlobalHooks delete(type: string): void forEach(callback: (options: VxeGlobalHooksHandles.HookOptions, type: string) => void): void }