element icon indicating copy to clipboard operation
element copied to clipboard

el-edit-table 的 setOptions 问题

Open gd4Ark opened this issue 4 years ago • 0 comments

Describe the bug

当重新 setOptions 时,如果新的 options 匹配不到当前值,则会直接显示 value,给用户造成困扰

Screenshots

ezgif-3-6692a35559eb

To Reproduce

  1. 随意选择一项
  2. 通过 setOptions 传入其他的 options(此 options 所有项的 value 都不和第一步所选的值一致
  3. 由于匹配不上,会直接显示 value

Expected behavior

希望在 setOptions 时,如果新的 options 匹配不到当前值,则将当前值置空

gd4Ark avatar Jun 01 '20 09:06 gd4Ark