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

View file

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