mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
修复 picker 读取选项接口不执行的问题
This commit is contained in:
parent
70f936bcb9
commit
5dedf50a79
@ -26,6 +26,7 @@
|
||||
}
|
||||
|
||||
.#{$ns}ContextMenu {
|
||||
z-index: $zindex-contextmenu;
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
|
@ -92,13 +92,15 @@ export default class PickerControl extends React.PureComponent<
|
||||
|
||||
fetchOptions() {
|
||||
const {value, formItem, valueField, labelField, source, data} = this.props;
|
||||
let selectedOptions: any;
|
||||
|
||||
if (
|
||||
!source ||
|
||||
!formItem ||
|
||||
!formItem.selectedOptions.length ||
|
||||
formItem.selectedOptions[0][valueField || 'value'] !==
|
||||
formItem.selectedOptions[0][labelField || 'label']
|
||||
((selectedOptions = formItem.getSelectedOptions(value)) &&
|
||||
(!selectedOptions.length ||
|
||||
selectedOptions[0][valueField || 'value'] !==
|
||||
selectedOptions[0][labelField || 'label']))
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user