Skip to content

[vue] vue给组件绑定自定义事件无效怎么解决? #466

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

[vue] vue给组件绑定自定义事件无效怎么解决?

Activity

dengBox

dengBox commented on Jun 28, 2019

@dengBox

加入.native修饰符

Gloomysunday28

Gloomysunday28 commented on Jul 24, 2019

@Gloomysunday28

两种方式
1、组件外部加修饰符.navtive
2、组件内部声明$emit('自定义事件')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @haizhilin2013@Gloomysunday28@dengBox@censek

        Issue actions

          [vue] vue给组件绑定自定义事件无效怎么解决? · Issue #466 · haizlin/fe-interview