Replies: 1 comment
-
Hi @xieanwen! I'm Dosu and I’m helping the ant-design-mobile team. ant-design-mobile 5.37.1 目前不支持通过 ConfigProvider 或类似方式全局配置 size 属性(比如统一设置所有组件的 size)。ConfigProvider 主要用于全局本地化和图标定制,未包含 size 相关配置参考。 如果你想全局调整字号或尺寸,推荐方式是通过覆盖 CSS 变量,比如在全局样式里设置: :root {
--adm-font-size-main: 18px; /* 修改主字号 */
} 更多可用的 CSS 变量和主题定制方法详见官方文档。 如果是组件自带的 size 属性(如 Button),目前只能在每个组件上单独设置。 To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
5.37.1 这个版本,怎么全局配置size
Beta Was this translation helpful? Give feedback.
All reactions