mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 10:59:42 +08:00
fix: conditionBuilder ts类型报错修改 (#5428)
Co-authored-by: wutong25 <wutong25@baidu.com>
This commit is contained in:
parent
5b743dd31f
commit
f08a434bc5
@ -83,7 +83,7 @@ export class ConditionField extends React.Component<
|
||||
}
|
||||
|
||||
// 选了值,还原options
|
||||
onPopClose(e: React.MouseEvent, onClose: () => void) {
|
||||
onPopClose(onClose: () => void) {
|
||||
this.setState({searchText: ''});
|
||||
onClose();
|
||||
}
|
||||
@ -117,14 +117,14 @@ export class ConditionField extends React.Component<
|
||||
options={this.filterOptions(this.props.options)}
|
||||
value={value}
|
||||
onChange={(value: any) => {
|
||||
this.onPopClose(null, onClose);
|
||||
this.onPopClose(onClose);
|
||||
onChange(value.name);
|
||||
}}
|
||||
/>
|
||||
) : (
|
||||
<ListSelection
|
||||
multiple={false}
|
||||
onClick={(e: any) => this.onPopClose(e, onClose)}
|
||||
onClick={() => this.onPopClose(onClose)}
|
||||
options={this.filterOptions(this.props.options)}
|
||||
value={[value]}
|
||||
option2value={option2value}
|
||||
|
Loading…
Reference in New Issue
Block a user