百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
返回工具页/返回 Issues 列表
#2819·sweetalert2

tailwind 类别不适用

作者: Faress-MoHamed创建于 2025年4月11日更新于 2026年5月23日

在 SweetAlert.fire() 中传递给 customClass.htmlContainer 的 Tailwind 类别(使用 sweetalert2-react-content 时)没有按照预期应用。例如,!w-fit !p-0 不会影响 htmlContainer,尽管 DOM 中显示了正确的类别名称。

内容来源: sweetalert2/sweetalert2

查看 GitHub 原文在 GitHub 查看讨论