mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
863f61d908
Co-authored-by: afc163 <afc163@gmail.com>
13 lines
339 B
TypeScript
13 lines
339 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
import type { InputProps } from './Input';
|
|
|
|
export function hasPrefixSuffix(props: {
|
|
prefix?: ReactNode;
|
|
suffix?: ReactNode;
|
|
allowClear?: InputProps['allowClear'];
|
|
showCount?: InputProps['showCount'];
|
|
}) {
|
|
return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
|
|
}
|