Skip to content

能不能控制custom element(web component)自由开启shadow-root #7968

@yanyunwu

Description

@yanyunwu

What problem does this feature solve?

是这样的,在我们的项目里遇到了问题就是,我们是基于vue的web components方案项目,但是对于某些组件来说,我们不希望它拥有隔绝样式的能力。
所以是否可以新增自由控制是否开启shadow-root

What does the proposed API look like?

defineCustomElement({
  shadowRoot?: Boolen
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions