yangyin
2024-10-24 27d375fe91b77064c092255674d3e710d698450c
src/views/project/ch/home/Home.vue
@@ -5,23 +5,19 @@
            <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 />
                        </div>
                        <CustomDrawer
                           :isShowAdvanceExample="state.isShowAdvanceExample"
                           @closeExampleClick="closeExampleClick"
                           :rightBox="state.rightBox"
                           @advanceExampleClick="advanceExampleClick"
                        />
                        <CustomDrawer v-model:isShow="state.isShowAdvanceExample" ref="customDrawerRef" @updateChatInput="updateChatInput" />
                     </div>
                  </div>
                  <!-- <p class="declare">
@@ -44,17 +40,19 @@
import CustomDrawer from '/@/components/drawer/CustomDrawer.vue';
let state = reactive({
   isShowAdvanceExample: false,
   rightBox: 0,
});
const topRef = ref(null);
const waterCenterRef = ref(null);
const customDrawerRef = ref(null);
const updateChatInput = (val) => {
   topRef.value.updateChatInput(val);
};
const advanceExampleClick = (status: boolean) => {
   state.isShowAdvanceExample = status;
   state.rightBox = status ? 354 : 0;
};
//关闭高级示例
const closeExampleClick = (status: boolean) => {
   state.isShowAdvanceExample = status;
   state.rightBox = status ? 354 : 0;
   if (status) {
      customDrawerRef.value.getTableData();
   }
};
</script>
<style scoped lang="scss">