Skip to content

More user-friendly template comments #5442

Open
@baixiaoyu2997

Description

@baixiaoyu2997

What problem does this feature solve?

Image

I'm not sure if this can be achieved, but it's indeed a common issue. I need to temporarily ignore a prop of a component or add TS/ESLint/TODO comments for the prop, but currently, doing so causes template errors.

What does the proposed solution look like?

<HelloWorld 
    <!-- TODO: mock -->
      msg="Vite + Vue" 
 />

Does not cause template errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions