22.async.js 6.85 KB
Newer Older
nikogu's avatar
Updates  
nikogu committed
1
webpackJsonp([22],{1181:function(e,t){e.exports={registerResult:"registerResult___IPmKq",title:"title___2zsbu",actions:"actions___2SvTl"}},576:function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var l=a(591),i=n(l);a(601);var r=a(0),s=n(r),o=a(232),c=a(958),u=n(c),d=a(1181),f=n(d),p=s.default.createElement("div",{className:f.default.title},"\u4f60\u7684\u8d26\u6237\uff1aAntDesign@example.com \u6ce8\u518c\u6210\u529f"),m=s.default.createElement("div",{className:f.default.actions},s.default.createElement("a",{href:""},s.default.createElement(i.default,{size:"large",type:"primary"},"\u67e5\u770b\u90ae\u7bb1")),s.default.createElement(o.Link,{to:"/"},s.default.createElement(i.default,{size:"large"},"\u8fd4\u56de\u9996\u9875")));t.default=function(){return s.default.createElement(u.default,{className:f.default.registerResult,type:"success",title:p,description:"\u6fc0\u6d3b\u90ae\u4ef6\u5df2\u53d1\u9001\u5230\u4f60\u7684\u90ae\u7bb1\u4e2d\uff0c\u90ae\u4ef6\u6709\u6548\u671f\u4e3a24\u5c0f\u65f6\u3002\u8bf7\u53ca\u65f6\u767b\u5f55\u90ae\u7bb1\uff0c\u70b9\u51fb\u90ae\u4ef6\u4e2d\u7684\u94fe\u63a5\u6fc0\u6d3b\u5e10\u6237\u3002",actions:m,style:{marginTop:56}})},e.exports=t.default},580:function(e,t,a){"use strict";t.__esModule=!0,t.default=function(e,t){var a={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(a[n]=e[n]);return a}},581:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(5),l=a.n(n),i=a(123),r=a.n(i),s=a(0),o=a.n(s),c=a(227),u=a.n(c),d=a(229),f=function(e){var t=e.type,a=e.className,n=void 0===a?"":a,i=e.spin,s=u()(r()({anticon:!0,"anticon-spin":!!i||"loading"===t},"anticon-"+t,!0),n);return o.a.createElement("i",l()({},Object(d.a)(e,["type","spin"]),{className:s}))};t.default=f},591:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(613),l=a(614);n.a.Group=l.a,t.default=n.a},601:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(228),l=(a.n(n),a(618));a.n(l)},613:function(e,t,a){"use strict";function n(e){return"string"==typeof e}function l(e,t){if(null!=e){var a=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&n(e.type)&&k(e.props.children)?g.a.cloneElement(e,{},e.props.children.split("").join(a)):"string"==typeof e?(k(e)&&(e=e.split("").join(a)),g.a.createElement("span",null,e)):e}}var i=a(5),r=a.n(i),s=a(123),o=a.n(s),c=a(28),u=a.n(c),d=a(29),f=a.n(d),p=a(39),m=a.n(p),_=a(40),y=a.n(_),v=a(0),g=a.n(v),h=a(2),b=a.n(h),O=a(227),N=a.n(O),x=a(229),E=a(581),j=this&&this.__rest||function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&(a[n[l]]=e[n[l]]);return a},T=/^[\u4e00-\u9fa5]{2}$/,k=T.test.bind(T),P=function(e){function t(e){u()(this,t);var a=m()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.handleClick=function(e){a.setState({clicked:!0}),clearTimeout(a.timeout),a.timeout=window.setTimeout(function(){return a.setState({clicked:!1})},500);var t=a.props.onClick;t&&t(e)},a.state={loading:e.loading,clicked:!1},a}return y()(t,e),f()(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,a=this.props.loading,n=e.loading;a&&clearTimeout(this.delayTimeout),"boolean"!=typeof n&&n&&n.delay?this.delayTimeout=window.setTimeout(function(){return t.setState({loading:n})},n.delay):this.setState({loading:n})}},{key:"componentWillUnmount",value:function(){this.timeout&&clearTimeout(this.timeout),this.delayTimeout&&clearTimeout(this.delayTimeout)}},{key:"render",value:function(){var e,t=this.props,a=t.type,n=t.shape,i=t.size,s=t.className,c=t.htmlType,u=t.children,d=t.icon,f=t.prefixCls,p=t.ghost,m=j(t,["type","shape","size","className","htmlType","children","icon","prefixCls","ghost"]),_=this.state,y=_.loading,v=_.clicked,h="";switch(i){case"large":h="lg";break;case"small":h="sm"}var b=N()(f,s,(e={},o()(e,f+"-"+a,a),o()(e,f+"-"+n,n),o()(e,f+"-"+h,h),o()(e,f+"-icon-only",!u&&d),o()(e,f+"-loading",y),o()(e,f+"-clicked",v),o()(e,f+"-background-ghost",p),e)),O=y?"loading":d,T=O?g.a.createElement(E.default,{type:O}):null,k=1===g.a.Children.count(u)&&(!O||"loading"===O),P=u?g.a.Children.map(u,function(e){return l(e,k)}):null;return g.a.createElement("button",r()({},Object(x.a)(m,["loading"]),{type:c||"button",className:b,onClick:this.handleClick}),T,P)}}]),t}(g.a.Component);t.a=P,P.__ANT_BUTTON=!0,P.defaultProps={prefixCls:"ant-btn",loading:!1,ghost:!1},P.propTypes={type:b.a.string,shape:b.a.oneOf(["circle","circle-outline"]),size:b.a.oneOf(["large","default","small"]),htmlType:b.a.oneOf(["submit","button","reset"]),onClick:b.a.func,loading:b.a.oneOfType([b.a.bool,b.a.object]),className:b.a.string,icon:b.a.string}},614:function(e,t,a){"use strict";var n=a(5),l=a.n(n),i=a(123),r=a.n(i),s=a(0),o=a.n(s),c=a(227),u=a.n(c),d=this&&this.__rest||function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var l=0,n=Object.getOwnPropertySymbols(e);l<n.length;l++)t.indexOf(n[l])<0&&(a[n[l]]=e[n[l]]);return a},f=function(e){var t=e.prefixCls,a=void 0===t?"ant-btn-group":t,n=e.size,i=e.className,s=d(e,["prefixCls","size","className"]),c="";switch(n){case"large":c="lg";break;case"small":c="sm"}var f=u()(a,r()({},a+"-"+c,c),i);return o.a.createElement("div",l()({},s,{className:f}))};t.a=f},618:function(e,t){},619:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(228);a.n(n)},958:function(e,t,a){"use strict";function n(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=e.className,a=e.type,n=e.title,l=e.description,i=e.extra,s=e.actions,c=(0,u.default)(e,["className","type","title","description","extra","actions"]),d={error:f.default.createElement(o.default,{className:y.default.error,type:"close-circle"}),success:f.default.createElement(o.default,{className:y.default.success,type:"check-circle"})},p=(0,m.default)(y.default.result,t);return f.default.createElement("div",(0,r.default)({className:p},c),f.default.createElement("div",{className:y.default.icon},d[a]),f.default.createElement("div",{className:y.default.title},n),l&&f.default.createElement("div",{className:y.default.description},l),i&&f.default.createElement("div",{className:y.default.extra},i),s&&f.default.createElement("div",{className:y.default.actions},s))}Object.defineProperty(t,"__esModule",{value:!0});var i=a(5),r=n(i),s=a(581),o=n(s),c=a(580),u=n(c);t.default=l,a(619);var d=a(0),f=n(d),p=a(227),m=n(p),_=a(959),y=n(_);e.exports=t.default},959:function(e,t){e.exports={result:"result___Hm4g7",icon:"icon___3gQI1",success:"success___mKc7I",error:"error___1xqXc",title:"title___3_4zg",description:"description___1xuel",extra:"extra___2XdYc",actions:"actions___1qj92"}}});