naive-ui/demo/SiteRoot.vue

38 lines
734 B
Vue
Raw Normal View History

2021-01-13 12:01:02 +08:00
<template>
<n-config-provider
class="demo"
namespace="naive-ui-doc"
:unstable-theme="theme"
:locale="locale"
:date-locale="dateLocale"
2021-01-13 12:31:41 +08:00
:hljs="hljs"
2021-01-13 12:01:02 +08:00
>
<n-loading-bar-provider>
<n-message-provider>
<n-notification-provider>
<n-dialog-provider>
<router-view />
</n-dialog-provider>
</n-notification-provider>
</n-message-provider>
</n-loading-bar-provider>
</n-config-provider>
</template>
<script>
import { siteSetup } from './store'
export default {
name: 'SiteProvider',
beforeRouteEnter (to, from, next) {
next()
},
beforeRouteUpdate (to, from, next) {
next()
},
setup () {
return siteSetup()
}
}
</script>