naive-ui/demo/SiteRoot.vue

40 lines
793 B
Vue
Raw Normal View History

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"
: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-dialog-provider>
<Site />
</n-dialog-provider>
</n-notification-provider>
</n-message-provider>
</n-loading-bar-provider>
</n-theme-editor>
2021-02-17 23:31:56 +08:00
</component>
2021-01-13 12:01:02 +08:00
</template>
<script>
import { siteSetup } from './store'
import Site from './Site.vue'
2021-01-13 12:01:02 +08:00
export default {
name: 'SiteProvider',
components: {
Site
},
2021-01-13 12:01:02 +08:00
setup () {
return siteSetup()
}
}
</script>