<script setup>
import { zhCN, dateZhCN } from 'naive-ui';

/**
 * js 文件下使用这个做类型提示
 * @type import('naive-ui').GlobalThemeOverrides
 */
const themeOverrides = {
  common: {
    primaryColor: '#2d8cf0',
    primaryColorHover: '#2d8cf0',
    primaryColorPressed: '#2d8cf0',
    primaryColorSuppl: '#2d8cf0',
  },
  Tabs: {
    colorSegment: '#f0f2f5',
  },
};
</script>

<template>
  <n-config-provider
    :locale="zhCN"
    :date-locale="dateZhCN"
    :theme-overrides="themeOverrides"
  >
    <n-loading-bar-provider>
      <n-message-provider>
        <n-notification-provider>
          <n-dialog-provider>
            <RouterView />
          </n-dialog-provider>
        </n-notification-provider>
      </n-message-provider>
    </n-loading-bar-provider>
  </n-config-provider>
</template>

<style scoped></style>
