element
element copied to clipboard
el-edit-table 的 setOptions 问题
Describe the bug
当重新 setOptions 时,如果新的 options 匹配不到当前值,则会直接显示 value,给用户造成困扰
Screenshots
To Reproduce
- 随意选择一项
- 通过 setOptions 传入其他的 options(此 options 所有项的 value 都不和第一步所选的值一致
- 由于匹配不上,会直接显示 value
Expected behavior
希望在 setOptions 时,如果新的 options 匹配不到当前值,则将当前值置空