zdg #368

Merged
zhengdegang merged 2 commits from zdg into main 2024-10-25 15:29:58 +08:00
1 changed files with 5 additions and 6 deletions
Showing only changes of commit 9674c68d11 - Show all commits

View File

@ -73,9 +73,8 @@ const list = computed(() => props.data.map((o,i) => {
}))
onMounted(() => {
posBtnAll = btnRef.value.getBoundingClientRect()
hPost.value = posBtnAll.height
curNode = sessionStore.get('subject.curNode')
hPost.value = Math.round(posBtnAll.height)
curNode = sessionStore?.get?.('subject.curNode')
})
// === ===
//
@ -97,7 +96,7 @@ const clickHandel = (o, e) => {
isVisible.value = !isColse //
activeObj.value = o
const nodeH = parseInt(node.height / 2) //
topPos.value = parseInt(node.top) - posBtnAll.top + nodeH
topPos.value = Math.round(parseInt(node.top) - posBtnAll.top + nodeH)
}
emit('change', o)
}
@ -149,8 +148,8 @@ const closeActive = () =>{
--top: 30px;
--height: 40vh;
position: fixed;
inset: 50% 75px auto auto;
transform: translateY(-50%);
inset: 0 75px auto auto;
// transform: translateY(-50%);
background-color: #121212;
padding: 10px;
border-radius: 4px;