Skip to content

inheritAttrs should be supplemented with more See also #2933

Closed
@hotdogc1017

Description

@hotdogc1017

In the content about inheritAttrs, it is only mentioned to use the defineOptions macro to control the attribute pass-through behavior, but defineOptions is only available in 3.3+ and cannot be used for lower versions, and there is no obvious indication of other methods. Later, I accidentally found in the content of <script setup> that this can be achieved by declaring an additional <script> tag, so have you considered linking this content to the See also section of inheritAttrs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions