2024-07-12 02:19:13 +08:00
|
|
|
<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"
|
2022-05-16 23:29:27 +08:00
|
|
|
preflight-style-disabled
|
2021-03-05 00:39:10 +08:00
|
|
|
: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">
|
2021-03-30 02:25:22 +08:00
|
|
|
<n-loading-bar-provider>
|
|
|
|
<n-message-provider>
|
|
|
|
<n-notification-provider>
|
2024-01-29 22:12:38 +08:00
|
|
|
<n-modal-provider>
|
|
|
|
<n-dialog-provider>
|
|
|
|
<Site />
|
|
|
|
</n-dialog-provider>
|
|
|
|
</n-modal-provider>
|
2021-03-30 02:25:22 +08:00
|
|
|
</n-notification-provider>
|
|
|
|
</n-message-provider>
|
|
|
|
</n-loading-bar-provider>
|
2021-04-06 18:06:04 +08:00
|
|
|
<n-global-style />
|
2021-03-30 02:25:22 +08:00
|
|
|
</n-theme-editor>
|
2021-02-17 23:31:56 +08:00
|
|
|
</component>
|
2021-01-13 12:01:02 +08:00
|
|
|
</template>
|