Skip to content

Commit

Permalink
fix: add boolean type to autosize prop (#5766)
Browse files Browse the repository at this point in the history
Co-authored-by: oaktian <oak.tian@vesync.com>
  • Loading branch information
tys1128 and oak-vesync authored Jul 1, 2022
1 parent a2690a2 commit 7999a2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/input/inputProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ export interface ShowCountProps {
const textAreaProps = () => ({
...omit(inputProps(), ['prefix', 'addonBefore', 'addonAfter', 'suffix']),
rows: Number,
autosize: { type: [Boolean, Object] as PropType<AutoSizeType>, default: undefined },
autoSize: { type: [Boolean, Object] as PropType<AutoSizeType>, default: undefined },
autosize: { type: [Boolean, Object] as PropType<boolean | AutoSizeType>, default: undefined },
autoSize: { type: [Boolean, Object] as PropType<boolean | AutoSizeType>, default: undefined },
onResize: { type: Function as PropType<(size: { width: number; height: number }) => void> },
onCompositionstart: Function as PropType<CompositionEventHandler>,
onCompositionend: Function as PropType<CompositionEventHandler>,
Expand Down

0 comments on commit 7999a2f

Please sign in to comment.