How does the Submenu option in the navigation menu component of iview bind events that click on the title?

as shown in figure 1, the on-select event of iview"s navigation menu is useful only if the drop-down suboption is selected.
but what I need now is to trigger my custom click event when I click on the title "my assets", such as @ click= "capital" in figure 2, but it doesn"t work.

I try to wrap a span tag around < Submenu/ > , and bind click to the span tag. It still doesn"t work

.
Feb.28,2021

http://jsrun.net/7fZKp

https://www.iviewui.com/compo.

clipboard.png

the event was triggered unsuccessfully? Is it a small piece?


I just encountered the same problem. I used the js method to find < Submenu > corresponding to class, in developer tools using $('.yourclass'). Bind ('click',function () {

).
this.capital();

})
another solution is to use click.native='capital'

Menu