去掉标题键盘上移
This commit is contained in:
@@ -13,6 +13,8 @@ interface TextareaTagProps {
|
||||
placeholder?: string
|
||||
maxLength?: number
|
||||
options?: { label: string; value: any }[] | null
|
||||
onFocus?: () => void
|
||||
onBlur?: () => void
|
||||
}
|
||||
|
||||
const TextareaTag: React.FC<TextareaTagProps> = ({
|
||||
@@ -20,7 +22,9 @@ const TextareaTag: React.FC<TextareaTagProps> = ({
|
||||
onChange,
|
||||
placeholder = '请输入',
|
||||
maxLength = 1000,
|
||||
options = []
|
||||
options = [],
|
||||
onFocus,
|
||||
onBlur
|
||||
}) => {
|
||||
// 处理文本输入变化
|
||||
const handleTextChange = useCallback((e: any) => {
|
||||
@@ -69,6 +73,8 @@ const TextareaTag: React.FC<TextareaTagProps> = ({
|
||||
onInput={handleTextChange}
|
||||
maxlength={maxLength}
|
||||
autoHeight={false}
|
||||
onFocus={onFocus}
|
||||
onBlur={onBlur}
|
||||
/>
|
||||
</View>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user