From 76e25ee7dc655b3a037ddad501b2b01f7fd0fbae Mon Sep 17 00:00:00 2001 From: sroxck <642261686@qq.com> Date: Fri, 8 Nov 2024 10:33:00 +0800 Subject: [PATCH] fix: update menu font property --- package.json | 2 +- packages/@core/preferences/src/update-css-variables.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 84c48f1..73a8922 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "build:antd": "pnpm run build --filter=@vben/web-antd", "build:docker": "./scripts/deploy/build-local-docker-image.sh", "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:play": "pnpm run build --filter=@vben/playground", "changeset": "pnpm exec changeset", diff --git a/packages/@core/preferences/src/update-css-variables.ts b/packages/@core/preferences/src/update-css-variables.ts index c5f0eb9..8dad7d3 100644 --- a/packages/@core/preferences/src/update-css-variables.ts +++ b/packages/@core/preferences/src/update-css-variables.ts @@ -15,7 +15,7 @@ function updateCSSVariables(preferences: Preferences) { `${preferences.theme.size || 100}%`, ); document.documentElement.style.setProperty( - '--radius', + '--contr-font-size', `${preferences.theme.menuSize || 14}px`, ); // 当修改到颜色变量时,更新 css 变量