4ffde80f38d895b8cda0ab89abda918c.json 3.23 KB
{"ast":null,"code":"import OriginModal, { destroyFns } from './Modal';\nimport confirm, { withWarn, withInfo, withSuccess, withError, withConfirm, globalConfig } from './confirm';\n\nfunction modalWarn(props) {\n  return confirm(withWarn(props));\n}\n\nvar Modal = OriginModal;\n\nModal.info = function infoFn(props) {\n  return confirm(withInfo(props));\n};\n\nModal.success = function successFn(props) {\n  return confirm(withSuccess(props));\n};\n\nModal.error = function errorFn(props) {\n  return confirm(withError(props));\n};\n\nModal.warning = modalWarn;\nModal.warn = modalWarn;\n\nModal.confirm = function confirmFn(props) {\n  return confirm(withConfirm(props));\n};\n\nModal.destroyAll = function destroyAllFn() {\n  while (destroyFns.length) {\n    var close = destroyFns.pop();\n\n    if (close) {\n      close();\n    }\n  }\n};\n\nModal.config = globalConfig;\nexport default Modal;","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/antd/es/modal/index.js"],"names":["OriginModal","destroyFns","confirm","withWarn","withInfo","withSuccess","withError","withConfirm","globalConfig","modalWarn","props","Modal","info","infoFn","success","successFn","error","errorFn","warning","warn","confirmFn","destroyAll","destroyAllFn","length","close","pop","config"],"mappings":"AAAA,OAAOA,WAAP,IAAsBC,UAAtB,QAAwC,SAAxC;AACA,OAAOC,OAAP,IAAkBC,QAAlB,EAA4BC,QAA5B,EAAsCC,WAAtC,EAAmDC,SAAnD,EAA8DC,WAA9D,EAA2EC,YAA3E,QAA+F,WAA/F;;AAEA,SAASC,SAAT,CAAmBC,KAAnB,EAA0B;AACxB,SAAOR,OAAO,CAACC,QAAQ,CAACO,KAAD,CAAT,CAAd;AACD;;AAED,IAAIC,KAAK,GAAGX,WAAZ;;AAEAW,KAAK,CAACC,IAAN,GAAa,SAASC,MAAT,CAAgBH,KAAhB,EAAuB;AAClC,SAAOR,OAAO,CAACE,QAAQ,CAACM,KAAD,CAAT,CAAd;AACD,CAFD;;AAIAC,KAAK,CAACG,OAAN,GAAgB,SAASC,SAAT,CAAmBL,KAAnB,EAA0B;AACxC,SAAOR,OAAO,CAACG,WAAW,CAACK,KAAD,CAAZ,CAAd;AACD,CAFD;;AAIAC,KAAK,CAACK,KAAN,GAAc,SAASC,OAAT,CAAiBP,KAAjB,EAAwB;AACpC,SAAOR,OAAO,CAACI,SAAS,CAACI,KAAD,CAAV,CAAd;AACD,CAFD;;AAIAC,KAAK,CAACO,OAAN,GAAgBT,SAAhB;AACAE,KAAK,CAACQ,IAAN,GAAaV,SAAb;;AAEAE,KAAK,CAACT,OAAN,GAAgB,SAASkB,SAAT,CAAmBV,KAAnB,EAA0B;AACxC,SAAOR,OAAO,CAACK,WAAW,CAACG,KAAD,CAAZ,CAAd;AACD,CAFD;;AAIAC,KAAK,CAACU,UAAN,GAAmB,SAASC,YAAT,GAAwB;AACzC,SAAOrB,UAAU,CAACsB,MAAlB,EAA0B;AACxB,QAAIC,KAAK,GAAGvB,UAAU,CAACwB,GAAX,EAAZ;;AAEA,QAAID,KAAJ,EAAW;AACTA,MAAAA,KAAK;AACN;AACF;AACF,CARD;;AAUAb,KAAK,CAACe,MAAN,GAAelB,YAAf;AACA,eAAeG,KAAf","sourcesContent":["import OriginModal, { destroyFns } from './Modal';\nimport confirm, { withWarn, withInfo, withSuccess, withError, withConfirm, globalConfig } from './confirm';\n\nfunction modalWarn(props) {\n  return confirm(withWarn(props));\n}\n\nvar Modal = OriginModal;\n\nModal.info = function infoFn(props) {\n  return confirm(withInfo(props));\n};\n\nModal.success = function successFn(props) {\n  return confirm(withSuccess(props));\n};\n\nModal.error = function errorFn(props) {\n  return confirm(withError(props));\n};\n\nModal.warning = modalWarn;\nModal.warn = modalWarn;\n\nModal.confirm = function confirmFn(props) {\n  return confirm(withConfirm(props));\n};\n\nModal.destroyAll = function destroyAllFn() {\n  while (destroyFns.length) {\n    var close = destroyFns.pop();\n\n    if (close) {\n      close();\n    }\n  }\n};\n\nModal.config = globalConfig;\nexport default Modal;"]},"metadata":{},"sourceType":"module"}