webpackJsonp([98],{1439:function(e,t,a){"use strict";function l(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var f=a(101),o=l(f),d=a(104),c=l(d),i=a(45),s=l(i),m=a(52),h=l(m),p=a(168),E=l(p),y=a(21),v=l(y),g=function(){function e(e,t){for(var a=0;a<t.length;a++){var l=t[a];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(e,l.key,l)}}return function(t,a,l){return a&&e(t.prototype,a),l&&e(t,l),t}}();a(170),a(175),a(51),a(56),a(262),a(27);var b=a(0),_=l(b),C=a(516),O=l(C),w=v.default.Option,k=v.default.OptGroup,S=function(e){function t(){return n(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),g(t,[{key:"render",value:function(){return _.default.createElement("div",null,_.default.createElement(s.default,{gutter:8,style:{marginTop:"20px"}},_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u57fa\u672c"},_.default.createElement(v.default,{defaultValue:"lucy",style:{width:120}},_.default.createElement(w,{value:"jack"},"Jack"),_.default.createElement(w,{value:"lucy"},"Lucy"),_.default.createElement(w,{value:"disabled",disabled:!0},"Disabled"),_.default.createElement(w,{value:"Yiminghe"},"yiminghe"))," ",_.default.createElement(v.default,{defaultValue:"lucy",style:{width:120},allowClear:!0,disabled:!0},_.default.createElement(w,{value:"lucy"},"Lucy")))),_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u5e26\u641c\u7d22\u6846"},_.default.createElement(v.default,{showSearch:!0,style:{width:200},placeholder:"\u8bf7\u9009\u62e9",optionFilterProp:"children",filterOption:function(e,t){return t.props.children.toLowerCase().indexOf(e.toLowerCase())>=0}},_.default.createElement(w,{value:"jack"},"Jack"),_.default.createElement(w,{value:"lucy"},"Lucy"),_.default.createElement(w,{value:"tom"},"Tom")))),_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u6807\u7b7e"},_.default.createElement(j,null)))),_.default.createElement(s.default,{gutter:8,style:{marginTop:"20px"}},_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u591a\u9009"},_.default.createElement(P,null))),_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u5206\u7ec4"},_.default.createElement(v.default,{defaultValue:"lucy",style:{width:200}},_.default.createElement(k,{label:"Manager"},_.default.createElement(w,{value:"jack"},"Jack"),_.default.createElement(w,{value:"lucy"},"Lucy")),_.default.createElement(k,{label:"Engineer"},_.default.createElement(w,{value:"Yiminghe"},"yiminghe"))))),_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u81ea\u52a8\u5206\u8bcd",extra:"\u8bd5\u4e0b\u590d\u5236 \u201c\u9732\u897f,\u6770\u514b\u201d \u5230\u8f93\u5165\u6846\u91cc"},_.default.createElement(x,null)))),_.default.createElement(s.default,{gutter:8,style:{marginTop:"20px"}},_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u667a\u80fd\u63d0\u793a"},_.default.createElement(z,null))),_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u8054\u52a8"},_.default.createElement(T,null))),_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u641c\u7d22\u7528\u6237",extra:"\u4e00\u4e2a\u5e26\u6709\u8fdc\u7a0b\u641c\u7d22\uff0c\u52a0\u8f7d\u72b6\u6001\u7684\u793a\u4f8b"},_.default.createElement(F,null)))),_.default.createElement(s.default,{gutter:8,style:{marginTop:"20px"}},_.default.createElement(h.default,{span:8},_.default.createElement(E.default,{hoverable:!0,title:"\u4e09\u79cd\u5927\u5c0f"},_.default.createElement(I,null))),_.default.createElement(h.default,{span:8}),_.default.createElement(h.default,{span:8})))}}]),t}(_.default.Component),j=function(e){function t(){return n(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),g(t,[{key:"render",value:function(){for(var e=[],t=10;t<36;t++)e.push(_.default.createElement(w,{key:t.toString(36)+t},t.toString(36)+t));return _.default.createElement("div",null,_.default.createElement(v.default,{mode:"tags",style:{width:"100%"},placeholder:"\u6807\u7b7e\u6a21\u5f0f"},e))}}]),t}(_.default.Component),P=function(e){function t(){return n(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),g(t,[{key:"render",value:function(){for(var e=[],t=10;t<36;t++)e.push(_.default.createElement(w,{key:t.toString(36)+t},t.toString(36)+t));return _.default.createElement("div",null,_.default.createElement(v.default,{mode:"multiple",style:{width:"100%"},placeholder:"Please select",defaultValue:["a10","c12"]},e))}}]),t}(_.default.Component),x=function(e){function t(){return n(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return r(t,e),g(t,[{key:"render",value:function(){for(var e=[],t=10;t<36;t++)e.push(_.default.createElement(w,{key:t.toString(36)+t},t.toString(36)+t));return _.default.createElement("div",null,_.default.createElement(v.default,{mode:"tags",style:{width:"100%"},tokenSeparators:[","]},e))}}]),t}(_.default.Component),z=function(e){function t(){var e,a,l,r;n(this,t);for(var f=arguments.length,o=Array(f),d=0;d<f;d++)o[d]=arguments[d];return a=l=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),l.state={options:[]},l.handleChange=function(e){var t=void 0;t=!e||e.indexOf("@")>=0?[]:["gmail.com","163.com","qq.com"].map(function(t){var a=e+"@"+t;return _.default.createElement(w,{key:a},a)}),l.setState({options:t})},r=a,u(l,r)}return r(t,e),g(t,[{key:"render",value:function(){return _.default.createElement(v.default,{mode:"combobox",style:{width:200},onChange:this.handleChange,filterOption:!1,placeholder:"\u8bf7\u8f93\u5165"},this.state.options)}}]),t}(_.default.Component),V=["\u6d59\u6c5f","\u6c5f\u82cf"],L={"\u6d59\u6c5f":["\u676d\u5dde","\u5b81\u6ce2","\u6e29\u5dde"],"\u6c5f\u82cf":["\u5357\u4eac","\u82cf\u5dde","\u9547\u6c5f"]},T=function(e){function t(){var e,a,l,r;n(this,t);for(var f=arguments.length,o=Array(f),d=0;d<f;d++)o[d]=arguments[d];return a=l=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),l.state={cities:L[V[0]],secondCity:L[V[0]][0]},l.handleProvinceChange=function(e){l.setState({cities:L[e],secondCity:L[e][0]})},l.onSecondCityChange=function(e){l.setState({secondCity:e})},r=a,u(l,r)}return r(t,e),g(t,[{key:"render",value:function(){var e=V.map(function(e){return _.default.createElement(w,{key:e},e)}),t=this.state.cities.map(function(e){return _.default.createElement(w,{key:e},e)});return _.default.createElement("div",null,_.default.createElement(v.default,{defaultValue:V[0],style:{width:90},onChange:this.handleProvinceChange},e)," ",_.default.createElement(v.default,{value:this.state.secondCity,style:{width:90},onChange:this.onSecondCityChange},t))}}]),t}(_.default.Component),F=function(e){function t(e){n(this,t);var a=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return a.state={data:[],value:[],fetching:!1},a.fetchUser=function(e){console.log("fetching user",e),a.lastFetchId+=1;var t=a.lastFetchId;a.setState({fetching:!0}),fetch("https://randomuser.me/api/?results=5").then(function(e){return e.json()}).then(function(e){if(t===a.lastFetchId){var l=e.results.map(function(e){return{text:e.name.first+" "+e.name.last,value:e.login.username,fetching:!1}});a.setState({data:l})}})},a.handleChange=function(e){a.setState({value:e,data:[],fetching:!1})},a.lastFetchId=0,a.fetchUser=(0,O.default)(a.fetchUser,800),a}return r(t,e),g(t,[{key:"render",value:function(){var e=this.state,t=e.fetching,a=e.data,l=e.value;return _.default.createElement(v.default,{mode:"multiple",labelInValue:!0,value:l,placeholder:"\u8bf7\u8f93\u5165",notFoundContent:t?_.default.createElement(c.default,{size:"small"}):null,filterOption:!1,onSearch:this.fetchUser,onChange:this.handleChange,style:{width:"100%"}},a.map(function(e){return _.default.createElement(w,{key:e.value},e.text)}))}}]),t}(_.default.Component),I=function(e){function t(){var e,a,l,r;n(this,t);for(var f=arguments.length,o=Array(f),d=0;d<f;d++)o[d]=arguments[d];return a=l=u(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(o))),l.state={size:"default"},l.handleSizeChange=function(e){l.setState({size:e.target.value})},r=a,u(l,r)}return r(t,e),g(t,[{key:"render",value:function(){for(var e=[],t=10;t<36;t++)e.push(_.default.createElement(w,{key:t.toString(36)+t},t.toString(36)+t));var a=this.state.size;return _.default.createElement("div",null,_.default.createElement(o.default.Group,{value:a,onChange:this.handleSizeChange},_.default.createElement(o.default.Button,{value:"large"},"Large"),_.default.createElement(o.default.Button,{value:"default"},"Default"),_.default.createElement(o.default.Button,{value:"small"},"Small")),_.default.createElement("br",null),_.default.createElement("br",null),_.default.createElement(v.default,{size:a,defaultValue:"a1",style:{width:200}},e),_.default.createElement("br",null),_.default.createElement(v.default,{mode:"combobox",size:a,defaultValue:"a1",style:{width:200}},e),_.default.createElement("br",null),_.default.createElement(v.default,{mode:"multiple",size:a,placeholder:"Please select",defaultValue:["a10","c12"],style:{width:"100%"}},e),_.default.createElement("br",null),_.default.createElement(v.default,{mode:"tags",size:a,placeholder:"Please select",defaultValue:["a10","c12"],style:{width:"100%"}},e))}}]),t}(_.default.Component);t.default=S,e.exports=t.default}});
//# sourceMappingURL=98.76de715b.chunk.js.map