feat: fix
This commit is contained in:
@@ -5,7 +5,7 @@ import React, {
|
||||
useRef,
|
||||
useImperativeHandle,
|
||||
} from "react";
|
||||
import { View, Text, Image, Input } from "@tarojs/components";
|
||||
import { View, Text, Image, Input, Textarea } from "@tarojs/components";
|
||||
import Taro from "@tarojs/taro";
|
||||
import dayjs from "dayjs";
|
||||
import classnames from "classnames";
|
||||
@@ -118,7 +118,7 @@ const CommentInput = forwardRef<CommentInputRef, CommentInputProps>(function (
|
||||
zIndex={1002}
|
||||
onClose={onClose}
|
||||
style={{
|
||||
height: "60px!important",
|
||||
// height: "60px!important",
|
||||
minHeight: "unset",
|
||||
bottom:
|
||||
isKeyboardVisible && keyboardHeight > 0 ? `${keyboardHeight}px` : "0",
|
||||
@@ -127,7 +127,7 @@ const CommentInput = forwardRef<CommentInputRef, CommentInputProps>(function (
|
||||
>
|
||||
<View className={styles.inputContainer}>
|
||||
<View className={styles.inputWrapper}>
|
||||
<Input
|
||||
<Textarea
|
||||
adjustPosition={false}
|
||||
ref={inputDomRef}
|
||||
className={styles.input}
|
||||
@@ -140,6 +140,8 @@ const CommentInput = forwardRef<CommentInputRef, CommentInputProps>(function (
|
||||
onConfirm={handleSend}
|
||||
focus
|
||||
maxlength={100}
|
||||
autoHeight
|
||||
showCount
|
||||
/>
|
||||
</View>
|
||||
<View className={styles.sendIcon} onClick={handleSend}>
|
||||
@@ -318,7 +320,7 @@ export default forwardRef(function Comments(
|
||||
async function markCommentAsRead() {
|
||||
if (!message_id) return;
|
||||
try {
|
||||
await messageService.markAsRead('comment', [message_id]);
|
||||
await messageService.markAsRead("comment", [message_id]);
|
||||
} catch (e) {
|
||||
console.error("标记评论已读失败:", e);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user