mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
parent
5a236263fc
commit
80fcdbb5ab
@ -1254,10 +1254,15 @@ export const FormItemStore = StoreNode.named('FormItemStore')
|
||||
});
|
||||
|
||||
if (filteredOptions.length) {
|
||||
filteredOptions = mapTree(filteredOptions, item => ({
|
||||
...item,
|
||||
disabled: ~options.indexOf(item.value)
|
||||
}));
|
||||
filteredOptions = mapTree(filteredOptions, item => {
|
||||
if (~options.indexOf(item.value)) {
|
||||
return {
|
||||
...item,
|
||||
disabled: true
|
||||
};
|
||||
}
|
||||
return item;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user