amis-rpc-design/node_modules/rc-select/es/hooks/useAllowClear.d.ts
2023-10-07 19:42:30 +08:00

10 lines
443 B
TypeScript

import type { DisplayValueType, Mode } from '../interface';
import type { ReactNode } from 'react';
import React from 'react';
export declare function useAllowClear(prefixCls: any, onClearMouseDown: any, displayValues: DisplayValueType[], allowClear?: boolean | {
clearIcon?: ReactNode;
}, clearIcon?: ReactNode, disabled?: boolean, mergedSearchValue?: string, mode?: Mode): {
allowClear: boolean;
clearIcon: React.JSX.Element;
};