gerson
2024-08-25 9a8a56f6d2cfe0ab9ec9368d58d03d1cf10ade28
src/views/project/ch/home/Home.vue
@@ -5,22 +5,22 @@
            <div class="w100 h100 overflow-hidden">
               <div class="pc-chatRoom w100 h100">
                  <div class="homeBox w100 h-full">
                     <div class="flex items-center h-full overflow-hidden">
                        <div class="flex items-center flex-column">
                           <waterTop />
                     <div class="flex items-center h-full ">
                        <div class="flex items-center flex-column" style="overflow: unset !important;">
                           <waterTop ref="topRef" />
                           <waterCenter
                              @advanceExampleClick="advanceExampleClick"
                              :isShowAdvanceExample="state.isShowAdvanceExample"
                              ref="waterCenterRef"
                              @updateChatInput="updateChatInput"
                           />
                           <waterBottom />
                           <waterBottom  />
                        </div>
                        <CustomDrawer
                           :isShowAdvanceExample="state.isShowAdvanceExample"
                           @closeExampleClick="closeExampleClick"
                           :rightBox="state.rightBox"
                           @advanceExampleClick="advanceExampleClick"
                           v-model:isShow="state.isShowAdvanceExample"
                           ref="customDrawerrRef"
                           @updateChatInput="updateChatInput"
                        />
                     </div>
                  </div>
@@ -44,18 +44,22 @@
import CustomDrawer from '/@/components/drawer/CustomDrawer.vue';
let state = reactive({
   isShowAdvanceExample: false,
   rightBox: 0,
});
const topRef = ref(null);
const waterCenterRef = ref(null);
const customDrawerrRef = ref(null);
const updateChatInput = (val) => {
   topRef.value.updateChatInput(val);
};
const advanceExampleClick = (status: boolean) => {
   state.isShowAdvanceExample = status;
   state.rightBox = status ? 354 : 0;
   if (status) {
      customDrawerrRef.value.getTableData();
   }
};
//关闭高级示例
const closeExampleClick = (status: boolean) => {
   state.isShowAdvanceExample = status;
   state.rightBox = status ? 354 : 0;
};
</script>
<style scoped lang="scss">
.pc-chat_room {