import * as React from 'react'; import { GridProps } from '@/components/container'; import { FormProps, Item } from '@alifd/next/types/form'; export declare const FilterItem: typeof Item; export interface FilterProps extends GridProps { /** * 是否展开,受控 */ expand?: boolean; /** * 是否默认展开,非受控 */ defaultExpand?: boolean; /** * 最多显示几行元素,超出部分将会提供「展开/收起」按钮 */ visibleRowCount?: number; /** * 是否开启配置筛选项 */ enableFilterConfiguration?: boolean; /** * 配置保存在本地 localStorage 中的 key,请确定为全局唯一 * 建议命名方法为:业务域_产品_页面 */ configStorageKey?: string; /** * 展开收起回调 */ onExpand?: (expand: boolean) => void; /** * 是否显示「展开/收起」按钮 * @default false */ hideExpandButton?: boolean; /** * 是否显示默认的「查询/重置」按钮 * @default false */ hideDefaultButtons?: boolean; /** * 是否开启表单能力,开启后会使用 fusion Form 组件进行子元素管理 */ enableForm?: boolean; /** * fusion form 的 api * @see {@link https://fusion.alibaba-inc.com/pc/component/form?themeid=2#API} */ formProps?: FormProps; /** * 按钮漕位渲染 */ buttons?: { /** * 点击主按钮回调 * @deprecated 请使用 props.onSearch */ onSearch?: (val: string) => void; /** * 点击次按钮回调 * @deprecated 请使用 props.onReset */ onReset?: () => void; /** * 自定义渲染 * @deprecated 请使用 props.buttonRender */ render?: () => React.ReactNode; }; /** * 点击主按钮回调 */ onSearch?: (val: string) => void; /** * 点击次按钮回调 */ onReset?: () => void; /** * 右下角操作区槽位自定义渲染 */ buttonRender?: () => React.ReactNode; operations?: object[]; operationConfig?: object; } declare const Filter: React.FC; export { Filter };