feat(unocss): 先去掉 presetLegacyCompat
This commit is contained in:
parent
65b8be6f57
commit
ab7c5f97e4
@ -12,7 +12,7 @@ import {
|
|||||||
import { presetApplet, presetRemRpx, transformerAttributify } from 'unocss-applet'
|
import { presetApplet, presetRemRpx, transformerAttributify } from 'unocss-applet'
|
||||||
|
|
||||||
// @see https://unocss.dev/presets/legacy-compat
|
// @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
|
const isMp = process.env?.UNI_PLATFORM?.startsWith('mp') ?? false
|
||||||
|
|
||||||
@ -43,9 +43,10 @@ export default defineConfig({
|
|||||||
// 将颜色函数 (rgb()和hsl()) 从空格分隔转换为逗号分隔,更好的兼容性app端,example:
|
// 将颜色函数 (rgb()和hsl()) 从空格分隔转换为逗号分隔,更好的兼容性app端,example:
|
||||||
// `rgb(255 0 0)` -> `rgb(255, 0, 0)`
|
// `rgb(255 0 0)` -> `rgb(255, 0, 0)`
|
||||||
// `rgba(255 0 0 / 0.5)` -> `rgba(255, 0, 0, 0.5)`
|
// `rgba(255 0 0 / 0.5)` -> `rgba(255, 0, 0, 0.5)`
|
||||||
presetLegacyCompat({
|
// 与群友的正常写法冲突,先去掉!(2024-05-25)
|
||||||
commaStyleColorFunction: true,
|
// presetLegacyCompat({
|
||||||
}) as Preset,
|
// commaStyleColorFunction: true,
|
||||||
|
// }) as Preset,
|
||||||
],
|
],
|
||||||
/**
|
/**
|
||||||
* 自定义快捷语句
|
* 自定义快捷语句
|
||||||
|
Loading…
x
Reference in New Issue
Block a user