fix types in classic UI widgets

This commit is contained in:
Johann150 2022-10-04 17:23:26 +02:00
parent a593dcb003
commit b28c34b57d
Signed by untrusted user: Johann150
GPG key ID: 9EE6577A2A06F8F1
2 changed files with 7 additions and 7 deletions

View file

@ -7,7 +7,7 @@
<XSidebar/>
</div>
<div v-else ref="widgetsLeft" class="widgets left">
<XWidgets :place="'left'" @mounted="attachSticky(widgetsLeft)"/>
<XWidgets place="left" @mounted="attachSticky(widgetsLeft)"/>
</div>
<main class="main" :style="{ background: pageMetadata?.value?.bg }" @contextmenu.stop="onContextmenu">
@ -17,7 +17,7 @@
</main>
<div v-if="isDesktop" ref="widgetsRight" class="widgets right">
<XWidgets :place="null" @mounted="attachSticky(widgetsRight)"/>
<XWidgets @mounted="attachSticky(widgetsRight)"/>
</div>
</div>

View file

@ -17,11 +17,11 @@ const emit = defineEmits<{
(ev: 'mounted'): void;
}>();
const props = defineProps<{
place: {
type: string;
};
}>();
const props = withDefaults(defineProps<{
place?: 'left' | null;
}>(), {
place: null,
});
let editMode: boolean = $ref(false);