diff --git a/deploy.sh b/deploy.sh new file mode 100644 index 0000000..adb8cbc --- /dev/null +++ b/deploy.sh @@ -0,0 +1 @@ +scp -r ./apps/web-ele/dist Administrator@47.111.224.22:C:\\web-ui diff --git a/packages/@core/preferences/src/update-css-variables.ts b/packages/@core/preferences/src/update-css-variables.ts index 0d3466a..c5f0eb9 100644 --- a/packages/@core/preferences/src/update-css-variables.ts +++ b/packages/@core/preferences/src/update-css-variables.ts @@ -10,6 +10,14 @@ import { BUILT_IN_THEME_PRESETS } from './constants'; * @param preferences - 当前偏好设置对象,它的主题值将被用来设置文档的主题。 */ function updateCSSVariables(preferences: Preferences) { + document.documentElement.style.setProperty( + '--global-size', + `${preferences.theme.size || 100}%`, + ); + document.documentElement.style.setProperty( + '--radius', + `${preferences.theme.menuSize || 14}px`, + ); // 当修改到颜色变量时,更新 css 变量 const root = document.documentElement; if (!root) {