naive-ui/demo/SiteRoot.vue

47 lines
1.1 KiB
Vue
Raw Permalink Normal View History

<script lang="ts">
import { defineComponent } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { initRouter, siteSetup } from './store'
import Site from './Site.vue'
export default defineComponent({
name: 'SiteProvider',
components: {
Site
},
setup() {
initRouter(useRouter(), useRoute())
return siteSetup()
}
})
</script>
2021-01-13 12:01:02 +08:00
<template>
2021-02-17 23:31:56 +08:00
<component
:is="configProvider"
2021-01-13 12:01:02 +08:00
class="demo"
namespace="naive-ui-doc"
preflight-style-disabled
:theme-name="themeName"
2021-02-02 13:44:57 +08:00
:theme="theme"
2021-01-13 12:01:02 +08:00
:locale="locale"
:date-locale="dateLocale"
2021-01-13 12:31:41 +08:00
:hljs="hljs"
2021-01-13 12:01:02 +08:00
>
2021-04-05 17:59:04 +08:00
<n-theme-editor :style="themeEditorStyle">
<n-loading-bar-provider>
<n-message-provider>
<n-notification-provider>
<n-modal-provider>
<n-dialog-provider>
<Site />
</n-dialog-provider>
</n-modal-provider>
</n-notification-provider>
</n-message-provider>
</n-loading-bar-provider>
2021-04-06 18:06:04 +08:00
<n-global-style />
</n-theme-editor>
2021-02-17 23:31:56 +08:00
</component>
2021-01-13 12:01:02 +08:00
</template>