28.22f3e9e4.async.js 7.98 KB
Newer Older
afc163's avatar
Updates  
afc163 committed
1
webpackJsonp([28],{1119:function(e,t,n){"use strict";function r(e){if(l)return void e(l);i.a.newInstance({prefixCls:p,transitionName:"move-up",style:{top:s},getContainer:m},function(t){if(l)return void e(l);l=t,e(t)})}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,n=arguments[2],a=arguments[3],i={info:"info-circle",success:"check-circle",error:"cross-circle",warning:"exclamation-circle",loading:"loading"}[n];"function"==typeof t&&(a=t,t=u);var s=f++;return r(function(r){r.notice({key:s,duration:t,style:{},content:o.createElement("div",{className:p+"-custom-content "+p+"-"+n},o.createElement(c.default,{type:i}),o.createElement("span",null,e)),onClose:a})}),function(){l&&l.removeNotice(s)}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(6),i=(n.n(o),n(1120)),c=n(830),u=3,s=void 0,l=void 0,f=1,p="ant-message",m=void 0;t.default={info:function(e,t,n){return a(e,t,"info",n)},success:function(e,t,n){return a(e,t,"success",n)},error:function(e,t,n){return a(e,t,"error",n)},warn:function(e,t,n){return a(e,t,"warning",n)},warning:function(e,t,n){return a(e,t,"warning",n)},loading:function(e,t,n){return a(e,t,"loading",n)},config:function(e){void 0!==e.top&&(s=e.top,l=null),void 0!==e.duration&&(u=e.duration),void 0!==e.prefixCls&&(p=e.prefixCls),void 0!==e.getContainer&&(m=e.getContainer)},destroy:function(){l&&(l.destroy(),l=null)}}},1120:function(e,t,n){"use strict";var r=n(1121);t.a=r.a},1121:function(e,t,n){"use strict";function r(){return"rcNotification_"+O+"_"+E++}var a=n(828),o=n.n(a),i=n(191),c=n.n(i),u=n(15),s=n.n(u),l=n(64),f=n.n(l),p=n(65),m=n.n(p),d=n(76),v=n.n(d),y=n(77),g=n.n(y),h=n(6),b=n.n(h),C=n(11),x=n.n(C),S=n(192),F=n.n(S),N=n(311),_=n(875),k=n(308),T=n.n(k),w=n(1122),E=0,O=Date.now(),j=function(e){function t(){var e,n,a,o;f()(this,t);for(var i=arguments.length,c=Array(i),u=0;u<i;u++)c[u]=arguments[u];return n=a=v()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),a.state={notices:[]},a.add=function(e){var t=e.key=e.key||r();a.setState(function(n){var r=n.notices;if(!r.filter(function(e){return e.key===t}).length)return{notices:r.concat(e)}})},a.remove=function(e){a.setState(function(t){return{notices:t.notices.filter(function(t){return t.key!==e})}})},o=n,v()(a,o)}return g()(t,e),m()(t,[{key:"getTransitionName",value:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t}},{key:"render",value:function(){var e,t=this,n=this.props,r=this.state.notices.map(function(e){var r=Object(_.a)(t.remove.bind(t,e.key),e.onClose);return b.a.createElement(w.a,s()({prefixCls:n.prefixCls},e,{onClose:r}),e.content)}),a=(e={},c()(e,n.prefixCls,1),c()(e,n.className,!!n.className),e);return b.a.createElement("div",{className:T()(a),style:n.style},b.a.createElement(N.a,{transitionName:this.getTransitionName()},r))}}]),t}(h.Component);j.propTypes={prefixCls:x.a.string,transitionName:x.a.string,animation:x.a.oneOfType([x.a.string,x.a.object]),style:x.a.object},j.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},j.newInstance=function(e,t){function n(e){u||(u=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){F.a.unmountComponentAtNode(c),a||document.body.removeChild(c)}}))}var r=e||{},a=r.getContainer,i=o()(r,["getContainer"]),c=void 0;a?c=a():(c=document.createElement("div"),document.body.appendChild(c));var u=!1;F.a.render(b.a.createElement(j,s()({},i,{ref:n})),c)},t.a=j},1122:function(e,t,n){"use strict";var r=n(191),a=n.n(r),o=n(64),i=n.n(o),c=n(65),u=n.n(c),s=n(76),l=n.n(s),f=n(77),p=n.n(f),m=n(6),d=n.n(m),v=n(308),y=n.n(v),g=n(11),h=n.n(g),b=function(e){function t(){var e,n,r,a;i()(this,t);for(var o=arguments.length,c=Array(o),u=0;u<o;u++)c[u]=arguments[u];return n=r=l()(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(c))),r.close=function(){r.clearCloseTimer(),r.props.onClose()},r.startCloseTimer=function(){r.props.duration&&(r.closeTimer=setTimeout(function(){r.close()},1e3*r.props.duration))},r.clearCloseTimer=function(){r.closeTimer&&(clearTimeout(r.closeTimer),r.closeTimer=null)},a=n,l()(r,a)}return p()(t,e),u()(t,[{key:"componentDidMount",value:function(){this.startCloseTimer()}},{key:"componentWillUnmount",value:function(){this.clearCloseTimer()}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls+"-notice",r=(e={},a()(e,""+n,1),a()(e,n+"-closable",t.closable),a()(e,t.className,!!t.className),e);return d.a.createElement("div",{className:y()(r),style:t.style,onMouseEnter:this.clearCloseTimer,onMouseLeave:this.startCloseTimer},d.a.createElement("div",{className:n+"-content"},t.children),t.closable?d.a.createElement("a",{tabIndex:"0",onClick:this.close,className:n+"-close"},d.a.createElement("span",{className:n+"-close-x"})):null)}}]),t}(m.Component);b.propTypes={duration:h.a.number,onClose:h.a.func,children:h.a.any},b.defaultProps={onEnd:function(){},onClose:function(){},duration:1.5,style:{right:"50%"}},t.a=b},1123:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(309),a=(n.n(r),n(1124));n.n(a)},1124:function(e,t){},787:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var a=n(15),o=r(a),i=n(1119),c=r(i),u=n(129),s=r(u);n(1123);var l=n(313),f=n(318);t.default={namespace:"form",state:{step:{},regularFormSubmitting:!1,stepFormSubmitting:!1,advancedFormSubmitting:!1},effects:{submitRegularForm:s.default.mark(function e(t,n){var r=t.payload,a=n.call,o=n.put;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"changeRegularFormSubmitting",payload:!0});case 2:return e.next=4,a(f.fakeSubmitForm,r);case 4:return e.next=6,o({type:"changeRegularFormSubmitting",payload:!1});case 6:c.default.success("\u63d0\u4ea4\u6210\u529f");case 7:case"end":return e.stop()}},e,this)}),submitStepForm:s.default.mark(function e(t,n){var r=t.payload,a=n.call,o=n.put;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"changeStepFormSubmitting",payload:!0});case 2:return e.next=4,a(f.fakeSubmitForm,r);case 4:return e.next=6,o({type:"saveStepFormData",payload:r});case 6:return e.next=8,o({type:"changeStepFormSubmitting",payload:!1});case 8:return e.next=10,o(l.routerRedux.push("/form/step-form/result"));case 10:case"end":return e.stop()}},e,this)}),submitAdvancedForm:s.default.mark(function e(t,n){var r=t.payload,a=n.call,o=n.put;return s.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o({type:"changeAdvancedFormSubmitting",payload:!0});case 2:return e.next=4,a(f.fakeSubmitForm,r);case 4:return e.next=6,o({type:"changeAdvancedFormSubmitting",payload:!1});case 6:c.default.success("\u63d0\u4ea4\u6210\u529f");case 7:case"end":return e.stop()}},e,this)})},reducers:{saveStepFormData:function(e,t){var n=t.payload;return(0,o.default)({},e,{step:(0,o.default)({},e.step,n)})},changeRegularFormSubmitting:function(e,t){var n=t.payload;return(0,o.default)({},e,{regularFormSubmitting:n})},changeStepFormSubmitting:function(e,t){var n=t.payload;return(0,o.default)({},e,{stepFormSubmitting:n})},changeAdvancedFormSubmitting:function(e,t){var n=t.payload;return(0,o.default)({},e,{advancedFormSubmitting:n})}}},e.exports=t.default},828:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},830:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(15),a=n.n(r),o=n(191),i=n.n(o),c=n(6),u=(n.n(c),n(308)),s=n.n(u),l=n(310),f=function(e){var t=e.type,n=e.className,r=void 0===n?"":n,o=e.spin,u=s()(i()({anticon:!0,"anticon-spin":!!o||"loading"===t},"anticon-"+t,!0),r);return c.createElement("i",a()({},Object(l.a)(e,["type","spin"]),{className:u}))};t.default=f},875:function(e,t,n){"use strict";function r(){var e=[].slice.call(arguments,0);return 1===e.length?e[0]:function(){for(var t=0;t<e.length;t++)e[t]&&e[t].apply&&e[t].apply(this,arguments)}}t.a=r}});