wujingjing
2024-11-14 75e6912a8d93725e1038d1ecd9c1438ec223f2ca
src/components/chat/components/playBar/PlayBar.vue
@@ -2,7 +2,7 @@
   <div class="playInput hl_input rounded-[22px] input-border input-shadow">
      <!-- 应用场景 -->
      <div class="application-scenarios absolute bottom-[114%] left-4">
         <div class="flex-items-center space-x-2">
         <div class="flex-items-center space-x-2 set-next-group-type">
            <div
               class="border border-gray-400 border-solid h-8 flex-items-center px-3 py-2 rounded-2xl cursor-pointer space-x-1 hover:bg-[#cae3ff]"
               :class="{ 'bg-[#c5e0ff]': activeGroupType === item, '!text-[#1c86ff]': activeGroupType === item }"
@@ -95,7 +95,7 @@
            <img src="/static/images/wave/HeadImg.png" class="set-img-icon box-border" />
         </el-button> -->
               <el-button title="发送"  class="cursor-pointer" link @click="emits('sendClick')">
               <el-button title="发送" class="cursor-pointer" link @click="emits('sendClick')">
                  <div class="send">
                     <img src="/static/images/wave/QueryImg.png" />
                  </div>
@@ -116,7 +116,6 @@
         :isHome="isHome"
         ref="commonPhrasesRef"
         @updateCommonChatInput="updateCommonChatInput"
      />
   </div>
</template>
@@ -156,7 +155,7 @@
   type: String,
});
const tipIsShow = computed(() => !!inputValue.value.trim() && similarList.value?.length > 0 && triggerShow.value);
const tipIsShow = computed(() => !!inputValue.value?.trim() && similarList.value?.length > 0 && triggerShow.value);
const triggerShow = ref(false);
const inputRef = ref<InputInstance>(null);
@@ -454,20 +453,20 @@
//#region ====================== 常用语功能 ======================
const commonPhrasesRef = ref(null);
const isMessageBoxVisible = ref(false);
// 常用语功能点击
const commonPhrasesClick = () => {
   isShowPhrase.value = true;
};
// 区域关闭常用语功能面板
onClickOutside(commonPhrasesRef, () => {
   const messageBoxElement = document.querySelector('.el-message-box');
   if (messageBoxElement) {
      isMessageBoxVisible.value = true;
      return;
onClickOutside(
   commonPhrasesRef,
   () => {
      isShowPhrase.value = false;
   },
   {
      ignore: ['.el-message-box'],
   }
   isShowPhrase.value = false;
});
);
// 常用语功能输入框更新
const updateCommonChatInput = (val) => {
   inputValue.value = val;