[Enhancement] [select] el-select组件绑定的数据为对象时能否自定义展示对象的属性 #16412
2572708224
started this conversation in
Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature type:
Enhancement
Details
select
Description
当前版本的el-select在绑定的数据为对象时 如果该绑定的数据在el-option的数据列表中未找到则会默认显示该数据的label属性 如果该数据没有lebel属性则不会展示 在很多情况下希望展示的不是label属性 此时如果初始化el-select的数据就必须初始化el-option的数据 但是在部分情况下(特别是从后端请求el-option的数据的时候)初始化el-select绑定的数据时同时初始化el-option的数据是一件非常麻烦且浪费资源的行为 所以能否给el-select组件增加一个属性用于在el-option对应的数据列表中未找到el-select绑定的数据时el-select显示的内容
Additional comments
(empty)
0 votes ·
Beta Was this translation helpful? Give feedback.
All reactions