About the method of binding events with element

Like ordinary element binding events, you can directly use @click="method name" to achieve click binding, but when using element components, you need to add native after @click, which is equivalent to treating the component label of el as a normal label to bind the method.

as follows:

 

Please enjoy today's portion (sushi)

Guess you like

Origin blog.csdn.net/qq_59020839/article/details/131422011