elementui @click.native
时间: 2023-10-14 15:29:37 浏览: 46
As an AI language model, I do not have the context of what you are asking specifically. However, I can give you a general explanation of `@click.native` in ElementUI.
In ElementUI, `@click.native` is a listener that is used to detect a native click event on an element. It is used to handle click events on components like buttons, links, and icons. The `.native` modifier is used to indicate that the event should be handled natively by the element, rather than through Vue's event system.
For example, if you have a button component in ElementUI and you want to handle its click event, you would use `@click.native` like this:
```
<el-button @click.native="handleClick">Click me</el-button>
```
In this case, `handleClick` is a method that you would define in your Vue component to handle the click event.
Overall, `@click.native` is a useful tool in ElementUI for handling native click events on components.