From f6dff7eb496ad891af8aff47e3738f3f94cbc01c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E6=9E=B3?= <7854742+wang_rumeng@user.noreply.gitee.com> Date: Sun, 28 Sep 2025 21:37:17 +0800 Subject: [PATCH] =?UTF-8?q?=E8=81=9A=E7=84=A6=E5=88=9B=E4=BD=9C=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E9=AB=98=E5=BA=A6=E5=8F=98=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ChatInputBox/ChatInputBox.tsx | 93 +++++++++++++++++++----- 1 file changed, 76 insertions(+), 17 deletions(-) diff --git a/components/ChatInputBox/ChatInputBox.tsx b/components/ChatInputBox/ChatInputBox.tsx index 598fbe7..4d16c53 100644 --- a/components/ChatInputBox/ChatInputBox.tsx +++ b/components/ChatInputBox/ChatInputBox.tsx @@ -244,6 +244,11 @@ export function ChatInputBox({ noData }: { noData: boolean }) { } }, []); + // H5 文本输入框聚焦动画控制 + const textareaRef = useRef(null); + const [isInputFocused, setIsInputFocused] = useState(false); + const [persistedMobileMaxHeight, setPersistedMobileMaxHeight] = useState(null); + const handleCreateVideo = async () => { if (isCreating) return; // 如果正在创建中,直接返回 @@ -342,23 +347,77 @@ export function ChatInputBox({ noData }: { noData: boolean }) {
{/* 第一行:输入框 */}
- {/* 文本输入框 - 改为textarea */} -