Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Convert Page component to TypeScript #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 21 additions & 11 deletions lib/components/base/Page.vue
Original file line number Diff line number Diff line change
@@ -1,14 +1,24 @@
<script setup>
defineProps({
collapsible: {
type: Boolean,
default: false,
},
rightSidebar: {
type: Boolean,
default: false,
},
})
<script setup lang="ts">
withDefaults(
defineProps<{
collapsible?: boolean
rightSidebar?: boolean
}>(),
{
collapsible: false,
rightSidebar: false,
}
)

// eslint-disable-next-line @typescript-eslint/no-explicit-any
type SlotReturn = any

defineSlots<{
header(): SlotReturn
sidebar?(): SlotReturn
footer?(): SlotReturn
default(): SlotReturn
}>()
</script>

<template>
Expand Down