amis-rpc-design/node_modules/antd/es/select/useShowArrow.d.ts

9 lines
318 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
import type { ReactNode } from 'react';
/**
* Since Select, TreeSelect, Cascader is same Select like component.
* We just use same hook to handle this logic.
*
* If `suffixIcon` is not equal to `null`, always show it.
*/
export default function useShowArrow(suffixIcon?: ReactNode, showArrow?: boolean): boolean;