解决小程序上 cl-badge 字体样式失效问题

This commit is contained in:
icssoa
2025-08-20 18:14:33 +08:00
parent 717d8cf932
commit b6d3ad6b3e

View File

@@ -17,7 +17,7 @@
>
<cl-text
:pt="{
className: parseClass(['cl-badge__text', pt.text?.className])
className: parseClass(['cl-badge__text !text-white !text-sm', pt.text?.className])
}"
v-if="!dot"
>
@@ -102,10 +102,6 @@ const badgeStyle = computed(() => {
@apply flex flex-row items-center justify-center;
@apply rounded-full;
&__text {
@apply text-white text-sm;
}
&--position {
@apply absolute z-10 right-0 top-0;
}