-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.vue
37 lines (36 loc) · 888 Bytes
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<template>
<n-message-provider>
<n-config-provider
:theme-overrides="themeOverrides"
:locale="zhCN"
:date-locale="dateZhCN"
>
<n-dialog-provider>
<div id="content">
<router-view class="router"></router-view>
</div>
</n-dialog-provider>
</n-config-provider>
</n-message-provider>
</template>
<script setup>
import { NConfigProvider, zhCN, dateZhCN, NDialogProvider } from 'naive-ui';
/**
* js 文件下使用这个做类型提示
* @type import('naive-ui').GlobalThemeOverrides
*/
const themeOverrides = {
common: {
primaryColor: '#f60',
primaryColorHover: '#f60',
},
Button: {
// textColor: '#fff',
},
};
</script>
<style lang="scss">
#nprogress .bar {
background: #753fe0 !important;
}
</style>