Blame view

src/Modal/Modal.html 1.44 KB
3a3ecabe   Imshann   init
1
2
  <div>
      {visible && <div className="ant-modal-root">
2e253299   Imshann   修复BUG
3
4
          <div className="ant-modal-mask"></div>
          <div className="ant-modal-wrap">
3a3ecabe   Imshann   init
5
6
7
8
              <div className="ant-modal" style={{ width: state.width + 'px' }}>
                  <div className="ant-modal-content">
                      {title && <button type="button" className="ant-modal-close" onClick={this.handleClose}>
                          <span className="ant-modal-close-x">
81f8a467   Imshann   调整组件前缀
9
                              <antd-icon type="CloseOutlined"></antd-icon>
3a3ecabe   Imshann   init
10
11
12
13
14
15
16
17
                          </span>
                      </button>}
                      {title && <div className="ant-modal-header">
                          <div className="ant-modal-title">{title}</div>
                      </div>}
                      <div className="ant-modal-body">{children}</div>
                      {footer === undefined && <div className="ant-modal-footer">
                          <div>
81f8a467   Imshann   调整组件前缀
18
19
                              <antd-button onClick={this.onCancel}>{state.cancelText}</antd-button>
                              <antd-button type="primary" onClick={this.onOk}>{state.okText}</antd-button>
3a3ecabe   Imshann   init
20
21
22
                          </div>
                      </div>}
                      {footer !== undefined && <div className="ant-modal-footer">
81f8a467   Imshann   调整组件前缀
23
                          <antd-slot content="{{footer}}" context="antdModal.getContext().$parent"></antd-slot>
3a3ecabe   Imshann   init
24
25
26
27
28
29
                      </div>}
                  </div>
              </div>
          </div>
      </div>}
  </div>