antdv-next 版本
1.2.1
Bug 描述
基础项目为nuxt4,使用运行时生成样式,styleProvider配置transformers,实现px转换rem,无法实现预期结果,生成的样式仍然是px,并且transformers属性配置的TS类型与cssinjs工具提供的类型冲突
复现方式
<script lang="ts" setup>
import { px2remTransformer } from '@antdv-next/cssinjs'
const px2rem = px2remTransformer({
rootValue: 32, // 32px = 1rem;
@default 16
})
</script>
系统信息
No response
提交前确认
antdv-next 版本
1.2.1
Bug 描述
基础项目为nuxt4,使用运行时生成样式,styleProvider配置transformers,实现px转换rem,无法实现预期结果,生成的样式仍然是px,并且transformers属性配置的TS类型与cssinjs工具提供的类型冲突
复现方式
<script lang="ts" setup> import { px2remTransformer } from '@antdv-next/cssinjs' const px2rem = px2remTransformer({ rootValue: 32, // 32px = 1rem; @default 16 }) </script>系统信息
No response
提交前确认