Skip to content

umi搭配ant-design-mobile 使用 yarn、pnpm 打包出来有不同的className #8150

Answered by awmleer
shifenhutu asked this question in Q&A
Discussion options

You must be logged in to vote

adm-center-popup 是 CenterPopup 的类名,而 CenterPopup 组件是在 antd-mobile 5.14.0 版本新增的,在这个版本中,Modal 也的底层实现也改成基于 CenterPopup 实现了,所以看上去的最终效果是会多一个 adm-center-popup 的类名。详见发布日志

所以推测看下来估计是因为 lockfile 导致的本地和线上构建环境的 antd-mobile 版本不一致导致的。

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@shifenhutu
Comment options

Answer selected by xiaohuoni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants