{(() => {
let style = {fontSize: 26, marginRight: 15};
switch(modalInfo.icon) {
case 'info':
style = { ...style, color: '#1890ff', ...modalInfo.iconStyle }
return
;
case 'success':
style = { ...style, color: '#52c41a', ...modalInfo.iconStyle }
return
;
case 'warning':
style = { ...style, color: '#faad14', ...modalInfo.iconStyle }
return
;
case 'error':
style = { ...style, color: '#f5222d', ...modalInfo.iconStyle }
return
;
default:
// return
;
return '';
}
})()}
{modalInfo.title}
{modalInfo.message}
{/* */}
{modalInfo.footer instanceof Array && modalInfo.footer.map((btn, index) => {
return
})}