mirror of
https://github.com/bufanyun/hotgo.git
synced 2026-02-11 17:04:33 +08:00
v2.0
This commit is contained in:
40
web/src/components/Application/Application.vue
Normal file
40
web/src/components/Application/Application.vue
Normal file
@@ -0,0 +1,40 @@
|
||||
<template>
|
||||
<n-loading-bar-provider>
|
||||
<n-dialog-provider>
|
||||
<DialogContent />
|
||||
<n-notification-provider>
|
||||
<n-message-provider>
|
||||
<MessageContent />
|
||||
<slot name="default"></slot>
|
||||
</n-message-provider>
|
||||
</n-notification-provider>
|
||||
</n-dialog-provider>
|
||||
</n-loading-bar-provider>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent } from 'vue';
|
||||
import {
|
||||
NDialogProvider,
|
||||
NNotificationProvider,
|
||||
NMessageProvider,
|
||||
NLoadingBarProvider,
|
||||
} from 'naive-ui';
|
||||
import { MessageContent } from '@/components/MessageContent';
|
||||
import { DialogContent } from '@/components/DialogContent';
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Application',
|
||||
components: {
|
||||
NDialogProvider,
|
||||
NNotificationProvider,
|
||||
NMessageProvider,
|
||||
NLoadingBarProvider,
|
||||
MessageContent,
|
||||
DialogContent,
|
||||
},
|
||||
setup() {
|
||||
return {};
|
||||
},
|
||||
});
|
||||
</script>
|
||||
3
web/src/components/Application/index.ts
Normal file
3
web/src/components/Application/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import AppProvider from './Application.vue';
|
||||
|
||||
export { AppProvider };
|
||||
Reference in New Issue
Block a user