Problems encountered Vue 02- to control multiple drop-down list and issue duplicate attribute: @click

Programming when I wanted to achieve when the mouse after two div show different drop-down list, set the show in the assembly: false and @ mouseenter = "xxxShow" @ mouseleave = "xxxClose", but this time when the mouse passes a div when all the drop-down list will appear, in time to solve this problem, I just thought then set two functions xxxShow2 and xxxClose2 but this problem has not yet resolved, I forgot to give a show2: false property to be controlled independently.

When the mouseenter and mouseleave are replaced by click, reported an error duplicate attribute: Attribute click @click repeated, this time I can not think of it click twice to call, you can be replaced dblclick to resolve.

The perfect alternative to the jQuery

 

Guess you like

Origin www.cnblogs.com/Romantic-Blood/p/11069476.html