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