import { TemplateRef } from '@angular/core'; import { EoNgDropdownMenuComponent } from 'eo-ng-dropdown'; import { NzTableSortOrder } from 'ng-zorro-antd/table'; export interface SELECT_ITEM_TYPE { label: string; value: string | number; disabled?: boolean; type?: number | string; } export declare type RADIO_ITEM_TYPE = { label: string; value: string; disabled?: boolean; }; export interface TBODY_TYPE { class?: string; radio?: number | string | boolean; check?: Function; key?: string | TemplateRef; type?: 'checkbox' | 'select' | 'autoComplete' | 'sort' | 'input' | string | TemplateRef; placeholder?: string; inputType?: 'text' | string; showSearch?: boolean; mode?: 'multiple' | 'tags' | 'default' | string; onSearch?: Function; blur?: Function; mouseleave?: Function; change?: Function; checkMode?: 'change' | 'blur' | 'click' | 'mouseleave' | string; colspan?: number; seColspan?: Function; rowspan?: number; seRowspan?: Function; showPopConfirm?: boolean; popconfimTitle?: string | TemplateRef; disabledKey?: string; click?: Function; showFn?: Function; optsFn?: Function; opts?: string[] | SELECT_ITEM_TYPE[]; disabledFn?: Function; maxlength?: number; minlength?: number; min?: number; max?: number; btns?: any | { type?: string | TemplateRef; title?: string | TemplateRef; click?: Function; btnType?: string; trigger?: string; action?: string | 'addChild' | 'add' | 'delete'; icon?: string; }[]; right?: boolean; valueRef?: { true: string | number | boolean; false: string | number | boolean; }; styleFn?: Function; showContainerFn?: (item: T) => boolean; left?: boolean; keyPrefix?: string; keySuffix?: string; title?: string | TemplateRef; ellipsis?: boolean; width?: string; errorTip?: string; placeholderKey?: string; /** * 粘贴时自动去空格配置: * - undefined / false: 不处理(默认) * - true 或 'trim': 去除前后空白(trim) * - 'removeAll': 去除所有空白字符(包括中间空格) */ trimOnPaste?: boolean | 'trim' | 'removeAll'; } export interface THEAD_TYPE { click?: Function; title?: string | TemplateRef; disabled?: boolean; type?: string | TemplateRef; right?: boolean; width?: number; key?: string | TemplateRef; showFn?: Function; resizeable?: boolean; left?: boolean; ellipsis?: boolean; showSort?: boolean; sortPriority?: number | boolean; sortOrder?: NzTableSortOrder; sortDirections?: Array<'ascend' | 'descend' | null>; sortFn?: Function | boolean; minWidth?: number; filterMultiple?: boolean; filterFn?: Function; filterOpts?: { text: string; value: any; byDefault?: boolean; }[]; opts?: { text: string; value: any; byDefault?: boolean; }[]; filterTrigger?: boolean; filterNzDropdownMenu?: EoNgDropdownMenuComponent; filterNzVisible?: boolean; filterNzHasBackdrop?: boolean; filterNzActive?: boolean; filterIcon?: boolean; }