We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.confirm-modal-footer{ display: flex; flex-direction: row; justify-content: space-between; button { font-weight: bolder; font-size: 23px; } }
import React from 'react' import { Modal, Button} from 'antd' export default class ConfirmModal extends React.PureComponent { render() { const {visible, title, content, onCancel, onOk} = this.props return ( <Modal visible={visible} title={title} mask={false} closable={false} centered maskClosable destroyOnClose={true} footer={<div className="confirm-modal-footer"> <Button key="back" size="large" type="danger" onClick={onCancel}> 没有 </Button> <Button key="submit" size="large" type="primary" onClick={onOk}> 有 </Button> </div>} > {content} </Modal> ) } }
使用:
<ConfirmModal visible={currentItem.category === "Handbag"} title={null} content="" onOk={() => {}} onCancel={() => {}} />
效果:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
使用:
效果:
The text was updated successfully, but these errors were encountered: