ant-design/components/input/utils.ts
MadCcc bfebb88bdb
feat: introduce rc-input (#34206)
* 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
2022-03-01 14:17:48 +08:00

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);
}