yangyin
2024-07-19 26ba08fee19ea6c413068dd9ad65988f474b57a0
src/views/project/ch/home/Home.vue
@@ -5,12 +5,23 @@
            <div class="w100 h100 overflow-hidden">
               <div class="pc-chatRoom w100 h100">
                  <div class="homeBox w100 h-full">
                     <div class="flex items-center flex-column mt-20">
                     <div class="flex items-center h-full overflow-hidden">
                        <div class="flex items-center flex-column">
                           <waterTop />
                           <waterCenter />
                           <waterCenter
                              @advanceExampleClick="advanceExampleClick"
                              :isShowAdvanceExample="state.isShowAdvanceExample"
                              ref="waterCenterRef"
                           />
                           <waterBottom />
                        </div>
                        <CustomDrawer
                           :isShowAdvanceExample="state.isShowAdvanceExample"
                           @closeExampleClick="closeExampleClick"
                           :rightBox="state.rightBox"
                           @advanceExampleClick="advanceExampleClick"
                        />
                     </div>
                  </div>
                  <!-- <p class="declare">
@@ -26,9 +37,25 @@
</template>
<script setup lang="ts">
import { reactive, ref } from 'vue';
import waterBottom from './component/waterRight/bottom.vue';
import waterCenter from './component/waterRight/center.vue';
import waterTop from './component/waterRight/top.vue';
import CustomDrawer from '/@/components/drawer/CustomDrawer.vue';
let state = reactive({
   isShowAdvanceExample: false,
   rightBox: 0,
});
const waterCenterRef = ref(null);
const advanceExampleClick = (status: boolean) => {
   state.isShowAdvanceExample = status;
   state.rightBox = status ? 354 : 0;
};
//关闭高级示例
const closeExampleClick = (status: boolean) => {
   state.isShowAdvanceExample = status;
   state.rightBox = status ? 354 : 0;
};
</script>
<style scoped lang="scss">
.pc-chat_room {
@@ -54,6 +81,7 @@
   width: 100%;
   padding: 18px;
}
.layout-logo-medium-img {
   width: 28px;
   margin-right: 7px;