Skip to content

Commit

Permalink
助手列表可收起
Browse files Browse the repository at this point in the history
  • Loading branch information
classfang committed Feb 28, 2024
1 parent c4779f7 commit 61f56cd
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ onMounted(() => {
const x = event.clientX - chatAssistantRightRef.value.getBoundingClientRect().left
// 判断鼠标是否接近左边框
data.isLeftCloseBtnShow = x < 20
if (x < 20) {
data.isLeftCloseBtnShow = true
} else if (x > 40) {
data.isLeftCloseBtnShow = false
}
})
})
</script>
Expand Down

0 comments on commit 61f56cd

Please sign in to comment.