mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
bfebb88bdb
* feat: introduce rc-input * fix: export InputRef alias * docs: fix demo * chore: code clean * test: fix lint * test: test coverage * chore: code clean * chore: code clean * test: update snapshot
8 lines
309 B
TypeScript
8 lines
309 B
TypeScript
import type { ClearableInputProps } from './ClearableLabeledInput';
|
|
import type { InputProps } from './Input';
|
|
|
|
// eslint-disable-next-line import/prefer-default-export
|
|
export function hasPrefixSuffix(props: InputProps | ClearableInputProps) {
|
|
return !!(props.prefix || props.suffix || props.allowClear);
|
|
}
|