import { Ref } from '@wakeadmin/demi'; import { OurComponentInstance } from '../utils'; import { FatTableSlots } from '../fat-table/types'; import { FatTableModalGlobalConfigurations, FatTableModalMethods, FatTableModalProps } from './fat-table-modal'; import { FatTableSelectEvents, FatTableSelectMethods, FatTableSelectProps } from './fat-table-select'; export interface FatTableSelectModalMethods | number | string> extends Omit, keyof FatTableSelectMethods | 'open'>, FatTableSelectMethods { /** * 显示弹窗 * * 如果传入 `props` 那么会优先使用该`props`进行渲染 * * @remarks * - `multiple` 以及 `limit` 是在 `FatTableSelect`创建的时候便已经设置好了的 * 如果需要重新设置的话 那么需要手动将`destroyOnClose`设置为 `true` * @param props */ open: (props?: Partial>) => void; } export declare const FatTableSelectModalPublicMethodKeys: ("select" | "filter" | "error" | "search" | "sort" | "list" | "clear" | "loading" | "pagination" | "open" | "reset" | "query" | "formRef" | "renderButtons" | "confirm" | "close" | "tableRef" | "selected" | "sortByProp" | "clearSort" | "unselect" | "selectAll" | "unselectAll" | "remove" | "removeSelected" | "doLayout" | "gotoPage" | "refresh" | "getRequestParams" | "getColumns" | "selectable" | "isOpen" | "isClose" | "toggle" | "toggleAll" | "getSelected" | "isSelected" | "getCurrentPageSelected")[]; export interface FatTableSelectModalSlots | number | string> extends Omit, 'renderTitle'> { renderTitle?: (tableModalRef: FatTableSelectModalMethods) => any; renderFooter?: (tableModalRef: FatTableSelectModalMethods) => any; } export interface FatTableSelectModalEvents | number | string> extends FatTableSelectEvents { onOpen?: () => void; onOpened?: () => void; onClose?: () => void; onClosed?: () => void; /** * 确认事件 * @returns */ onConfirm?: (selections: Selection[]) => void; } export interface FatTableSelectModalProps | number | string = any> extends Omit, 'renderFooter' | 'renderTitle'>, keyof FatTableSelectProps>, Omit, 'renderFooter' | 'renderTitle' | 'renderBottomToolbar'>, FatTableSelectModalEvents, FatTableSelectModalSlots { /** * 选中的时候是否自动关闭弹窗, 只有单选的情况支持, 默认为 `true` */ confirmOnSelected?: boolean; } export type FatTableSelectModalGlobalConfigurations = FatTableModalGlobalConfigurations; export declare function useFatTableSelectModalRef | number | string = any>(): Ref | undefined>; export declare const FatTableSelectModal: new = any>(props: FatTableSelectModalProps) => OurComponentInstance, FatTableSelectModalSlots, FatTableSelectModalEvents, FatTableSelectModalMethods>; //# sourceMappingURL=fat-table-select-modal.d.ts.map