// Naive UI 主题与离散式反馈(message/dialog 无需 Provider 包裹即可调用) import { createDiscreteApi, zhCN, dateZhCN } from 'naive-ui' export const themeOverrides = { common: { primaryColor: '#3b6cff', primaryColorHover: '#5e84ff', primaryColorPressed: '#2f56d6', primaryColorSuppl: '#4c79ff', infoColor: '#3b6cff', successColor: '#22b07a', warningColor: '#eab308', errorColor: '#e5484d', borderRadius: '10px', borderRadiusSmall: '8px', fontFamily: '"HarmonyOS Sans SC","Microsoft YaHei UI","PingFang SC",-apple-system,"Segoe UI",sans-serif', }, Card: { borderRadius: '16px', }, Button: { borderRadiusMedium: '10px', borderRadiusLarge: '12px', }, Menu: { itemHeight: '46px', itemBorderRadius: '10px', itemTextColor: '#3a4660', itemTextColorHover: '#3b6cff', itemTextColorActive: '#3b6cff', itemTextColorActiveHover: '#2f56d6', itemColorHover: 'rgba(31, 45, 80, .05)', itemColorActive: 'rgba(59, 108, 255, .10)', itemColorActiveHover: 'rgba(59, 108, 255, .15)', iconColor: '#7b8aa8', iconColorHover: '#3b6cff', iconColorActive: '#3b6cff', iconColorActiveHover: '#2f56d6', }, DataTable: { thColor: '#f5f8fe', thTextColor: '#5b6b8c', thFontWeight: '600', tdColor: 'transparent', tdColorHover: 'rgba(59,108,255,.06)', borderColor: 'rgba(88,113,183,.10)', borderRadius: '12px', }, Dialog: { borderRadius: '16px', }, } export const { message, dialog, notification } = createDiscreteApi( ['message', 'dialog', 'notification'], { configProviderProps: { themeOverrides, locale: zhCN, dateLocale: dateZhCN }, } ) export { zhCN, dateZhCN }