From cee87e8401fdfb46f9cb9a4ad2818daeb09a59b4 Mon Sep 17 00:00:00 2001 From: wujingjing <gersonwu@qq.com> Date: 星期日, 03 十一月 2024 15:15:55 +0800 Subject: [PATCH] Merge branch 'test' of http://47.103.154.90:83/r/WI/Web.V1.0 into test --- src/components/chat/components/playBar/PlayBar.vue | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/src/components/chat/components/playBar/PlayBar.vue b/src/components/chat/components/playBar/PlayBar.vue index 2ad4d43..2206a95 100644 --- a/src/components/chat/components/playBar/PlayBar.vue +++ b/src/components/chat/components/playBar/PlayBar.vue @@ -49,8 +49,10 @@ class="relative align-bottom set-inputAnswer" type="textarea" resize="none" + maxlength="1024" :autosize="{ minRows: 1, maxRows: 8 }" v-elInputFocus + show-word-limit @keydown="keydownInput" @input="inputText" v-model="inputValue" @@ -108,7 +110,13 @@ @updateInputValue="updateInputValue" :isHome="isHome" /> - <CommonPhrases v-model:isShow="isShowPhrase" v-show="isShowPhrase" :isHome="isHome"/> + <CommonPhrases + v-model:isShow="isShowPhrase" + v-show="isShowPhrase" + :isHome="isHome" + ref="commonPhrasesRef" + @updateCommonChatInput="updateCommonChatInput" + /> </div> </template> @@ -429,9 +437,14 @@ //#endregion //#region ====================== 甯哥敤璇姛鑳� ====================== +const commonPhrasesRef = ref(null); const commonPhrasesClick = () => { isShowPhrase.value = true; }; +const updateCommonChatInput = (val) => { + inputValue.value = val; + isShowPhrase.value = false; +}; //#endregion </script> <style scoped lang="scss"> -- Gitblit v1.9.3