<template>
  <n-config-provider :date-locale="dateZhCN" :locale="zhCN" :theme-overrides="themeOverrides">
    <n-dialog-provider>
      <n-message-provider>
        <router-view></router-view>
      </n-message-provider>
    </n-dialog-provider>
  </n-config-provider>
</template>

<script setup lang='ts'>
import { type GlobalThemeOverrides, dateZhCN, zhCN } from "naive-ui";

const themeOverrides: GlobalThemeOverrides = {
  // 待配置主题色
  'common': {
    'primaryColor': '#3D8EFF',       // 主色保持不变的蓝色
    'primaryColorHover': '#6AA1FF',  // 比主色亮20%的浅蓝色
    'primaryColorPressed': '#2B7AEB',// 比主色深10%的深蓝色
    'primaryColorSuppl': '#5A95FF'   // 介于主色和hover之间的蓝色
  },
};
</script>
<style scoped lang='scss'></style>
