sonofmagic / weapp-tailwindcss

bring tailwindcss to weapp ! 把 `tailwindcss` 原子化思想带入小程序开发吧 ! 原 `weapp-tailwindcss-webpack-plugin`
https://weapp-tw.icebreaker.top
MIT License
1.12k stars 82 forks source link

类名转换错误 #276

Closed Runc2333 closed 5 months ago

Runc2333 commented 5 months ago

描述这个Bug before:rounded-[20rpx] 在部分情况下无法正确转换

如何重现 Steps to reproduce the behavior: 当一个元素中同时出现rounded-[20rpx]before:rounded-[20rpx]时,如果伪类处在后面

<View className='relative h-12 w-12 before:absolute before:inset-0 before:border-2 before:border-red-500 rounded-[20rpx] before:rounded-[20rpx]' />

则无法转换出正确的结果: relative h-12 w-12 beforecabsolute beforecinset-0 beforecborder-2 beforecborder-red-500 rounded-_20rpx_ before rounded-_20rpx_

image

伪类处在前面时不受影响,结果正确:

<View className='relative h-12 w-12 before:absolute before:inset-0 before:border-2 before:border-red-500 before:rounded-[20rpx] rounded-[20rpx]' />

relative h-12 w-12 beforecabsolute beforecinset-0 beforecborder-2 beforecborder-red-500 beforecrounded-_20rpx_ rounded-_20rpx_

image

sonofmagic commented 5 months ago

fixed in 3.0.9