|
|
@ -5,11 +5,15 @@ const { isWorkspaceLoading } = storeToRefs(workspaceStore) |
|
|
|
|
|
|
|
|
|
|
|
const { isSharedBase } = storeToRefs(useProject()) |
|
|
|
const { isSharedBase } = storeToRefs(useProject()) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const { isMobileMode } = useGlobal() |
|
|
|
|
|
|
|
|
|
|
|
const treeViewDom = ref<HTMLElement>() |
|
|
|
const treeViewDom = ref<HTMLElement>() |
|
|
|
|
|
|
|
|
|
|
|
const isTreeViewOnScrollTop = ref(false) |
|
|
|
const isTreeViewOnScrollTop = ref(false) |
|
|
|
|
|
|
|
|
|
|
|
const checkScrollTopMoreThanZero = () => { |
|
|
|
const checkScrollTopMoreThanZero = () => { |
|
|
|
|
|
|
|
if (isMobileMode.value) return |
|
|
|
|
|
|
|
|
|
|
|
if (treeViewDom.value) { |
|
|
|
if (treeViewDom.value) { |
|
|
|
if (treeViewDom.value.scrollTop > 0) { |
|
|
|
if (treeViewDom.value.scrollTop > 0) { |
|
|
|
isTreeViewOnScrollTop.value = true |
|
|
|
isTreeViewOnScrollTop.value = true |
|
|
@ -43,7 +47,7 @@ onUnmounted(() => { |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div |
|
|
|
<div |
|
|
|
ref="treeViewDom" |
|
|
|
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="{ |
|
|
|
:class="{ |
|
|
|
'border-t-1': !isSharedBase, |
|
|
|
'border-t-1': !isSharedBase, |
|
|
|
'border-transparent': !isTreeViewOnScrollTop, |
|
|
|
'border-transparent': !isTreeViewOnScrollTop, |
|
|
|