fix: 修复数据绑定组件选中值回传不正确的问题(#11126) (#11127)

Co-authored-by: chenfan02 <chenfan02@baidu.com>
This commit is contained in:
Franck Chan 2024-10-30 09:49:57 +08:00 committed by GitHub
parent 0ede261708
commit 887d860f96
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,7 +130,10 @@ export class DataBindingControl extends React.Component<
return render('content', schema!, {
onSelect: onChange,
value: value ? value.value : result
value:
value && typeof value === 'object'
? value?.selected?.value ?? value?.value
: result
});
}}
value={result}