sonofmagic / weapp-tailwindcss

bring tailwindcss to weapp ! 把 `tailwindcss` 原子化**带入小程序开发吧 ! 原 `weapp-tailwindcss-webpack-plugin`

Home Page:https://weapp-tw.icebreaker.top

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

类名转换错误

Runc2333 opened this issue · comments

描述这个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

fixed in 3.0.9