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'

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2bac8-2b22f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2bac8-2b22f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?