mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-15 17:19:11 +08:00
3af521d422
* feat: Input filled variant * feat: InputNumber filled variant * feat: mentions variant * fix: TextArea status with affix * chore: update snapshot * chore: update snapshot * feat: pagination input * fix: fix diff * feat: input-number disabled * fixL InputNumber * chore: update snapshot * feat: better style * chore: update * chore: update snapshot * feat: use variant classNames * chore: update snapshot * feat: mentions affix style * chore
13 lines
395 B
TypeScript
13 lines
395 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);
|
|
}
|