How can Input in Vue+ Iview be selected automatically after gaining focus?

for example, the password input box needs to be selected automatically after clicking. There is no problem for ordinary input to implement this function with vue official code (iview Input focus = "selectAll"), but iview has no effect. Is there a master who can help to see what the problem is?

Thank you!

Mar.29,2021

vcopyright onvision focus. Nativ = "selectAll"


encountered the same problem. Did you ask the problem master to solve it?


use

directly
v-on:focus="selectAll" 

No need

.native

@ focus= "$event.target.select ()"

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-1e453ca-44b19.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-1e453ca-44b19.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?