From ab7c5f97e4ab4a06adaf59da29656b5341e67e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8F=B2=E9=B8=BD?= <1020103647@qq.com> Date: Sat, 25 May 2024 19:27:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(unocss):=20=E5=85=88=E5=8E=BB=E6=8E=89=20p?= =?UTF-8?q?resetLegacyCompat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uno.config.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/uno.config.ts b/uno.config.ts index 435d7d8..f97cfcf 100644 --- a/uno.config.ts +++ b/uno.config.ts @@ -12,7 +12,7 @@ import { import { presetApplet, presetRemRpx, transformerAttributify } from 'unocss-applet' // @see https://unocss.dev/presets/legacy-compat -import { presetLegacyCompat } from '@unocss/preset-legacy-compat' +// import { presetLegacyCompat } from '@unocss/preset-legacy-compat' const isMp = process.env?.UNI_PLATFORM?.startsWith('mp') ?? false @@ -43,9 +43,10 @@ export default defineConfig({ // 将颜色函数 (rgb()和hsl()) 从空格分隔转换为逗号分隔,更好的兼容性app端,example: // `rgb(255 0 0)` -> `rgb(255, 0, 0)` // `rgba(255 0 0 / 0.5)` -> `rgba(255, 0, 0, 0.5)` - presetLegacyCompat({ - commaStyleColorFunction: true, - }) as Preset, + // 与群友的正常写法冲突,先去掉!(2024-05-25) + // presetLegacyCompat({ + // commaStyleColorFunction: true, + // }) as Preset, ], /** * 自定义快捷语句