去掉标题键盘上移
This commit is contained in:
@@ -8,13 +8,17 @@ interface TitleTextareaProps {
|
||||
onChange: (value: string) => void
|
||||
maxLength?: number
|
||||
placeholder?: string
|
||||
onFocus?: () => void
|
||||
onBlur?: () => void
|
||||
}
|
||||
|
||||
const TitleTextarea: React.FC<TitleTextareaProps> = ({
|
||||
value='',
|
||||
onChange,
|
||||
maxLength = 20,
|
||||
placeholder = '好的标题更吸引人哦'
|
||||
placeholder = '好的标题更吸引人哦',
|
||||
onFocus,
|
||||
onBlur
|
||||
}) => {
|
||||
return (
|
||||
<View className='title-input-wrapper'>
|
||||
@@ -26,6 +30,8 @@ const TitleTextarea: React.FC<TitleTextareaProps> = ({
|
||||
maxlength={maxLength}
|
||||
autoSize={true}
|
||||
placeholderClass='title-input-placeholder'
|
||||
onFocus={onFocus}
|
||||
onBlur={onBlur}
|
||||
/>
|
||||
<View className='char-count'>{value.length}/{maxLength}</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user