Skip to content

各种组件的 getContainer 属性的默认值要不要统一成一样的 #4981

Open
@awmleer

Description

@awmleer

Version of antd-mobile

5.8.1

Description

现在有很多组件有 getContainer 属性,比如 Popover Popup Mask Dialog Modal ActionSheet 等等,其中有些组件的 getContainer 默认值是 null,有些是 () => document.body,可能会对用户造成一些理解上的成本

下个大版本的时候,或许可以考虑再统一看一下这些组件的使用场景,如果有可能的话,可以把各种 getContainer 的默认值统一掉

如果各位朋友们在使用 antd-mobile 的过程中,遇到了由于 getContainer 导致的坑,欢迎在下面评论一下~

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions