Skip to content

Add a syntax sugar for v-bind #6416

@maple3142

Description

@maple3142

Version

2.4.2

Reproduction link

https://jsfiddle.net/Logqa8z5/

Steps to reproduce

Click run

What is expected?

no

What is actually happening?

no


I wish can make <myspan :text="text"></span> with shorter syntax like this <myspan :text></myspan>
When the prop name same as existing variable in parent, expand :text to :text="text"

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