2023-03-14 09:11:54 +08:00
|
|
|
import {
|
|
|
|
|
observer
|
|
|
|
|
} from 'mobx-react';
|
|
|
|
|
import {
|
|
|
|
|
WeaDialog
|
|
|
|
|
} from "ecCom";
|
|
|
|
|
|
|
|
|
|
@observer
|
|
|
|
|
export default class Dialog extends React.Component {
|
|
|
|
|
render() {
|
|
|
|
|
const {
|
2024-12-11 15:32:14 +08:00
|
|
|
store
|
2023-03-14 09:11:54 +08:00
|
|
|
} = this.props, {
|
|
|
|
|
dialogProps,
|
|
|
|
|
title,
|
|
|
|
|
style,
|
|
|
|
|
visible,
|
|
|
|
|
buttons,
|
|
|
|
|
moreBtn={},
|
|
|
|
|
closeDialog
|
|
|
|
|
} = store;
|
|
|
|
|
|
|
|
|
|
return (
|
2024-12-11 15:32:14 +08:00
|
|
|
<WeaDialog ecId={`${this && this.props && this.props.ecId || ''}_WeaDialog@moy7y3`}
|
2023-03-14 09:11:54 +08:00
|
|
|
{...dialogProps}
|
|
|
|
|
title={title}
|
|
|
|
|
style={style}
|
|
|
|
|
visible={visible}
|
|
|
|
|
buttons={buttons}
|
|
|
|
|
moreBtn={moreBtn}
|
|
|
|
|
onCancel={closeDialog}
|
|
|
|
|
>
|
|
|
|
|
{this.props.children}
|
|
|
|
|
</WeaDialog>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
}
|