diff --git a/dist/demo.js b/dist/demo.js index d350f5c3b..b310cf554 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -1,5 +1,5 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e.replace(/(?:^|[-_])(\w)/g,function(e,t){return t?t.toUpperCase():""})}window.require=function(e){var t=window,n=e.split("/");return n.forEach(function(n,o){if(2===o&&(n=r(n)),"lib"!==n){if(!t[n])throw"There should not have modules here: "+e;t=t[n]}}),t},n(80),window["css-animation"]=n(82),window["react-router"]=n(85),window.CopyToClipboard=n(289);var o=n(293),a=n(89),i=n(295),s=n(589);window.antd=o,window.React=a,window.ReactDOM=i,window["object-assign"]=n(309),window.classnames=n(299),window.reqwest=n(590),o.DatePicker.locale={en_US:n(592),zh_CN:n(380)},o.Calendar.locale={en_US:n(593),zh_CN:n(576)},o.Pagination.locale={en_US:n(594),zh_CN:n(466)},InstantClickChangeFns.push(function(){var e=o.Select,t=e.Option,n=window.ANT_COMPONENTS.sort(function(e,t){return e.title.localeCompare(t.title)}),r=a.createClass({displayName:"AutoComplete",getOptions:function(){return n.map(function(e){return a.createElement(t,{sData:e,key:e.title,text:"\u8df3\u8f6c\u5230 "+e.title},a.createElement("strong",null,e.title),"\xa0",a.createElement("span",{className:"ant-component-decs"},e.desc))})},handleSelect:function(e){location.href=rootUrl+"/components/"+e.replace(/([a-z])([A-Z])/g,function(e,t,n){return t+"-"+n}).toLowerCase()+"/"},filterOption:function(e,t){return-1!==t.props.sData.title.toLowerCase().indexOf(e.toLowerCase())||-1!==t.props.sData.desc.indexOf(e)},render:function(){return a.createElement(e,{combobox:!0,style:{width:"100%"},onSelect:this.handleSelect,optionLabelProp:"text",dropdownClassName:"autoComplete",searchPlaceholder:"\u641c\u7d22\u7ec4\u4ef6...",filterOption:this.filterOption},this.getOptions())}});i.render(a.createElement(r,null),document.getElementById("autoComplete"))}),InstantClickChangeFns.push(function(){function e(e){r[e]&&(location.href=location.href.replace(location.host,r[e]))}var t=o.Select,n=t.Option,r={"0.9.2":"09x.ant.design","0.10.4":"010x.ant.design"};r[antdVersion.latest]=r[antdVersion.latest]||"ant.design";var l=Object.keys(r).sort(function(e,t){return s.lt(e,t)}),u=l.map(function(e){r[e];return a.createElement(n,{key:e,value:e},e)});i.render(a.createElement(t,{defaultValue:antdVersion.latest,size:"small",dropdownMatchSelectWidth:!1,onChange:e},u),document.getElementById("versions-select"))}),window.BrowserDemo=a.createClass({displayName:"BrowserDemo",render:function(){return a.createElement("article",{className:"window-frame focus"},a.createElement("header",{className:"top-bar"},a.createElement("div",{className:"controls"},a.createElement("div",{className:"control close"}),a.createElement("div",{className:"control minify"}),a.createElement("div",{className:"control expand"})),a.createElement("input",{className:"address-bar",defaultValue:"http://www.example.com"})),a.createElement("section",{className:"window-content"},this.props.children))}});var l=o.Modal,u=o.Carousel,c=a.createClass({displayName:"PriviewImg",getInitialState:function(){return{visible:!1,current:0}},showImageModal:function(){this.setState({visible:!0})},handleCancel:function(){this.setState({visible:!1})},handleImgChange:function(e){this.setState({current:e})},render:function(){var e=this,t=this.props.good?"good":"",n=this.props.bad?"bad":"",r=this.props.imgsPack||[{src:this.props.src,alt:this.props.alt}],o={};this.props.noPadding&&(o.padding="0",o.background="none");var i=this.state.current,s=r.length>1,c=function(){return{__html:e.props.description}};return a.createElement("div",{className:"preview-image-box",style:{width:this.props.width}},a.createElement("div",{className:"preview-image-wrapper "+t+" "+n},a.createElement("img",{src:this.props.src,onClick:this.showImageModal,style:o,alt:"Sample Picture"})),a.createElement("div",{className:"preview-image-title"},this.props.alt),a.createElement("div",{className:"preview-image-description",dangerouslySetInnerHTML:c()}),a.createElement(l,{className:"image-modal",width:"960",visible:this.state.visible,onCancel:this.handleCancel,footer:"",title:""},a.createElement(u,{afterChange:this.handleImgChange,adaptiveHeight:!0,arrows:s},r.map(function(e,t){return a.createElement("div",{key:t},a.createElement("div",{className:"image-modal-container"},a.createElement("img",{src:e.src})))})),a.createElement("div",{className:"preview-image-title"},r[i].alt)))}});InstantClickChangeFns.push(function(){var e=$(".preview-img").parent();e.each(function(e,t){t=$(t);var n=[],r=t.find(".preview-img"),o=void 0;r.each(function(e,t){return t.hasAttribute("as-cover")?(o=t,!1):void 0}),o?!function(){var e=[];r.each(function(t,n){return e.push(n)}),n=a.createElement(c,{src:o.src,alt:o.alt,imgsPack:e})}():r.each(function(e,t){n.push(a.createElement(c,{key:e,src:t.src,width:100/r.length+"%",alt:t.alt,noPadding:t.hasAttribute("noPadding"),description:t.getAttribute("description"),good:!!t.hasAttribute("good"),bad:!!t.hasAttribute("bad")}))});var s="";1===n.length?s=r[0].getAttribute("width")||"":o&&(s=o.getAttribute("width")),s&&s.indexOf("%")<0&&"auto"!==s&&(s+="px");var l=$('
')[0];t.replaceWith(l),i.render(a.createElement("span",null,n),l)})}),e.exports=o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t){},,function(e,t,n){"use strict";function r(e,t){for(var n=window.getComputedStyle(e),r=["-webkit-","-moz-","-o-","ms-",""],o="",a=0;a