| | |
| | | <div class="homeBox w100 h-full"> |
| | | <div class="flex items-center h-full overflow-hidden"> |
| | | <div class="flex items-center flex-column"> |
| | | <waterTop /> |
| | | <waterTop ref="topRef"/> |
| | | <waterCenter |
| | | @advanceExampleClick="advanceExampleClick" |
| | | :isShowAdvanceExample="state.isShowAdvanceExample" |
| | |
| | | </div> |
| | | |
| | | <CustomDrawer |
| | | :isShowAdvanceExample="state.isShowAdvanceExample" |
| | | @closeExampleClick="closeExampleClick" |
| | | :rightBox="state.rightBox" |
| | | @advanceExampleClick="advanceExampleClick" |
| | | v-model:isShow = "state.isShowAdvanceExample" |
| | | @updateChatInput="updateChatInput" |
| | | /> |
| | | </div> |
| | | </div> |
| | |
| | | import CustomDrawer from '/@/components/drawer/CustomDrawer.vue'; |
| | | let state = reactive({ |
| | | isShowAdvanceExample: false, |
| | | rightBox: 0, |
| | | }); |
| | | |
| | | const topRef = ref(null); |
| | | const waterCenterRef = 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; |
| | | }; |
| | | |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | .pc-chat_room { |