no message
This commit is contained in:
@@ -4,7 +4,11 @@
|
||||
<span class="comment-amount">{{ commentComments || "" }}</span>
|
||||
</div>
|
||||
<div class="post-comment flexacenter" ref="postInputRef" :class="{ 'post-comment-focus': postCommentFocusState }" @click="loginJudgment()">
|
||||
<!-- <div class=""> -->
|
||||
|
||||
<el-input class="post-input flex1" type="textarea" :autosize="postCommentFocusState" placeholder="说说你的想法或疑问…" v-model="commentInputTop" @blur="postCommentFocusBlur" @focus="postCommentFocusState = true"></el-input>
|
||||
<!-- </div> -->
|
||||
|
||||
<div class="post-ok flexcenter" @click="submitAnswerComments(commentInputTop)">发送</div>
|
||||
</div>
|
||||
|
||||
@@ -302,6 +306,7 @@ const submitAnswerComments = (content, index, i) => {
|
||||
},
|
||||
voteoption: haveVotedValue.value || null,
|
||||
...data,
|
||||
...data.data
|
||||
}
|
||||
|
||||
targetCommentList[index]["child"].unshift(targetData)
|
||||
@@ -314,6 +319,7 @@ const submitAnswerComments = (content, index, i) => {
|
||||
islike: 0,
|
||||
likenum: 0,
|
||||
...data,
|
||||
...data.data,
|
||||
child: [],
|
||||
voteoption: haveVotedValue.value || null,
|
||||
}
|
||||
@@ -469,13 +475,14 @@ const floorCommentBtn = inject("floorCommentBtn")
|
||||
|
||||
const postInputRef = ref(null)
|
||||
const postCommentFocusBlur = () => {
|
||||
postCommentFocusState.value = false
|
||||
|
||||
const refref = postInputRef.value
|
||||
nextTick(() => {
|
||||
let targetDom = refref.querySelector(".el-textarea__inner")
|
||||
targetDom.style.height = ""
|
||||
})
|
||||
setTimeout(() => {
|
||||
postCommentFocusState.value = false
|
||||
nextTick(() => {
|
||||
let targetDom = refref.querySelector(".el-textarea__inner")
|
||||
targetDom.style.height = ""
|
||||
})
|
||||
}, 200)
|
||||
}
|
||||
|
||||
defineExpose({ changeCommentVoteoption, wipeCommentVoteoption, reviewsComment, bottomNavigationBar })
|
||||
|
||||
Reference in New Issue
Block a user