fix: update variables font size
This commit is contained in:
parent
ab4b26c894
commit
58cd9905d2
1
deploy.sh
Normal file
1
deploy.sh
Normal file
@ -0,0 +1 @@
|
||||
scp -r ./apps/web-ele/dist Administrator@47.111.224.22:C:\\web-ui
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user