forked from FoundKeyGang/FoundKey
fix types in classic UI widgets
This commit is contained in:
parent
a593dcb003
commit
b28c34b57d
2 changed files with 7 additions and 7 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue