| | |
| | | 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" |
| | |
| | | @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> |
| | | |
| | |
| | | //#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"> |