docs(📖): update FAQ

This commit is contained in:
afc163 2020-11-27 09:55:46 +08:00
parent d18d675443
commit 2a3be0200a
2 changed files with 4 additions and 0 deletions

View File

@ -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?

View File

@ -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 的默认主题?