mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: 修复combo内select的options使用valueField时options会被全部禁用的问题 (#10957)
Co-authored-by: jinye <jinye@baidu.com>
This commit is contained in:
parent
854a8be977
commit
625d36c82a
@ -1410,14 +1410,16 @@ export const FormItemStore = StoreNode.named('FormItemStore')
|
||||
group.items.forEach(item => {
|
||||
if (self !== item) {
|
||||
options.push(
|
||||
...item.selectedOptions.map((item: any) => item && item.value)
|
||||
...item.selectedOptions.map(
|
||||
(item: any) => item && item[valueField]
|
||||
)
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
if (filteredOptions.length && options.length) {
|
||||
filteredOptions = mapTree(filteredOptions, item => {
|
||||
if (~options.indexOf(item.value)) {
|
||||
if (~options.indexOf(item[valueField])) {
|
||||
return {
|
||||
...item,
|
||||
disabled: true
|
||||
|
Loading…
Reference in New Issue
Block a user