refactor: rename topbar to topBar

This commit is contained in:
Hakadao
2024-01-02 00:51:21 +08:00
parent ebb81ed781
commit e98e923bc7
7 changed files with 23 additions and 23 deletions

View File

@@ -266,7 +266,7 @@ provide('scrollbarRef', scrollbarRef)
/>
</div>
<!-- Topbar -->
<!-- TopBar -->
<div m-auto max-w="$bew-page-max-width">
<Transition name="top-bar">
<TopBar

View File

@@ -42,8 +42,8 @@ onMounted(async () => {
favoriteResources.length = 0
handleSearch()
})
emitter.off('topbarVisibleChange')
emitter.on('topbarVisibleChange', (val) => {
emitter.off('topBarVisibleChange')
emitter.on('topBarVisibleChange', (val) => {
shouldMoveCtrlBarUp.value = false
// Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
@@ -62,7 +62,7 @@ onMounted(async () => {
onUnmounted(() => {
emitter.off('reachBottom')
emitter.off('pageRefresh')
emitter.off('topbarVisibleChange')
emitter.off('topBarVisibleChange')
})
async function getFavoriteCategories() {

View File

@@ -55,8 +55,8 @@ onMounted(() => {
emitter.on('pageRefresh', async () => {
recommendContentKey.value = `recommendContent${Number(new Date())}`
})
emitter.off('topbarVisibleChange')
emitter.on('topbarVisibleChange', (val) => {
emitter.off('topBarVisibleChange')
emitter.on('topBarVisibleChange', (val) => {
shouldMoveTabsUp.value = false
// Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
@@ -74,7 +74,7 @@ onMounted(() => {
onUnmounted(() => {
emitter.off('pageRefresh')
emitter.off('topbarVisibleChange')
emitter.off('topBarVisibleChange')
})
</script>

View File

@@ -56,7 +56,7 @@ watch(() => activatedRankingType.value.id, () => {
})
onMounted(() => {
emitter.on('topbarVisibleChange', (val) => {
emitter.on('topBarVisibleChange', (val) => {
shouldMoveAsideUp.value = false
// Allow moving tabs up only when the top bar is not hidden & is set to auto-hide
@@ -75,7 +75,7 @@ onMounted(() => {
})
onBeforeUnmount(() => {
emitter.off('topbarVisibleChange')
emitter.off('topBarVisibleChange')
})
function getRankingVideos() {