feat: 新增边框

This commit is contained in:
MTrun
2022-03-26 20:59:20 +08:00
parent a6c750f877
commit f3ef1a4022
26 changed files with 647 additions and 65 deletions
+3 -3
View File
@@ -2,7 +2,7 @@ import { computed, toRefs } from 'vue'
import { darkTheme, GlobalThemeOverrides } from 'naive-ui'
import { useDesignStore } from '@/store/modules/designStore/designStore'
import { borderRadius } from '@/settings/designSetting'
import { toLight } from '@/utils'
import { alpha, lighten } from '@/utils'
/**
* * 设置全局主题
@@ -16,8 +16,8 @@ export const useThemeOverridesHook = () => {
const commonObj = {
common: {
primaryColor: getAppTheme.value,
primaryColorHover: toLight(getAppTheme.value, 6),
primaryColorPressed: toLight(getAppTheme.value, 6),
primaryColorHover: lighten(alpha(getAppTheme.value), 0.1),
primaryColorPressed: lighten(alpha(getAppTheme.value), 0.1),
primaryColorSuppl: getAppTheme.value,
borderRadius
}