element的input中加入可點擊的按鈕


 

 

如圖,如何在element組建的el-input的后綴放一個可點擊的按鈕或者標簽

 

<el-input><el-button style="padding-right:10px" slot="suffix" type="text" >選擇</el-button></el-input>

 

在el-input的官網介紹中,可以使用slot的關鍵字給輸入框的框首、框尾加標簽或者icon或者按鈕


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM