fix: 修改文件建构

This commit is contained in:
奔跑的面条
2022-04-14 10:05:57 +08:00
parent 9e9410533c
commit 3c85322450
76 changed files with 76 additions and 117 deletions
@@ -0,0 +1,3 @@
import DialogContent from './index.vue';
export { DialogContent };
@@ -0,0 +1,6 @@
<template></template>
<script lang="ts" setup>
import { useDialog } from 'naive-ui';
//挂载在 window 方便与在js中使用
window['$dialog'] = useDialog();
</script>
@@ -0,0 +1,3 @@
import LoadingContent from './index.vue';
export { LoadingContent };
@@ -0,0 +1,8 @@
<template></template>
<script lang="ts" setup>
import { useLoadingBar } from 'naive-ui'
// 挂载在 window 方便与在js中使用
window['$loading'] = useLoadingBar()
window['$loading'].finish()
</script>
@@ -0,0 +1,3 @@
import MessageContent from './index.vue';
export { MessageContent };
@@ -0,0 +1,7 @@
<template></template>
<script lang="ts" setup>
import { useMessage } from 'naive-ui';
//挂载在 window 方便与在js中使用
window['$message'] = useMessage();
</script>