import { type ListToolBarProps } from '../ListToolBar'; import type { FunctionalComponent } from 'vue'; import type { InputProps } from 'ant-design-vue'; import type { WithFalse } from '../../typings'; import './index.less'; import type { ColumnsType } from 'ant-design-vue/es/table'; export interface ActionType { reload: (resetPageIndex?: boolean) => Promise; fullScreen?: () => void; } export declare type OptionsFunctionType = (e: MouseEvent, action?: ActionType) => void; export declare type OptionsType = OptionsFunctionType | boolean; export declare type OptionsKey = keyof OptionConfig; export declare type OptionSearchProps = InputProps & { name?: string; } & { /** 如果 onSearch 返回一个false,直接拦截请求 */ onSearch?: (keyword: string) => boolean | undefined; }; export declare type OptionConfig = Partial<{ density: boolean; fullScreen: OptionsType; reload: OptionsType; setting: boolean; search: OptionSearchProps | boolean; }>; export declare type ToolBarProps = { columns?: ColumnsType; options?: WithFalse; toolbar?: WithFalse; }; declare const ToolBar: FunctionalComponent; export default ToolBar;