UNPKG

vxe-table

Version:

A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.

77 lines (65 loc) 1.85 kB
import { App } from 'vue' import { VxeUIExport, VxeGlobalConfig, VxeComponentKebabCaseKeys } from 'vxe-pc-ui' // Vxe Table import VxeColumn from 'vxe-pc-ui/types/components/column' import VxeColgroup from 'vxe-pc-ui/types/components/colgroup' import VxeTable from 'vxe-pc-ui/types/components/table' import VxeGrid from 'vxe-pc-ui/types/components/grid' import VxeToolbar from 'vxe-pc-ui/types/components/toolbar' declare global { interface Window { VxeUITable: VxeUIExport /** * @deprecated */ VXETable: VxeUIExport } } /** * 已废弃,请使用 VxeUI * @deprecated */ export const VXETable: VxeUIExport /** * 已废弃,请使用 VxeUIExport * @deprecated */ export type VXETableCore = VxeUIExport export function install (app: App, options?: VxeGlobalConfig): void interface AllComponents { // Vxe Table /** * Column 基础表格 - 列 */ VxeColumn: typeof VxeColumn /** * Colgroup 基础表格 - 分组列 */ VxeColgroup: typeof VxeColgroup /** * Table 基础表格 */ VxeTable: typeof VxeTable /** * Grid 高级表格 */ VxeGrid: typeof VxeGrid /** * Toolbar 基础表格 - 工具栏 */ VxeToolbar: typeof VxeToolbar } declare module '@vue/runtime-core' { export interface GlobalComponents extends AllComponents {} } declare module '@vxe-ui/core' { export interface VxeGlobalComponents extends AllComponents, VxeComponentKebabCaseKeys<AllComponents> {} } // Vxe core export * from 'vxe-pc-ui/types/ui' // Vxe Table export * from 'vxe-pc-ui/types/components/column' export * from 'vxe-pc-ui/types/components/colgroup' export * from 'vxe-pc-ui/types/components/table' export * from 'vxe-pc-ui/types/components/grid' export * from 'vxe-pc-ui/types/components/toolbar'