提交 75b47e8c 编写于 作者: View Design's avatar View Design

add layout

上级 a5999965
<template>
<div>
<NuxtPage />
</div>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
<script setup lang="ts">
</script>
\ No newline at end of file
<template>
<h1>Home</h1>
</template>
<script>
export default {
name: 'page-index'
}
</script>
\ No newline at end of file
<script setup>
</script>
<script setup lang="ts">
const colorMode = useColorMode()
const isDark = computed({
get () {
return colorMode.value === 'dark'
},
set () {
colorMode.preference = colorMode.value === 'dark' ? 'light' : 'dark'
}
})
</script>
<template>
<ClientOnly>
<UButton
:icon="isDark ? 'i-heroicons-moon-20-solid' : 'i-heroicons-sun-20-solid'"
color="gray"
variant="ghost"
aria-label="Theme"
@click="isDark = !isDark"
/>
<template #fallback>
<div class="w-8 h-8" />
</template>
<UButton>Button</UButton>
</ClientOnly>
<div>
Search
</div>
</template>
<script setup>
defineOptions({
name: 'page-search`'
});
</script>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册