| | |
| | | <!-- <el-button title="AI语音对话" class="cursor-pointer" link style="margin-left: unset" @click="audioChangeWord"> |
| | | <img src="/static/images/wave/HeadImg.png" class="set-img-icon box-border" /> |
| | | </el-button> --> |
| | | <el-button |
| | | title="清除" |
| | | class="cursor-pointer" |
| | | link |
| | | style="margin-left: unset" |
| | | @click="clearTextarea" |
| | | icon="ele-Close" |
| | | v-if="inputValue" |
| | | > |
| | | </el-button> |
| | | <el-button class="cursor-pointer" link > |
| | | <el-tooltip v-if="isTalking" placement="top" content="停止生成"> |
| | | <div class="size-[36px] rounded-full flex-center border-2 border-solid border-black text-black" @click="emits('stopGenClick')"> |
| | | <span class="ywifont ywicon-jieshu"></span> |
| | | </div> |
| | | </el-tooltip> |
| | | |
| | | <el-button title="发送" class="cursor-pointer" link @click="emits('sendClick')"> |
| | | <div class="send"> |
| | | <img src="/static/images/wave/QueryImg.png" /> |
| | | </div> |
| | | <el-tooltip v-else placement="top" content="发送"> |
| | | <div class="size-[36px] rounded-full bg-black flex-center" @click="emits('sendClick')"> |
| | | <img src="/static/images/wave/QueryImg.png" /> |
| | | </div> |
| | | </el-tooltip> |
| | | </el-button> |
| | | </div> |
| | | </div> |
| | |
| | | import { onClickOutside } from '@vueuse/core'; |
| | | import type { InputInstance } from 'element-plus'; |
| | | import { ElMessage } from 'element-plus'; |
| | | import { sortBy } from 'lodash-es'; |
| | | import getCaretCoordinates from 'textarea-caret'; |
| | | import { computed, nextTick, ref, toRefs, watch } from 'vue'; |
| | | import InfoDetail from './InfoDetail.vue'; |
| | |
| | | import VoicePage from './voicePage/VoicePage.vue'; |
| | | import { getMetricsNames, querySimilarityHistory } from '/@/api/ai/chat'; |
| | | import { activeGroupType, groupTypeList, groupTypeMapIcon } from '/@/stores/chatRoom'; |
| | | import { sortBy } from 'lodash-es'; |
| | | const emits = defineEmits(['sendClick', 'showUpChatClick', 'showDownChatClick']); |
| | | const emits = defineEmits(['sendClick', 'showUpChatClick', 'showDownChatClick','stopGenClick']); |
| | | const props = defineProps({ |
| | | isTalking: Boolean, |
| | | isHome: Boolean, |
| | |
| | | onClickOutside(tipEleRef, () => { |
| | | triggerShow.value = false; |
| | | }); |
| | | |
| | | const clearTextarea = () => { |
| | | inputValue.value = ''; |
| | | }; |
| | | const inputText = (text) => { |
| | | nextTick(() => { |
| | | setTimeout(() => { |