mirror of
https://github.com/xiangshu233/vue3-vant4-mobile.git
synced 2025-04-05 06:22:45 +08:00
chore: ⏪ 显示声明 presetRemToPx baseFontSize
This commit is contained in:
parent
598ebc78b7
commit
72397fc462
@ -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({
|
||||
|
Loading…
x
Reference in New Issue
Block a user