From 72397fc462a1256e437b9a3b3e7e9c7fe0b00cb3 Mon Sep 17 00:00:00 2001 From: xiangshu233 Date: Tue, 20 Feb 2024 21:55:07 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20:rewind:=20=E6=98=BE=E7=A4=BA=E5=A3=B0?= =?UTF-8?q?=E6=98=8E=20presetRemToPx=20baseFontSize?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uno.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/uno.config.ts b/uno.config.ts index 6e083dd..a0f776b 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -19,7 +19,10 @@ export default defineConfig({ // 模板使用 viewport 作为移动端适配方案,unocss 默认单位为 rem // 所以需要转成 px,然后由 postcss 把 px 转成 vw/vh,完成适配 // https://unocss.dev/presets/rem-to-px - presetRemToPx(), + presetRemToPx({ + // default + baseFontSize: 16, + }), // 图标预设: https://unocss.dev/presets/icons presetIcons({