mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-30 20:38:45 +08:00
502dac12aa
* docs: fix code * feat: lint * feat: prettier * feat: test * feat: review * feat: format html * feat: format html
14 lines
396 B
TypeScript
14 lines
396 B
TypeScript
import type { ReactNode } from 'react';
|
|
|
|
import type { InputProps } from './Input';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export function hasPrefixSuffix(props: {
|
|
prefix?: ReactNode;
|
|
suffix?: ReactNode;
|
|
allowClear?: InputProps['allowClear'];
|
|
showCount?: InputProps['showCount'];
|
|
}) {
|
|
return !!(props.prefix || props.suffix || props.allowClear || props.showCount);
|
|
}
|