Skip to content

The directive is overwritten by the varriable which has the same name as the directive when use composition API #3275

@Ryan2128

Description

@Ryan2128

Version

3.0.5

Reproduction link

https://github.com/Ryan2128/test

Steps to reproduce

Just run it.

What is expected?

Behavior as same as option API

What is actually happening?

After compile, the directive and the varriable both are properties of $setup

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't workinghas workaroundA workaround has been found to avoid the problem

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions