text: webpackJsonp([16],{1472:function(e,t){e.exports={trigger:"trigger___2--Kx"}},759:function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a,o=n(312),s=i(o),l=n(775),u=i(l),c=n(769),d=i(c),f=n(63),p=i(f),h=n(66),g=i(h),y=n(64),m=i(y),v=n(65),C=i(v);n(313),n(781);var b=n(3),O=i(b),T=n(300),_=n(1472),k=i(_),w=(r=(0,T.connect)(function(e){return{isloading:e.error.isloading}}))(a=function(e){function t(){var e,n,i,r;(0,p.default)(this,t);for(var a=arguments.length,o=Array(a),s=0;s<a;s++)o[s]=arguments[s];return n=i=(0,m.default)(this,(e=t.__proto__||(0,d.default)(t)).call.apply(e,[this].concat(o))),i.state={isloading:!1},i.trigger403=function(){i.setState({isloading:!0}),i.props.dispatch({type:"error/query403"})},i.trigger500=function(){i.setState({isloading:!0}),i.props.dispatch({type:"error/query500"})},i.trigger404=function(){i.setState({isloading:!0}),i.props.dispatch({type:"error/query404"})},r=n,(0,m.default)(i,r)}return(0,C.default)(t,e),(0,g.default)(t,[{key:"render",value:function(){return O.default.createElement(s.default,{spinning:this.state.isloading,wrapperClassName:k.default.trigger},O.default.createElement(u.default,{type:"danger",onClick:this.trigger403},"\u89e6\u53d1403"),O.default.createElement(u.default,{type:"danger",onClick:this.trigger500},"\u89e6\u53d1500"),O.default.createElement(u.default,{type:"danger",onClick:this.trigger404},"\u89e6\u53d1404"))}}]),t}(b.PureComponent))||a;t.default=w,e.exports=t.default},769:function(e,t,n){e.exports={default:n(303),__esModule:!0}},775:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(800),r=n(801);i.a.Group=r.a,t.default=i.a},781:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(181),r=(n.n(i),n(802));n.n(r)},800:function(e,t,n){"use strict";function i(e){return"string"==typeof e}function r(e,t){if(null!=e){var n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&i(e.type)&&x(e.props.children)?m.cloneElement(e,{},e.props.children.split("").join(n)):"string"==typeof e?(x(e)&&(e=e.split("").join(n)),m.createElement("span",null,e)):e}}var a=n(16),o=n.n(a),s=n(75),l=n.n(s),u=n(63),c=n.n(u),d=n(66),f=n.n(d),p=n(64),h=n.n(p),g=n(65),y=n.n(g),m=n(3),v=(n.n(m),n(121)),C=(n.n(v),n(6)),b=n.n(C),O=n(94),T=n.n(O),_=n(182),k=n(298),w=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]]);return n},N=/^[\u4e00-\u9fa5]{2}$/,x=N.test.bind(N),j=function(e){function t(e){c()(this,t);var n=h()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.handleClick=function(e){n.setState({clicked:!0}),clearTimeout(n.timeout),n.timeout=window.setTimeout(function(){return n.setState({clicked:!1})},500);var t=n.props.onClick;t&&t(e)},n.state={loading:e.loading,clicked:!1,hasTwoCNChar:!1},n}return y()(t,e),f()(t,[{key:"componentDidMount",value:function(){this.fixTwoCNChar()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props.loading,i=e.loading;n&&clearTimeout(this.delayTimeout),"boolean"!=typeof i&&i&&i.delay?this.delayTimeout=window.setTimeout(function(){return t.setState({loading:i})},i.delay):this.setState({loading:i})}},{key:"componentDidUpdate",value:function(){this.fixTwoCNChar()}},{key:"componentWillUnmount",value:function(){this.timeout&&clearTimeout(this.timeout),this.delayTimeout&&clearTimeout(this.delayTimeout)}},{key:"fixTwoCNChar",value:function(){var e=Object(v.findDOMNode)(this),t=e.textContent||e.innerText;this.isNeedInserted()&&x(t)?this.state.hasTwoCNChar||this.setState({hasTwoCNChar:!0}):this.state.hasTwoCNChar&&this.setState({hasTwoCNChar:!1})}},{key:"isNeedInserted",value:function(){var e=this.props,t=e.icon,n=e.children;return 1===m.Children.count(n)&&!t}},{key:"render",value:function(){var e,t=this,n=this.props,i=n.type,a=n.shape,s=n.size,u=n.className,c=n.htmlType,d=n.children,f=n.icon,p=n.prefixCls,h=n.ghost,g=w(n,["type","shape","size","className","htmlType","children","icon","prefixCls","ghost"]),y=this.state,v=y.loading,C=y.clicked,b=y.hasTwoCNChar,O="";switch(s){case"large":O="lg";break;case"small":O="sm"}var N=g.href?"a":"button",x=T()(p,u,(e={},l()(e,p+"-"+i,i),l()(e,p+"-"+a,a),l()(e,p+"-"+O,O),l()(e,p+"-icon-only",!d&&f),l()(e,p+"-loading",v),l()(e,p+"-clicked",C),l()(e,p+"-background-ghost",h),l()(e,p+"-two-chinese-chars",b),e)),j=v?"loading":f,P=j?m.createElement(k.default,{type:j}):null,S=d||0===d?m.Children.map(d,function(e){return r(e,t.isNeedInserted())}):null;return m.createElement(N,o()({},Object(_.default)(g,["loading"]),{type:g.href?void 0:c||"button",className:x,onClick:this.handleClick}),P,S)}}]),t}(m.Component);t.a=j,j.__ANT_BUTTON=!0,j.defaultProps={prefixCls:"ant-btn",loading:!1,ghost:!1},j.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}},801:function(e,t,n){"use strict";var i=n(16),r=n.n(i),a=n(75),o=n.n(a),s=n(3),l=(n.n(s),n(94)),u=n.n(l),c=this&&this.__rest||function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&(n[i[r]]=e[i[r]]);return n},d=function(e){var t=e.prefixCls,n=void 0===t?"ant-btn-group":t,i=e.size,a=e.className,l=c(e,["prefixCls","size","className"]),d="";switch(i){case"large":d="lg";break;case"small":d="sm"}var f=u()(n,o()({},n+"-"+d,d),a);return s.createElement("div",r()({},l,{className:f}))};t.a=d},802:function(e,t){}});