update Select
This commit is contained in:
parent
1a97aa898d
commit
ea3648b3c2
2 changed files with 62 additions and 40 deletions
|
@ -761,7 +761,7 @@
|
|||
},
|
||||
slotOptions(options, old){
|
||||
// #4626,当 Options 的 label 更新时,v-model 的值未更新
|
||||
if (options && options.length && this.values.length) {
|
||||
if (options && options.length && this.values.length && !this.multiple) {
|
||||
this.values = this.values.map(value => {
|
||||
const option = options.find(option => {
|
||||
if (!option.componentOptions) return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue