From e4fab491dbfc2951d7e55cd063da59a1323b5268 Mon Sep 17 00:00:00 2001 From: Frost-ZX Date: Sat, 31 Aug 2024 18:11:50 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E6=94=B9=E5=9F=BA=E7=A1=80?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 6 ++++++ src/assets/js/naive-ui.js | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/App.vue b/src/App.vue index f495a09..5f114bc 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,6 +4,8 @@ :inline-theme-disabled="configProviderProps.inlineThemeDisabled" :locale="configProviderProps.locale" :style="{ + '--border-radius': themeCommon.borderRadius, + '--border-radius-small': themeCommon.borderRadiusSmall, '--box-shadow-1': themeVars.boxShadow1, '--box-shadow-2': themeVars.boxShadow2, '--box-shadow-3': themeVars.boxShadow3, @@ -164,6 +166,10 @@ html { height: 0; background-color: #FFF; + &.is-transparent { + background-color: transparent; + } + &.with-margin { margin: 20px; width: calc(100% - 40px); diff --git a/src/assets/js/naive-ui.js b/src/assets/js/naive-ui.js index 8524bd9..2a53aba 100644 --- a/src/assets/js/naive-ui.js +++ b/src/assets/js/naive-ui.js @@ -15,6 +15,8 @@ export const configProviderProps = { // 调整主题变量 themeOverrides: { common: { + borderRadius: '4px', + borderRadiusSmall: '2px', errorColor: '#E34D59', errorColorHover: '#F36D78', errorColorPressed: '#C9353F',