diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-29 19:23:30 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-29 19:23:30 +0900 |
| commit | e0b7c56458ea1c5c034abf1efa26517434c12923 (patch) | |
| tree | 00d9898e34a0caef46dd03357a5eed55f3822c58 /packages | |
| parent | test (diff) | |
| download | sharkey-e0b7c56458ea1c5c034abf1efa26517434c12923.tar.gz sharkey-e0b7c56458ea1c5c034abf1efa26517434c12923.tar.bz2 sharkey-e0b7c56458ea1c5c034abf1efa26517434c12923.zip | |
Revert "test"
This reverts commit 2787158a04c2aa810318d3cf91ccfc3eceb57f4a.
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/src/ui/deck/column.vue | 4 | ||||
| -rw-r--r-- | packages/frontend/src/ui/universal.vue | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/packages/frontend/src/ui/deck/column.vue b/packages/frontend/src/ui/deck/column.vue index f60b6b6ae2..8ecac1dc8e 100644 --- a/packages/frontend/src/ui/deck/column.vue +++ b/packages/frontend/src/ui/deck/column.vue @@ -42,7 +42,7 @@ SPDX-License-Identifier: AGPL-3.0-only </template> <script lang="ts" setup> -import { onBeforeUnmount, onMounted, provide, watch, ref, computed, shallowRef } from 'vue'; +import { onBeforeUnmount, onMounted, provide, watch, useTemplateRef, ref, computed } from 'vue'; import type { Column } from '@/deck.js'; import type { MenuItem } from '@/types/menu.js'; import { updateColumn, swapLeftColumn, swapRightColumn, swapUpColumn, swapDownColumn, stackLeftColumn, popRightColumn, removeColumn, swapColumn } from '@/deck.js'; @@ -68,7 +68,7 @@ const emit = defineEmits<{ (ev: 'headerWheel', ctx: WheelEvent): void; }>(); -const body = shallowRef(); +const body = useTemplateRef('body'); const dragging = ref(false); watch(dragging, v => os.deckGlobalEvents.emit(v ? 'column.dragStart' : 'column.dragEnd')); diff --git a/packages/frontend/src/ui/universal.vue b/packages/frontend/src/ui/universal.vue index 663ec10888..aeabcb3213 100644 --- a/packages/frontend/src/ui/universal.vue +++ b/packages/frontend/src/ui/universal.vue @@ -91,10 +91,11 @@ SPDX-License-Identifier: AGPL-3.0-only </template> <script lang="ts" setup> -import { defineAsyncComponent, provide, onMounted, computed, ref, watch, shallowRef } from 'vue'; +import { defineAsyncComponent, provide, onMounted, computed, ref, watch, useTemplateRef } from 'vue'; import { instanceName } from '@@/js/config.js'; import { isLink } from '@@/js/is-link.js'; import XCommon from './_common_/common.vue'; +import type { Ref } from 'vue'; import type { PageMetadata } from '@/page.js'; import XDrawerMenu from '@/ui/_common_/navbar-for-mobile.vue'; import * as os from '@/os.js'; @@ -129,7 +130,7 @@ window.addEventListener('resize', () => { const pageMetadata = ref<null | PageMetadata>(null); const widgetsShowing = ref(false); -const navFooter = shallowRef(); +const navFooter = useTemplateRef('navFooter'); provide(DI.router, mainRouter); provideMetadataReceiver((metadataGetter) => { |