yangyin
2024-07-19 26ba08fee19ea6c413068dd9ad65988f474b57a0
src/views/project/ch/home/Home.vue
@@ -5,7 +5,7 @@
            <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 relative overflow-hidden">
                     <div class="flex items-center h-full overflow-hidden">
                        <div class="flex items-center flex-column">
                           <waterTop />
                           <waterCenter
@@ -15,19 +15,13 @@
                           />
                           <waterBottom />
                        </div>
                        <div
                           class="retract_icon"
                           :style="`right: ${state.rightBox}px;`"
                           @click="advanceExampleClick(!state.isShowAdvanceExample)"
                        >
                           <i
                              class="text-[#fff] transition-all"
                              :class="state.isShowAdvanceExample ? 'ywicon icon-zuoyoujiantou1' : 'ywicon icon-zuoyoujiantou'"
                           ></i>
                        </div>
                        <div class="h100" :style="`width: ${state.rightBoxWidth}px;transition:width 0.8s;`">
                           <CustomDrawer :isShowAdvanceExample="state.isShowAdvanceExample" @closeExampleClick="closeExampleClick" />
                        </div>
                        <CustomDrawer
                           :isShowAdvanceExample="state.isShowAdvanceExample"
                           @closeExampleClick="closeExampleClick"
                           :rightBox="state.rightBox"
                           @advanceExampleClick="advanceExampleClick"
                        />
                     </div>
                  </div>
                  <!-- <p class="declare">
@@ -50,19 +44,16 @@
import CustomDrawer from '/@/components/drawer/CustomDrawer.vue';
let state = reactive({
   isShowAdvanceExample: false,
   rightBoxWidth: 0,
   rightBox: 0,
});
const waterCenterRef = ref(null);
const advanceExampleClick = (status: boolean) => {
   state.isShowAdvanceExample = status;
   state.rightBoxWidth = status ? 354 : 0;
   state.rightBox = status ? 354 : 0;
};
//关闭高级示例
const closeExampleClick = (status: boolean) => {
   state.isShowAdvanceExample = status;
   state.rightBoxWidth = status ? 354 : 0;
   state.rightBox = status ? 354 : 0;
};
</script>
@@ -90,30 +81,7 @@
   width: 100%;
   padding: 18px;
}
.retract_icon {
   width: 20px;
   height: 48px;
   background: rgba(0, 0, 0, 0.2);
   position: absolute;
   top: 50%;
   right: 0;
   // -webkit-transform: translate(100%, -50%);
   // -ms-transform: translate(100%, -50%);
   // transform: translate(100%, -50%);
   z-index: 9;
   cursor: pointer;
   display: -webkit-box;
   display: -ms-flexbox;
   display: flex;
   -webkit-box-align: center;
   -ms-flex-align: center;
   align-items: center;
   -webkit-box-pack: center;
   -ms-flex-pack: center;
   justify-content: center;
   padding: 0 3px;
   border-radius: 5px 5px 0px;
}
.layout-logo-medium-img {
   width: 28px;
   margin-right: 7px;