mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
docs(📖): update FAQ
This commit is contained in:
parent
d18d675443
commit
2a3be0200a
@ -23,6 +23,8 @@ Related issue: [#3487](https://github.com/ant-design/ant-design/issues/3487) [#3
|
||||
|
||||
Use `<Select getPopupContainer={trigger => trigger.parentElement}>` ([API reference](https://ant.design/components/select-cn/#Select-props)) to render a component inside the scroll area. If you need to config this globally in your application, try `<ConfigProvider getPopupContainer={trigger => trigger.parentElement}>` ([API reference](https://ant.design/components/config-provider-cn/#API))
|
||||
|
||||
And make sure that parentElement is `position: relative` or `position: absolute`.
|
||||
|
||||
Related issue: [#3487](https://github.com/ant-design/ant-design/issues/3487) [#3438](https://github.com/ant-design/ant-design/issues/3438)
|
||||
|
||||
### How do I modify the default theme of Ant Design?
|
||||
|
@ -23,6 +23,8 @@ https://ant.design/components/select/#Select-props
|
||||
|
||||
使用 `<Select getPopupContainer={trigger => trigger.parentElement}>`([API 文档](https://ant.design/components/select-cn/#Select-props))来将组件渲染到滚动区域内,或者使用其他的 `getXxxxContainer` 参数。如果需要全局解决这个问题,可以使用 `<ConfigProvider getPopupContainer={trigger => trigger.parentElement}>`([API 文档](https://ant.design/components/config-provider-cn/#API))
|
||||
|
||||
并且保证 parentElement 是 `position: relative` 或 `position: absolute`。
|
||||
|
||||
相关 issue:[#3487](https://github.com/ant-design/ant-design/issues/3487) [#3438](https://github.com/ant-design/ant-design/issues/3438)
|
||||
|
||||
### 如何修改 Ant Design 的默认主题?
|
||||
|
Loading…
Reference in New Issue
Block a user