wujingjing
2024-11-03 cee87e8401fdfb46f9cb9a4ad2818daeb09a59b4
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">