import { Emitter } from '@mantou/gem/lib/decorators'; import { GemElement, TemplateResult } from '@mantou/gem/lib/element'; import { StyleObject } from '@mantou/gem/lib/utils'; import { MenuItem } from './menu'; import './placeholder'; import './empty'; import './tooltip'; import './loading'; import './space'; import './selection-box'; export declare type Column = { title: string | TemplateResult; style?: StyleObject; ellipsis?: boolean; width?: string; tooltip?: string; dataIndex?: keyof T | string[]; render?: (record: T) => string | TemplateResult; getActions?: (record: T, evt: HTMLElement) => MenuItem[]; getColSpan?: (record: T, arr: T[]) => number; getRowSpan?: (record: T, arr: T[]) => number; data?: Record; }; export declare type Columns = Column[]; export declare type ItemContextMenuEventDetail = { data: any; selected: boolean; originEvent: MouseEvent; }; /** * @customElement dy-table */ export declare class DuoyunTableElement extends GemElement { #private; static table: string; static th: string; static td: string; static tr: string; static side: string; caption: string; headless: boolean; selectable: boolean; selection?: any[]; select: Emitter; itemclick: Emitter; itemcontextmenu: Emitter; columns?: Column[]; data?: (Record | undefined)[]; getRowStyle?: (record: any) => StyleObject; noData?: string | TemplateResult; rowKey?: string | string[]; expandedRowRender?: (record: any) => undefined | string | TemplateResult; expand: Emitter; constructor(); mounted: () => void; render: () => TemplateResult; appendSelection(items: any[]): void; removeSelection(items: any[]): void; } //# sourceMappingURL=table.d.ts.map