sonofmagic / weapp-tailwindcss

weapp-tailwindcss - bring tailwindcss to weapp ! 把 tailwindcss 原子化思想带入小程序开发吧 ! weapp-vite 把现代化的开发模式带入小程序开发
https://weapp-tw.icebreaker.top
MIT License
1.2k stars 87 forks source link

@layer components 中的优先级无法被覆盖 #235

Closed brickhu closed 8 months ago

brickhu commented 12 months ago

描述这个Bug @layer components { .testCmpnt { @apply bg-black; } } 在wxml中添加bg-white无法覆盖bg-black, 不知道是wxml不支持@layer还是插件导致

sonofmagic commented 12 months ago

我在 https://github.com/sonofmagic/weapp-tailwindcss/tree/main/demo/uni-app-vue3-vite 尝试复现你这个case, 结果运行到是正常的,详见 https://github.com/sonofmagic/weapp-tailwindcss/commit/51b5625a47f6846178824580294cdcce2d669d09

你有可以复现的demo,或者生成产物嘛?比如生成前 tailwindcss 注册时候的 app.scss 和 生成后的 app.wxss

你这个case ,感觉 bg-white 的优先级要比 testCmpnt 低,挺奇怪的,你可以运行一下我那个 demo 看看。