|
|
|
@ -5,11 +5,15 @@ const { isWorkspaceLoading } = storeToRefs(workspaceStore)
|
|
|
|
|
|
|
|
|
|
const { isSharedBase } = storeToRefs(useProject()) |
|
|
|
|
|
|
|
|
|
const { isMobileMode } = useGlobal() |
|
|
|
|
|
|
|
|
|
const treeViewDom = ref<HTMLElement>() |
|
|
|
|
|
|
|
|
|
const isTreeViewOnScrollTop = ref(false) |
|
|
|
|
|
|
|
|
|
const checkScrollTopMoreThanZero = () => { |
|
|
|
|
if (isMobileMode.value) return |
|
|
|
|
|
|
|
|
|
if (treeViewDom.value) { |
|
|
|
|
if (treeViewDom.value.scrollTop > 0) { |
|
|
|
|
isTreeViewOnScrollTop.value = true |
|
|
|
@ -43,7 +47,7 @@ onUnmounted(() => {
|
|
|
|
|
</div> |
|
|
|
|
<div |
|
|
|
|
ref="treeViewDom" |
|
|
|
|
class="flex flex-col nc-scrollbar-dark-md flex-grow" |
|
|
|
|
class="flex flex-col nc-scrollbar-dark-md flex-grow xs:(border-transparent pt-2)" |
|
|
|
|
:class="{ |
|
|
|
|
'border-t-1': !isSharedBase, |
|
|
|
|
'border-transparent': !isTreeViewOnScrollTop, |
|
|
|
|