fix: 🐛 修复图标选取组件和字典复选组件的使用bug
修复图标选取组件和字典复选组件的使用bug
This commit is contained in:
1 parent
253502018f
commit
ca81612981
3 files changed
+7
-4
No files matched your search
@@ -123,7 +123,7 @@ watch(
|
||||
const matchedOption = newOptions.find(
|
||||
(option) => option.value === selectedValue.value
|
||||
);
|
||||
if (!matchedOption) {
|
||||
if (!matchedOption && props.type !== "checkbox") {
|
||||
selectedValue.value = ""; // 如果找不到匹配项,清空选中
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user