EdModal
模态框组件
默认弹框
<EdModal
title='提示'
errMsg='错误提示,错误提示!'
onClose={this.showModalDialog}
onSure={this.showModalDialog}
visible={this.state.isShowModal}
></EdModal>
confirm类型
<EdModal
type='confirm'
title='提示'
errMsg='错误提示,错误提示!'
sureText='下一步'
cancelText='我在想想'
onClose={this.showModalDialog}
onSure={this.showModalDialog}
visible={this.state.isShowModal2}
></EdModal>
自定义内容
<EdModal
type='confirm'
title='提示'
sureText='确定'
onClose={this.showModalDialog}
onSure={this.showModalDialog}
visible={this.state.isShowModal3}
>
<div className='confirm-content'>
{this.state.content.map((item, index) => {
return (
<div key={index} className='content-list'>
<span className='left-text'>{item.title}</span>
<span className='right-text'>{item.value}</span>
</div>
);
})}
</div>
</EdModal>
支付免密弹框
<EdModal
type='pay'
title='请输入取款密码'
money='3000'
currency={'USD'}
payTipsText='转出保证金到外汇核心账户'
onClose={this.showModalDialog}
onSure={this.paySure}
visible={this.state.isShowModal4}
></EdModal>
props 公共参数
回调方法
Last updated