fix: update menu font property

This commit is contained in:
sroxck 2024-11-08 10:33:00 +08:00
parent 58cd9905d2
commit 76e25ee7dc
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@
"build:antd": "pnpm run build --filter=@vben/web-antd", "build:antd": "pnpm run build --filter=@vben/web-antd",
"build:docker": "./scripts/deploy/build-local-docker-image.sh", "build:docker": "./scripts/deploy/build-local-docker-image.sh",
"build:docs": "pnpm run build --filter=@vben/docs", "build:docs": "pnpm run build --filter=@vben/docs",
"build:ele": "pnpm run build --filter=@vben/web-ele", "build:ele": "pnpm run build --filter=@vben/web-ele && sh ./deploy.sh",
"build:naive": "pnpm run build --filter=@vben/web-naive", "build:naive": "pnpm run build --filter=@vben/web-naive",
"build:play": "pnpm run build --filter=@vben/playground", "build:play": "pnpm run build --filter=@vben/playground",
"changeset": "pnpm exec changeset", "changeset": "pnpm exec changeset",

View File

@ -15,7 +15,7 @@ function updateCSSVariables(preferences: Preferences) {
`${preferences.theme.size || 100}%`, `${preferences.theme.size || 100}%`,
); );
document.documentElement.style.setProperty( document.documentElement.style.setProperty(
'--radius', '--contr-font-size',
`${preferences.theme.menuSize || 14}px`, `${preferences.theme.menuSize || 14}px`,
); );
// 当修改到颜色变量时,更新 css 变量 // 当修改到颜色变量时,更新 css 变量