-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.vue
30 lines (25 loc) · 774 Bytes
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<template>
<AppProviders v-bind="configProviderProps">
<NGlobalStyle />
<NuxtLayout name="default">
<NSpace
vertical
size="large"
>
<CounterStore />
<NuxtPage />
</NSpace>
</NuxtLayout>
</AppProviders>
</template>
<script setup lang="ts">
import { NGlobalStyle, type ConfigProviderProps, NSpace } from 'naive-ui'
import AppProviders from '~~/components/functional/app-providers'
import { useTheme } from '~~/composables/useTheme'
import CounterStore from '~/components/examples/counter-store.vue'
useHead({ title: 'Nuxt 3 + NaiveUI Starter' })
const { naiveTheme } = useTheme()
const configProviderProps = computed<ConfigProviderProps>(() => ({
theme: naiveTheme.value
}))
</script>