Latest updates from IceHrmPro
This commit is contained in:
39
web/node_modules/antd/es/modal/index.js
generated
vendored
Normal file
39
web/node_modules/antd/es/modal/index.js
generated
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
import OriginModal, { destroyFns } from './Modal';
|
||||
import confirm, { withWarn, withInfo, withSuccess, withError, withConfirm } from './confirm';
|
||||
|
||||
function modalWarn(props) {
|
||||
return confirm(withWarn(props));
|
||||
}
|
||||
|
||||
var Modal = OriginModal;
|
||||
|
||||
Modal.info = function infoFn(props) {
|
||||
return confirm(withInfo(props));
|
||||
};
|
||||
|
||||
Modal.success = function successFn(props) {
|
||||
return confirm(withSuccess(props));
|
||||
};
|
||||
|
||||
Modal.error = function errorFn(props) {
|
||||
return confirm(withError(props));
|
||||
};
|
||||
|
||||
Modal.warning = modalWarn;
|
||||
Modal.warn = modalWarn;
|
||||
|
||||
Modal.confirm = function confirmFn(props) {
|
||||
return confirm(withConfirm(props));
|
||||
};
|
||||
|
||||
Modal.destroyAll = function destroyAllFn() {
|
||||
while (destroyFns.length) {
|
||||
var close = destroyFns.pop();
|
||||
|
||||
if (close) {
|
||||
close();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
export default Modal;
|
||||
Reference in New Issue
Block a user