Commit 61f5ffa8 authored by 满振华's avatar 满振华

修改样式

parent e85cb9e9
......@@ -2,7 +2,6 @@ import React from 'react';
import { Modal } from 'antd';
import './style.less';
const confirm = Modal.confirm;
/*
* Modal 组件
......@@ -11,24 +10,18 @@ const confirm = Modal.confirm;
* 只扩展自定义样式
* */
// wrapClassName不传默认BIModalWrap
class BIModal extends React.PureComponent {
render() {
return (
<span className="BIModal">
<Modal wrapClassName="BIModalWrap" cancelText="取消" okText="确定" {...this.props}>
{this.props.children}
</Modal>
</span>
);
}
const BIModal = (props) => {
return (
<Modal
wrapClassName="BIModalWrap"
focusTriggerAfterClose={false}
{...props}>
{props.children}
</Modal>
);
}
export { BIModal as default };
BIModal.confirm = (config = {}) => {
return confirm({
cancelText: '取消',
okText: '确定',
...config,
});
};
BIModal.warning = Modal.warning;
export default BIModal
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment