ts 错误

This commit is contained in:
2betop 2020-08-03 14:45:48 +08:00
parent cb83924ee8
commit 54b9d15bea
1 changed files with 6 additions and 3 deletions

View File

@ -346,7 +346,7 @@ export default class PickerControl extends React.PureComponent<
}
@autobind
renderBody({popOverContainer}: any) {
renderBody({popOverContainer}: any = {}) {
const {
render,
selectedOptions,
@ -384,12 +384,15 @@ export default class PickerControl extends React.PureComponent<
embed,
value,
selectedOptions,
translate: __
translate: __,
popOverContainer
} = this.props;
return (
<div className={cx(`PickerControl`, className)}>
{embed ? (
<div className={cx('Picker')}>{this.renderBody()}</div>
<div className={cx('Picker')}>
{this.renderBody({popOverContainer})}
</div>
) : (
<div
className={cx(`Picker`, {