在vue2引入elementUI之后,經常會遇到此類需求,el-select獲取點擊項的整個對象item,而不是默認的v-model 項目
官方文檔有 value-key="value" 的用法
https://element.eleme.cn/#/zh-CN/component/select#select-attributes
案例
在vue2引入elementUI之后,經常會遇到此類需求,el-select獲取點擊項的整個對象item,而不是默認的v-model 項目
官方文檔有 value-key="value" 的用法
https://element.eleme.cn/#/zh-CN/component/select#select-attributes
案例
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。