ant-design/components/input/utils.ts
MadCcc 642bb582eb
refactor: TextArea (#40045)
* refactor: TextArea

* chore: update snapshot

* chore: update snapshot

* chore: fix lint

* chore: classes

* refactor: mentions

* chore: bump rc-textarea

* chore: code clean

* chore: code clean

* chore: UPDATE SNAPSHOT

* chore: code clean

* test: cov

* fix: textarea size
2023-01-11 14:18:13 +08:00

7 lines
219 B
TypeScript

import type { InputProps } from './Input';
// eslint-disable-next-line import/prefer-default-export
export function hasPrefixSuffix(props: InputProps) {
return !!(props.prefix || props.suffix || props.allowClear);
}