Files
ant-design/docs/react/practical-projects.html
T
2016-12-05 15:58:01 +08:00

148 lines
54 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Ant Design - An enterprise-class UI design language and React-based implementation">
<title>Ant Design - One Design Language</title>
<link rel="icon" href="https://t.alipayobjects.com/images/T1QUBfXo4fXXXXXXXX.png" type="image/x-icon">
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.cnpmjs.org/css?family=Lato:400,700|Raleway"/>
<link rel="stylesheet" type="text/css" href="/index-1.css"/>
<link rel="stylesheet" type="text/css" href="/index-2.css"/>
<!--[if lte IE 10]>
<script
src="https://as.alipayobjects.com/g/component/??console-polyfill/0.2.2/index.js,media-match/2.0.2/media.match.min.js"></script>
<![endif]-->
<script>
if (!window.Intl) {
document.writeln('<script src="https://as.alipayobjects.com/g/component/intl/1.0.1/??Intl.js,locale-data/jsonp/en.js,locale-data/jsonp/zh.js">' + '<' + '/script>');
}
if (!window.Promise) {
document.writeln('<script src="https://as.alipayobjects.com/g/component/es6-promise/3.2.2/es6-promise.min.js"' + '>' + '<' + '/' + 'script>');
}
</script>
</head>
<body>
<div id="react-content">
<div class="page-wrapper" data-reactroot="" data-reactid="1" data-react-checksum="1130836766"><header id="header" class="clearfix" data-reactid="2"><div class="ant-row" data-reactid="3"><div class="ant-col-xs-24 ant-col-sm-24 ant-col-md-6 ant-col-lg-4" data-reactid="4"><a id="logo" href="/" data-reactid="5"><img alt="logo" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg" data-reactid="6"/><span data-reactid="7">Ant Design</span></a></div><div style="display:block;" class="ant-col-xs-0 ant-col-sm-17 ant-col-md-18 ant-col-lg-20" data-reactid="8"><div id="search-box" data-reactid="9"><div class="ant-select ant-select-combobox ant-select-enabled" data-reactid="10"><div class="ant-select-selection
ant-select-selection--single" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" data-reactid="11"><div class="ant-select-selection__rendered" data-reactid="12"><div style="display:block;user-select:none;-webkit-user-select:none;" unselectable="unselectable" class="ant-select-selection__placeholder" data-reactid="13">Search Components...</div><ul data-reactid="14"><li class="ant-select-search ant-select-search--inline" data-reactid="15"><div class="ant-select-search__field__wrap" data-reactid="16"><input value="" class="ant-select-search__field" data-reactid="17"/><span class="ant-select-search__field__mirror" data-reactid="18"></span></div></li></ul></div><span class="ant-select-arrow" style="user-select:none;-webkit-user-select:none;" unselectable="unselectable" data-reactid="19"><b data-reactid="20"></b></span></div></div></div><button type="button" class="ant-btn ant-btn-ghost ant-btn-sm lang" data-reactid="21"><span data-reactid="22">中文</span></button><ul class="ant-menu ant-menu-horizontal ant-menu-light ant-menu-root" role="menu" aria-activedescendant="" id="nav" tabindex="0" data-reactid="23"><li class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="24"><a href="/" data-reactid="25"><span data-reactid="26">Home</span></a></li><li class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="27"><a href="/docs/spec/introduce" data-reactid="28"><span data-reactid="29">Specification</span></a></li><li class="ant-menu-item-selected ant-menu-item" role="menuitem" aria-selected="true" data-reactid="30"><a href="/docs/react/introduce" data-reactid="31"><span data-reactid="32">Components</span></a></li><li class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="33"><a href="/docs/pattern/navigation" data-reactid="34"><span data-reactid="35">Pattern</span></a></li><li class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="36"><a href="/docs/practice/cases" data-reactid="37"><span data-reactid="38">Practice</span></a></li><li class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="39"><a href="/docs/resource/download" data-reactid="40"><span data-reactid="41">Resource</span></a></li></ul></div></div></header><div class="main-wrapper" data-reactid="42"><div class="ant-row" data-reactid="43"><div class="ant-col-xs-24 ant-col-sm-24 ant-col-md-6 ant-col-lg-4" data-reactid="44"><ul class="ant-menu ant-menu-inline aside-container ant-menu-light ant-menu-root" role="menu" aria-activedescendant="" tabindex="0" data-reactid="45"><li style="padding-left:24px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="46"><a href="docs/react/introduce" data-reactid="47">Ant Design of React</a></li><li style="padding-left:24px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="48"><a href="docs/react/getting-started" data-reactid="49">Getting Started</a></li><li style="padding-left:24px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="50"><a href="docs/react/install" data-reactid="51">Installation</a></li><li style="padding-left:24px;" class="ant-menu-item-selected ant-menu-item" role="menuitem" aria-selected="true" data-reactid="52"><a href="docs/react/practical-projects" data-reactid="53">Practical Projects</a></li><li style="padding-left:24px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="54"><a href="docs/react/customize-theme" data-reactid="55">Customize theme</a></li><li style="padding-left:24px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="56"><a href="changelog" data-reactid="57">Change Log</a></li><li class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu" data-reactid="58"><div style="padding-left:24px;" class="ant-menu-submenu-title" aria-open="true" aria-owns="1480924642495_8" aria-haspopup="true" data-reactid="59"><h4 data-reactid="60">Components</h4></div><ul class="ant-menu ant-menu-inline ant-menu-sub" role="menu" aria-activedescendant="" id="1480924642495_8" data-reactid="61"><li class=" ant-menu-item-group" data-reactid="62"><div class="ant-menu-item-group-title" data-reactid="63">General</div><ul class="ant-menu-item-group-list" data-reactid="64"><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="65"><a href="components/button/" data-reactid="66"><span data-reactid="67">Button</span><span class="chinese" data-reactid="68"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="69"><a href="components/icon/" data-reactid="70"><span data-reactid="71">Icon</span><span class="chinese" data-reactid="72"></span></a></li></ul></li><li class=" ant-menu-item-group" data-reactid="73"><div class="ant-menu-item-group-title" data-reactid="74">Layout</div><ul class="ant-menu-item-group-list" data-reactid="75"><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="76"><a href="components/grid/" data-reactid="77"><span data-reactid="78">Grid</span><span class="chinese" data-reactid="79"></span></a></li></ul></li><li class=" ant-menu-item-group" data-reactid="80"><div class="ant-menu-item-group-title" data-reactid="81">Navigation</div><ul class="ant-menu-item-group-list" data-reactid="82"><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="83"><a href="components/affix/" data-reactid="84"><span data-reactid="85">Affix</span><span class="chinese" data-reactid="86"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="87"><a href="components/anchor/" data-reactid="88"><span data-reactid="89">Anchor</span><span class="chinese" data-reactid="90"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="91"><a href="components/back-top/" data-reactid="92"><span data-reactid="93">BackTop</span><span class="chinese" data-reactid="94"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="95"><a href="components/breadcrumb/" data-reactid="96"><span data-reactid="97">Breadcrumb</span><span class="chinese" data-reactid="98"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="99"><a href="components/dropdown/" data-reactid="100"><span data-reactid="101">Dropdown</span><span class="chinese" data-reactid="102"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="103"><a href="components/menu/" data-reactid="104"><span data-reactid="105">Menu</span><span class="chinese" data-reactid="106"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="107"><a href="components/pagination/" data-reactid="108"><span data-reactid="109">Pagination</span><span class="chinese" data-reactid="110"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="111"><a href="components/steps/" data-reactid="112"><span data-reactid="113">Steps</span><span class="chinese" data-reactid="114"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="115"><a href="components/tabs/" data-reactid="116"><span data-reactid="117">Tabs</span><span class="chinese" data-reactid="118"></span></a></li></ul></li><li class=" ant-menu-item-group" data-reactid="119"><div class="ant-menu-item-group-title" data-reactid="120">Data Entry</div><ul class="ant-menu-item-group-list" data-reactid="121"><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="122"><a href="components/auto-complete/" data-reactid="123"><span data-reactid="124">AutoComplete</span><span class="chinese" data-reactid="125"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="126"><a href="components/checkbox/" data-reactid="127"><span data-reactid="128">Checkbox</span><span class="chinese" data-reactid="129"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="130"><a href="components/cascader/" data-reactid="131"><span data-reactid="132">Cascader</span><span class="chinese" data-reactid="133"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="134"><a href="components/date-picker/" data-reactid="135"><span data-reactid="136">DatePicker</span><span class="chinese" data-reactid="137"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="138"><a href="components/form/" data-reactid="139"><span data-reactid="140">Form</span><span class="chinese" data-reactid="141"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="142"><a href="components/input/" data-reactid="143"><span data-reactid="144">Input</span><span class="chinese" data-reactid="145"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="146"><a href="components/input-number/" data-reactid="147"><span data-reactid="148">InputNumber</span><span class="chinese" data-reactid="149"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="150"><a href="components/mention/" data-reactid="151"><span data-reactid="152">Mention</span><span class="chinese" data-reactid="153"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="154"><a href="components/radio/" data-reactid="155"><span data-reactid="156">Radio</span><span class="chinese" data-reactid="157"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="158"><a href="components/rate/" data-reactid="159"><span data-reactid="160">Rate</span><span class="chinese" data-reactid="161"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="162"><a href="components/select/" data-reactid="163"><span data-reactid="164">Select</span><span class="chinese" data-reactid="165"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="166"><a href="components/slider/" data-reactid="167"><span data-reactid="168">Slider</span><span class="chinese" data-reactid="169"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="170"><a href="components/switch/" data-reactid="171"><span data-reactid="172">Switch</span><span class="chinese" data-reactid="173"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="174"><a href="components/time-picker/" data-reactid="175"><span data-reactid="176">TimePicker</span><span class="chinese" data-reactid="177"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="178"><a href="components/transfer/" data-reactid="179"><span data-reactid="180">Transfer</span><span class="chinese" data-reactid="181"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="182"><a href="components/tree-select/" data-reactid="183"><span data-reactid="184">TreeSelect</span><span class="chinese" data-reactid="185"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="186"><a href="components/upload/" data-reactid="187"><span data-reactid="188">Upload</span><span class="chinese" data-reactid="189"></span></a></li></ul></li><li class=" ant-menu-item-group" data-reactid="190"><div class="ant-menu-item-group-title" data-reactid="191">Data Display</div><ul class="ant-menu-item-group-list" data-reactid="192"><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="193"><a href="components/badge/" data-reactid="194"><span data-reactid="195">Badge</span><span class="chinese" data-reactid="196"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="197"><a href="components/card/" data-reactid="198"><span data-reactid="199">Card</span><span class="chinese" data-reactid="200"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="201"><a href="components/carousel/" data-reactid="202"><span data-reactid="203">Carousel</span><span class="chinese" data-reactid="204"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="205"><a href="components/collapse/" data-reactid="206"><span data-reactid="207">Collapse</span><span class="chinese" data-reactid="208"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="209"><a href="components/calendar/" data-reactid="210"><span data-reactid="211">Calendar</span><span class="chinese" data-reactid="212"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="213"><a href="components/popover/" data-reactid="214"><span data-reactid="215">Popover</span><span class="chinese" data-reactid="216"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="217"><a href="components/table/" data-reactid="218"><span data-reactid="219">Table</span><span class="chinese" data-reactid="220"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="221"><a href="components/tag/" data-reactid="222"><span data-reactid="223">Tag</span><span class="chinese" data-reactid="224"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="225"><a href="components/timeline/" data-reactid="226"><span data-reactid="227">Timeline</span><span class="chinese" data-reactid="228"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="229"><a href="components/tooltip/" data-reactid="230"><span data-reactid="231">Tooltip</span><span class="chinese" data-reactid="232"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="233"><a href="components/tree/" data-reactid="234"><span data-reactid="235">Tree</span><span class="chinese" data-reactid="236"></span></a></li></ul></li><li class=" ant-menu-item-group" data-reactid="237"><div class="ant-menu-item-group-title" data-reactid="238">Feedback</div><ul class="ant-menu-item-group-list" data-reactid="239"><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="240"><a href="components/alert/" data-reactid="241"><span data-reactid="242">Alert</span><span class="chinese" data-reactid="243"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="244"><a href="components/message/" data-reactid="245"><span data-reactid="246">Message</span><span class="chinese" data-reactid="247"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="248"><a href="components/modal/" data-reactid="249"><span data-reactid="250">Modal</span><span class="chinese" data-reactid="251"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="252"><a href="components/notification/" data-reactid="253"><span data-reactid="254">Notification</span><span class="chinese" data-reactid="255"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="256"><a href="components/popconfirm/" data-reactid="257"><span data-reactid="258">Popconfirm</span><span class="chinese" data-reactid="259"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="260"><a href="components/progress/" data-reactid="261"><span data-reactid="262">Progress</span><span class="chinese" data-reactid="263"></span></a></li><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="264"><a href="components/spin/" data-reactid="265"><span data-reactid="266">Spin</span><span class="chinese" data-reactid="267"></span></a></li></ul></li><li class=" ant-menu-item-group" data-reactid="268"><div class="ant-menu-item-group-title" data-reactid="269">Other</div><ul class="ant-menu-item-group-list" data-reactid="270"><li style="padding-left:48px;" class="ant-menu-item" role="menuitem" aria-selected="false" data-reactid="271"><a href="components/locale-provider/" data-reactid="272"><span data-reactid="273">LocaleProvider</span><span class="chinese" data-reactid="274"></span></a></li></ul></li></ul></li></ul></div><div class="main-container ant-col-xs-24 ant-col-sm-24 ant-col-md-18 ant-col-lg-20" data-reactid="275"><article class="markdown" data-reactid="276"><h1 data-reactid="277"><!-- react-text: 278 -->Practical Projects<!-- /react-text --><a class="edit-button" href="https://github.com/ant-design/ant-design/blob/master/docs/react/practical-projects.en-US.md" data-reactid="279"><i class="anticon anticon-edit" data-reactid="280"></i></a></h1><section class="markdown" data-reactid="281"><p data-reactid="282"><a href="https://github.com/dvajs/dva" data-reactid="283"><!-- react-text: 284 -->dva<!-- /react-text --></a><!-- react-text: 285 --> is a React and redux based, lightweight and elm-style framework, which supports side effects, hot module replacement, dynamic on demand, react-native, SSR. And it has been widely used in production environment.<!-- /react-text --></p><p data-reactid="286"><!-- react-text: 287 -->This article will guide you to create a simple application from zero using dva and antd.<!-- /react-text --></p><p data-reactid="288"><!-- react-text: 289 -->Include the following:<!-- /react-text --></p></section><section class="toc" data-reactid="290"><ul data-reactid="291"><li data-reactid="292"><a href="#Install-dva" data-reactid="293"><!-- react-text: 294 -->Install dva<!-- /react-text --></a></li><li data-reactid="295"><a href="#Create-New-App" data-reactid="296"><!-- react-text: 297 -->Create New App<!-- /react-text --></a></li><li data-reactid="298"><a href="#Integrate-antd" data-reactid="299"><!-- react-text: 300 -->Integrate antd<!-- /react-text --></a></li><li data-reactid="301"><a href="#Define-Router" data-reactid="302"><!-- react-text: 303 -->Define Router<!-- /react-text --></a></li><li data-reactid="304"><a href="#Write-UI-Components" data-reactid="305"><!-- react-text: 306 -->Write UI Components<!-- /react-text --></a></li><li data-reactid="307"><a href="#Define-Model" data-reactid="308"><!-- react-text: 309 -->Define Model<!-- /react-text --></a></li><li data-reactid="310"><a href="#Connect" data-reactid="311"><!-- react-text: 312 -->Connect<!-- /react-text --></a></li><li data-reactid="313"><a href="#Build" data-reactid="314"><!-- react-text: 315 -->Build<!-- /react-text --></a></li><li data-reactid="316"><a href="#What&#x27;s-Next" data-reactid="317"><!-- react-text: 318 -->What&#x27;s Next<!-- /react-text --></a></li></ul></section><section class="markdown" data-reactid="319"><h2 id="Install-dva" data-reactid="320"><span data-reactid="321"><!-- react-text: 322 -->Install dva<!-- /react-text --></span><a href="#Install-dva" class="anchor" data-reactid="323">#</a></h2><p data-reactid="324"><!-- react-text: 325 -->Install dva with npm.<!-- /react-text --></p><pre class="language-bash" data-reactid="326"><code data-reactid="327">$ npm <span class="token function" >install</span> dva-cli -g</code></pre><h2 id="Create-New-App" data-reactid="328"><span data-reactid="329"><!-- react-text: 330 -->Create New App<!-- /react-text --></span><a href="#Create-New-App" class="anchor" data-reactid="331">#</a></h2><p data-reactid="332"><!-- react-text: 333 -->After installed dva-cli, you can have access to the <!-- /react-text --><code data-reactid="334"><!-- react-text: 335 -->dva<!-- /react-text --></code><!-- react-text: 336 --> command in terminal. Now, create a new application with <!-- /react-text --><code data-reactid="337"><!-- react-text: 338 -->dva new<!-- /react-text --></code><!-- react-text: 339 -->.<!-- /react-text --></p><pre class="language-bash" data-reactid="340"><code data-reactid="341">$ dva new dva-quickstart</code></pre><p data-reactid="342"><!-- react-text: 343 -->This creates <!-- /react-text --><code data-reactid="344"><!-- react-text: 345 -->dva-quickstart<!-- /react-text --></code><!-- react-text: 346 --> directory, that contains the project directories and files, and provides development server, build script, mock service, proxy server and so on.<!-- /react-text --></p><p data-reactid="347"><!-- react-text: 348 -->Then <!-- /react-text --><code data-reactid="349"><!-- react-text: 350 -->cd<!-- /react-text --></code><!-- react-text: 351 --> the <!-- /react-text --><code data-reactid="352"><!-- react-text: 353 -->dva-quickstart<!-- /react-text --></code><!-- react-text: 354 --> directory, and start the development server.<!-- /react-text --></p><pre class="language-bash" data-reactid="355"><code data-reactid="356">$ <span class="token function" >cd</span> dva-quickstart
$ npm start</code></pre><p data-reactid="357"><!-- react-text: 358 -->After a few seconds, you will see the following output:<!-- /react-text --></p><pre class="language-bash" data-reactid="359"><code data-reactid="360"> proxy: load rule from proxy.config.js
proxy: listened on 8989
📦 411/411 build modules
webpack: bundle build is now finished.</code></pre><p data-reactid="361"><!-- react-text: 362 -->Open <!-- /react-text --><a href="http://localhost:8989" data-reactid="363"><!-- react-text: 364 -->http://localhost:8989<!-- /react-text --></a><!-- react-text: 365 --> in your browser, you will see dva welcome page.<!-- /react-text --></p><h2 id="Integrate-antd" data-reactid="366"><span data-reactid="367"><!-- react-text: 368 -->Integrate antd<!-- /react-text --></span><a href="#Integrate-antd" class="anchor" data-reactid="369">#</a></h2><p data-reactid="370"><!-- react-text: 371 -->Install <!-- /react-text --><code data-reactid="372"><!-- react-text: 373 -->antd<!-- /react-text --></code><!-- react-text: 374 --> and <!-- /react-text --><code data-reactid="375"><!-- react-text: 376 -->babel-plugin-import<!-- /react-text --></code><!-- react-text: 377 --> with npm. <!-- /react-text --><code data-reactid="378"><!-- react-text: 379 -->babel-plugin-import<!-- /react-text --></code><!-- react-text: 380 --> is used to automatically import scripts and stylesheets from antd in demand. See <!-- /react-text --><a href="https://github.com/ant-design/babel-plugin-import" data-reactid="381"><!-- react-text: 382 -->repo<!-- /react-text --></a><!-- react-text: 383 --><!-- /react-text --></p><pre class="language-bash" data-reactid="384"><code data-reactid="385">$ npm <span class="token function" >install</span> antd babel-plugin-import --save</code></pre><p data-reactid="386"><!-- react-text: 387 -->Edit <!-- /react-text --><code data-reactid="388"><!-- react-text: 389 -->webpack.config.js<!-- /react-text --></code><!-- react-text: 390 --> to integrate <!-- /react-text --><code data-reactid="391"><!-- react-text: 392 -->babel-plugin-import<!-- /react-text --></code><!-- react-text: 393 -->.<!-- /react-text --></p><pre class="language-diff" data-reactid="394"><code data-reactid="395"><span class="token inserted" >+ webpackConfig.babel.plugins.push(['import', {</span>
<span class="token inserted" >+ libraryName: 'antd',</span>
<span class="token inserted" >+ style: 'css',</span>
<span class="token inserted" >+ }]);</span></code></pre><blockquote data-reactid="396"><p data-reactid="397"><!-- react-text: 398 -->Notice: No need to manually restart the server, it will restart automatically after you save the <!-- /react-text --><code data-reactid="399"><!-- react-text: 400 -->webpack.config.js<!-- /react-text --></code><!-- react-text: 401 -->.<!-- /react-text --></p></blockquote><h2 id="Define-Router" data-reactid="402"><span data-reactid="403"><!-- react-text: 404 -->Define Router<!-- /react-text --></span><a href="#Define-Router" class="anchor" data-reactid="405">#</a></h2><p data-reactid="406"><!-- react-text: 407 -->We need to write an application displaying the list of products. The first step is to create a route.<!-- /react-text --></p><p data-reactid="408"><!-- react-text: 409 -->Create a route component <!-- /react-text --><code data-reactid="410"><!-- react-text: 411 -->routes/Products.js<!-- /react-text --></code><!-- react-text: 412 -->:<!-- /react-text --></p><pre class="language-javascript" data-reactid="413"><code data-reactid="414"><span class="token keyword" >import</span> React <span class="token keyword" >from</span> <span class="token string" >'react'</span><span class="token punctuation" >;</span>
<span class="token keyword" >const</span> Products <span class="token operator" >=</span> <span class="token punctuation" >(</span>props<span class="token punctuation" >)</span> <span class="token operator" >=</span><span class="token operator" >></span> <span class="token punctuation" >(</span>
<span class="token operator" >&lt;</span>h2<span class="token operator" >></span>List <span class="token keyword" >of</span> Products<span class="token operator" >&lt;</span><span class="token operator" >/</span>h2<span class="token operator" >></span>
<span class="token punctuation" >)</span><span class="token punctuation" >;</span>
<span class="token keyword" >export</span> <span class="token keyword" >default</span> Products<span class="token punctuation" >;</span></code></pre><p data-reactid="415"><!-- react-text: 416 -->Add routing information to router, edit <!-- /react-text --><code data-reactid="417"><!-- react-text: 418 -->router.js<!-- /react-text --></code><!-- react-text: 419 -->:<!-- /react-text --></p><pre class="language-diff" data-reactid="420"><code data-reactid="421"><span class="token inserted" >+ import Products from './routes/Products';</span>
...
<span class="token inserted" >+ &lt;Route path="/products" component={Products} /></span></code></pre><p data-reactid="422"><!-- react-text: 423 -->Then open <!-- /react-text --><a href="http://localhost:8989/#/products" data-reactid="424"><!-- react-text: 425 -->http://localhost:8989/#/products<!-- /react-text --></a><!-- react-text: 426 --> in your browser, you should be able to see the <!-- /react-text --><code data-reactid="427"><!-- react-text: 428 -->&lt;h2&gt;<!-- /react-text --></code><!-- react-text: 429 --> tag defined before.<!-- /react-text --></p><h2 id="Write-UI-Components" data-reactid="430"><span data-reactid="431"><!-- react-text: 432 -->Write UI Components<!-- /react-text --></span><a href="#Write-UI-Components" class="anchor" data-reactid="433">#</a></h2><p data-reactid="434"><!-- react-text: 435 -->As your application grows and you notice you are sharing UI elements between multiple pages (or using them multiple times on the same page), in dva it&#x27;s called reusable components.<!-- /react-text --></p><p data-reactid="436"><!-- react-text: 437 -->Let&#x27;s create a <!-- /react-text --><code data-reactid="438"><!-- react-text: 439 -->ProductList<!-- /react-text --></code><!-- react-text: 440 --> component that we can use in multiple places to show a list of products.<!-- /react-text --></p><p data-reactid="441"><!-- react-text: 442 -->Create <!-- /react-text --><code data-reactid="443"><!-- react-text: 444 -->components/ProductList.js<!-- /react-text --></code><!-- react-text: 445 --> and typing:<!-- /react-text --></p><pre class="language-javascript" data-reactid="446"><code data-reactid="447"><span class="token keyword" >import</span> React<span class="token punctuation" >,</span> <span class="token punctuation" >{</span> PropTypes <span class="token punctuation" >}</span> <span class="token keyword" >from</span> <span class="token string" >'react'</span><span class="token punctuation" >;</span>
<span class="token keyword" >import</span> <span class="token punctuation" >{</span> Table<span class="token punctuation" >,</span> Popconfirm<span class="token punctuation" >,</span> Button <span class="token punctuation" >}</span> <span class="token keyword" >from</span> <span class="token string" >'antd'</span><span class="token punctuation" >;</span>
<span class="token keyword" >const</span> ProductList <span class="token operator" >=</span> <span class="token punctuation" >(</span><span class="token punctuation" >{</span> onDelete<span class="token punctuation" >,</span> products <span class="token punctuation" >}</span><span class="token punctuation" >)</span> <span class="token operator" >=</span><span class="token operator" >></span> <span class="token punctuation" >{</span>
<span class="token keyword" >const</span> columns <span class="token operator" >=</span> <span class="token punctuation" >[</span><span class="token punctuation" >{</span>
title<span class="token punctuation" >:</span> <span class="token string" >'Name'</span><span class="token punctuation" >,</span>
dataIndex<span class="token punctuation" >:</span> <span class="token string" >'name'</span><span class="token punctuation" >,</span>
<span class="token punctuation" >}</span><span class="token punctuation" >,</span> <span class="token punctuation" >{</span>
title<span class="token punctuation" >:</span> <span class="token string" >'Actions'</span><span class="token punctuation" >,</span>
render<span class="token punctuation" >:</span> <span class="token punctuation" >(</span>text<span class="token punctuation" >,</span> record<span class="token punctuation" >)</span> <span class="token operator" >=</span><span class="token operator" >></span> <span class="token punctuation" >{</span>
<span class="token keyword" >return</span> <span class="token punctuation" >(</span>
<span class="token operator" >&lt;</span>Popconfirm title<span class="token operator" >=</span><span class="token string" >"Delete?"</span> onConfirm<span class="token operator" >=</span><span class="token punctuation" >{</span><span class="token punctuation" >(</span><span class="token punctuation" >)</span> <span class="token operator" >=</span><span class="token operator" >></span> <span class="token function" >onDelete</span><span class="token punctuation" >(</span>record<span class="token punctuation" >.</span>id<span class="token punctuation" >)</span><span class="token punctuation" >}</span><span class="token operator" >></span>
<span class="token operator" >&lt;</span>Button<span class="token operator" >></span>Delete<span class="token operator" >&lt;</span><span class="token operator" >/</span>Button<span class="token operator" >></span>
<span class="token operator" >&lt;</span><span class="token operator" >/</span>Popconfirm<span class="token operator" >></span>
<span class="token punctuation" >)</span><span class="token punctuation" >;</span>
<span class="token punctuation" >}</span><span class="token punctuation" >,</span>
<span class="token punctuation" >}</span><span class="token punctuation" >]</span><span class="token punctuation" >;</span>
<span class="token keyword" >return</span> <span class="token punctuation" >(</span>
<span class="token operator" >&lt;</span>Table
dataSource<span class="token operator" >=</span><span class="token punctuation" >{</span>products<span class="token punctuation" >}</span>
columns<span class="token operator" >=</span><span class="token punctuation" >{</span>columns<span class="token punctuation" >}</span>
<span class="token operator" >/</span><span class="token operator" >></span>
<span class="token punctuation" >)</span><span class="token punctuation" >;</span>
<span class="token punctuation" >}</span><span class="token punctuation" >;</span>
ProductList<span class="token punctuation" >.</span>proptypes <span class="token operator" >=</span> <span class="token punctuation" >{</span>
onDelete<span class="token punctuation" >:</span> PropTypes<span class="token punctuation" >.</span>func<span class="token punctuation" >.</span>isRequired<span class="token punctuation" >,</span>
products<span class="token punctuation" >:</span> PropTypes<span class="token punctuation" >.</span>array<span class="token punctuation" >.</span>isRequired<span class="token punctuation" >,</span>
<span class="token punctuation" >}</span><span class="token punctuation" >;</span>
<span class="token keyword" >export</span> <span class="token keyword" >default</span> ProductList<span class="token punctuation" >;</span></code></pre><h2 id="Define-Model" data-reactid="448"><span data-reactid="449"><!-- react-text: 450 -->Define Model<!-- /react-text --></span><a href="#Define-Model" class="anchor" data-reactid="451">#</a></h2><p data-reactid="452"><!-- react-text: 453 -->After complete the UI, we will begin processing the data and logic.<!-- /react-text --></p><p data-reactid="454"><!-- react-text: 455 -->dva manages domain model with <!-- /react-text --><code data-reactid="456"><!-- react-text: 457 -->model<!-- /react-text --></code><!-- react-text: 458 -->, with reducers for synchronous state update, effects for async logic, and subscriptions for data source subscribe.<!-- /react-text --></p><p data-reactid="459"><!-- react-text: 460 -->Let&#x27;s create a model <!-- /react-text --><code data-reactid="461"><!-- react-text: 462 -->models/products.js<!-- /react-text --></code><!-- react-text: 463 --> and typing:<!-- /react-text --></p><pre class="language-javascript" data-reactid="464"><code data-reactid="465"><span class="token keyword" >import</span> dva <span class="token keyword" >from</span> <span class="token string" >'dva'</span><span class="token punctuation" >;</span>
<span class="token keyword" >export</span> <span class="token keyword" >default</span> <span class="token punctuation" >{</span>
namespace<span class="token punctuation" >:</span> <span class="token string" >'products'</span><span class="token punctuation" >,</span>
state<span class="token punctuation" >:</span> <span class="token punctuation" >[</span><span class="token punctuation" >]</span><span class="token punctuation" >,</span>
reducers<span class="token punctuation" >:</span> <span class="token punctuation" >{</span>
<span class="token string" >'delete'</span><span class="token punctuation" >(</span>state<span class="token punctuation" >,</span> <span class="token punctuation" >{</span> payload<span class="token punctuation" >:</span> id <span class="token punctuation" >}</span><span class="token punctuation" >)</span> <span class="token punctuation" >{</span>
<span class="token keyword" >return</span> state<span class="token punctuation" >.</span><span class="token function" >filter</span><span class="token punctuation" >(</span>item <span class="token operator" >=</span><span class="token operator" >></span> item<span class="token punctuation" >.</span>id <span class="token operator" >!==</span> id<span class="token punctuation" >)</span><span class="token punctuation" >;</span>
<span class="token punctuation" >}</span><span class="token punctuation" >,</span>
<span class="token punctuation" >}</span><span class="token punctuation" >,</span>
<span class="token punctuation" >}</span><span class="token punctuation" >;</span></code></pre><p data-reactid="466"><!-- react-text: 467 -->In this model:<!-- /react-text --></p><ul data-reactid="468"><li data-reactid="469"><p data-reactid="470"><code data-reactid="471"><!-- react-text: 472 -->namespace<!-- /react-text --></code><!-- react-text: 473 --> represent the key on global state<!-- /react-text --></p></li><li data-reactid="474"><p data-reactid="475"><code data-reactid="476"><!-- react-text: 477 -->state<!-- /react-text --></code><!-- react-text: 478 --> is the initial value, here is an empty array<!-- /react-text --></p></li><li data-reactid="479"><p data-reactid="480"><code data-reactid="481"><!-- react-text: 482 -->reducers<!-- /react-text --></code><!-- react-text: 483 --> is equal to reducer in redux, accepting action, and update state synchronously<!-- /react-text --></p></li></ul><p data-reactid="484"><!-- react-text: 485 -->Then don&#x27;t forget to require it in <!-- /react-text --><code data-reactid="486"><!-- react-text: 487 -->index.js<!-- /react-text --></code><!-- react-text: 488 -->:<!-- /react-text --></p><pre class="language-diff" data-reactid="489"><code data-reactid="490">// 3. Model
<span class="token inserted" >+ app.model(require('./models/products'));</span></code></pre><h2 id="Connect" data-reactid="491"><span data-reactid="492"><!-- react-text: 493 -->Connect<!-- /react-text --></span><a href="#Connect" class="anchor" data-reactid="494">#</a></h2><p data-reactid="495"><!-- react-text: 496 -->So far, we have completed a separate model and component. Then how to connect these together?<!-- /react-text --></p><p data-reactid="497"><!-- react-text: 498 -->dva provides a <!-- /react-text --><code data-reactid="499"><!-- react-text: 500 -->connect<!-- /react-text --></code><!-- react-text: 501 --> method. If you are familiar with redux, this <!-- /react-text --><code data-reactid="502"><!-- react-text: 503 -->connect<!-- /react-text --></code><!-- react-text: 504 --> is from react-router.<!-- /react-text --></p><p data-reactid="505"><!-- react-text: 506 -->Edit <!-- /react-text --><code data-reactid="507"><!-- react-text: 508 -->routes/Products.js<!-- /react-text --></code><!-- react-text: 509 --> and replace with following:<!-- /react-text --></p><pre class="language-javascript" data-reactid="510"><code data-reactid="511"><span class="token keyword" >import</span> React <span class="token keyword" >from</span> <span class="token string" >'react'</span><span class="token punctuation" >;</span>
<span class="token keyword" >import</span> <span class="token punctuation" >{</span> connect <span class="token punctuation" >}</span> <span class="token keyword" >from</span> <span class="token string" >'dva'</span><span class="token punctuation" >;</span>
<span class="token keyword" >import</span> ProductList <span class="token keyword" >from</span> <span class="token string" >'../components/ProductList'</span><span class="token punctuation" >;</span>
<span class="token keyword" >const</span> Products <span class="token operator" >=</span> <span class="token punctuation" >(</span><span class="token punctuation" >{</span> dispatch<span class="token punctuation" >,</span> products <span class="token punctuation" >}</span><span class="token punctuation" >)</span> <span class="token operator" >=</span><span class="token operator" >></span> <span class="token punctuation" >{</span>
<span class="token keyword" >function</span> <span class="token function" >handleDelete</span><span class="token punctuation" >(</span>id<span class="token punctuation" >)</span> <span class="token punctuation" >{</span>
<span class="token function" >dispatch</span><span class="token punctuation" >(</span><span class="token punctuation" >{</span>
type<span class="token punctuation" >:</span> <span class="token string" >'products/delete'</span><span class="token punctuation" >,</span>
payload<span class="token punctuation" >:</span> id<span class="token punctuation" >,</span>
<span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >;</span>
<span class="token punctuation" >}</span>
<span class="token keyword" >return</span> <span class="token punctuation" >(</span>
<span class="token operator" >&lt;</span>div<span class="token operator" >></span>
<span class="token operator" >&lt;</span>h2<span class="token operator" >></span>List <span class="token keyword" >of</span> Products<span class="token operator" >&lt;</span><span class="token operator" >/</span>h2<span class="token operator" >></span>
<span class="token operator" >&lt;</span>ProductList onDelete<span class="token operator" >=</span><span class="token punctuation" >{</span>handleDelete<span class="token punctuation" >}</span> products<span class="token operator" >=</span><span class="token punctuation" >{</span>products<span class="token punctuation" >}</span> <span class="token operator" >/</span><span class="token operator" >></span>
<span class="token operator" >&lt;</span><span class="token operator" >/</span>div<span class="token operator" >></span>
<span class="token punctuation" >)</span><span class="token punctuation" >;</span>
<span class="token punctuation" >}</span><span class="token punctuation" >;</span>
<span class="token comment" spellcheck="true">// export default Products;</span>
<span class="token keyword" >export</span> <span class="token keyword" >default</span> <span class="token function" >connect</span><span class="token punctuation" >(</span><span class="token punctuation" >(</span><span class="token punctuation" >{</span> products <span class="token punctuation" >}</span><span class="token punctuation" >)</span> <span class="token operator" >=</span><span class="token operator" >></span> <span class="token punctuation" >(</span><span class="token punctuation" >{</span>
products<span class="token punctuation" >,</span>
<span class="token punctuation" >}</span><span class="token punctuation" >)</span><span class="token punctuation" >)</span><span class="token punctuation" >(</span>Products<span class="token punctuation" >)</span><span class="token punctuation" >;</span></code></pre><p data-reactid="512"><!-- react-text: 513 -->Finally, we need some initial data to make the application run together. Edit <!-- /react-text --><code data-reactid="514"><!-- react-text: 515 -->index.js<!-- /react-text --></code><!-- react-text: 516 -->:<!-- /react-text --></p><pre class="language-diff" data-reactid="517"><code data-reactid="518"><span class="token deleted" >- const app = dva();</span>
<span class="token inserted" >+ const app = dva({</span>
<span class="token inserted" >+ initialState: {</span>
<span class="token inserted" >+ products: [</span>
<span class="token inserted" >+ { name: 'dva', id: 1 },</span>
<span class="token inserted" >+ { name: 'antd', id: 2 },</span>
<span class="token inserted" >+ ],</span>
<span class="token inserted" >+ },</span>
<span class="token inserted" >+ });</span></code></pre><p data-reactid="519"><!-- react-text: 520 -->Refresh your browser, you should see the following result:<!-- /react-text --></p><p style="text-align:center;" data-reactid="521"><img src="https://zos.alipayobjects.com/rmsportal/GQJeDDeUCSTRMMg.gif" data-reactid="522"/></p><h2 id="Build" data-reactid="523"><span data-reactid="524"><!-- react-text: 525 -->Build<!-- /react-text --></span><a href="#Build" class="anchor" data-reactid="526">#</a></h2><p data-reactid="527"><!-- react-text: 528 -->Now that we&#x27;ve written our application and verified that it works in development, it&#x27;s time to get it ready to deploy to our users. To do so, run the following command:<!-- /react-text --></p><pre class="language-bash" data-reactid="529"><code data-reactid="530">$ npm run build</code></pre><p data-reactid="531"><!-- react-text: 532 -->After a few seconds, the output should be as follows:<!-- /react-text --></p><pre class="language-bash" data-reactid="533"><code data-reactid="534">Child
Time: 14008ms
Asset Size Chunks Chunk Names
index.html 255 bytes <span class="token punctuation" >[</span>emitted<span class="token punctuation" >]</span>
common.js 1.18 kB 0 <span class="token punctuation" >[</span>emitted<span class="token punctuation" >]</span> common
index.js 504 kB 1, 0 <span class="token punctuation" >[</span>emitted<span class="token punctuation" >]</span> index
index.css 127 kB 1, 0 <span class="token punctuation" >[</span>emitted<span class="token punctuation" >]</span> index</code></pre><p data-reactid="535"><!-- react-text: 536 -->The <!-- /react-text --><code data-reactid="537"><!-- react-text: 538 -->build<!-- /react-text --></code><!-- react-text: 539 --> command packages up all of the assets that make up your application —— JavaScript, templates, CSS, web fonts, images, and more. Then you can find these files in the <!-- /react-text --><code data-reactid="540"><!-- react-text: 541 -->dist /<!-- /react-text --></code><!-- react-text: 542 --> directory.<!-- /react-text --></p><h2 id="What&#x27;s-Next" data-reactid="543"><span data-reactid="544"><!-- react-text: 545 -->What&#x27;s Next<!-- /react-text --></span><a href="#What&#x27;s-Next" class="anchor" data-reactid="546">#</a></h2><p data-reactid="547"><!-- react-text: 548 -->We have completed a simple application, but you may still have lots of questions, such as:<!-- /react-text --></p><ul data-reactid="549"><li data-reactid="550"><p data-reactid="551"><!-- react-text: 552 -->How to dealing with async logic<!-- /react-text --></p></li><li data-reactid="553"><p data-reactid="554"><!-- react-text: 555 -->How to load initial data elegantly<!-- /react-text --></p></li><li data-reactid="556"><p data-reactid="557"><!-- react-text: 558 -->How to handle onError globally and locally<!-- /react-text --></p></li><li data-reactid="559"><p data-reactid="560"><!-- react-text: 561 -->How to load Routes and Models on demand<!-- /react-text --></p></li><li data-reactid="562"><p data-reactid="563"><!-- react-text: 564 -->How to implement HMR<!-- /react-text --></p></li><li data-reactid="565"><p data-reactid="566"><!-- react-text: 567 -->How to mock data<!-- /react-text --></p></li><li data-reactid="568"><p data-reactid="569"><!-- react-text: 570 -->and so on...<!-- /react-text --></p></li></ul><p data-reactid="571"><!-- react-text: 572 -->You can:<!-- /react-text --></p><ul data-reactid="573"><li data-reactid="574"><p data-reactid="575"><!-- react-text: 576 -->Visit <!-- /react-text --><a href="https://github.com/dvajs/dva" data-reactid="577"><!-- react-text: 578 -->dva official website<!-- /react-text --></a><!-- react-text: 579 -->.<!-- /react-text --></p></li><li data-reactid="580"><p data-reactid="581"><!-- react-text: 582 -->View all the <!-- /react-text --><a href="https://github.com/dvajs/dva#api" data-reactid="583"><!-- react-text: 584 -->API<!-- /react-text --></a><!-- react-text: 585 -->.<!-- /react-text --></p></li><li data-reactid="586"><p data-reactid="587"><!-- react-text: 588 -->View <!-- /react-text --><a href="https://github.com/dvajs/dva-docs/blob/master/v1/zh-cn/tutorial/01-%E6%A6%82%E8%A6%81.md" data-reactid="589"><!-- react-text: 590 -->tutorial<!-- /react-text --></a><!-- react-text: 591 -->, complete a medium application step by step.<!-- /react-text --></p></li><li data-reactid="592"><p data-reactid="593"><!-- react-text: 594 -->View examples, such as <!-- /react-text --><a href="https://github.com/dvajs/dva-hackernews" data-reactid="595"><!-- react-text: 596 -->dva version of hackernews<!-- /react-text --></a><!-- react-text: 597 -->.<!-- /react-text --></p></li></ul></section></article></div></div><div class="ant-row" data-reactid="598"><div class="ant-col-xs-24 ant-col-sm-24 ant-col-md-18 ant-col-md-offset-6 ant-col-lg-20 ant-col-lg-offset-4" data-reactid="599"><section class="prev-next-nav" data-reactid="600"><a class="prev-page" href="docs/react/install" data-reactid="601">Installation</a><a class="next-page" href="docs/react/customize-theme" data-reactid="602">Customize theme</a></section></div></div></div><footer id="footer" data-reactid="603"><ul data-reactid="604"><li data-reactid="605"><h2 data-reactid="606">GitHub</h2><div data-reactid="607"><a target="_blank " href="https://github.com/ant-design/ant-design" data-reactid="608"><span data-reactid="609">Repository</span></a></div><div data-reactid="610"><a target="_blank" rel="noopener noreferrer" href="https://github.com/dvajs/dva" data-reactid="611">dva</a><!-- react-text: 612 --> - <!-- /react-text --><span data-reactid="613">Framework</span></div><div data-reactid="614"><a target="_blank" rel="noopener noreferrer" href="https://github.com/dvajs/dva-cli" data-reactid="615">dva-cli</a><!-- react-text: 616 --> -<!-- /react-text --><span data-reactid="617">Scaffold</span></div><div data-reactid="618"><a target="_blank" rel="noopener noreferrer" href="http://ant-tool.github.io" data-reactid="619">ant-tool</a><!-- react-text: 620 --> - <!-- /react-text --><span data-reactid="621">Developer Tools</span></div></li><li data-reactid="622"><h2 data-reactid="623"><span data-reactid="624">Links</span></h2><div data-reactid="625"><a href="http://mobile.ant.design" data-reactid="626">Ant Design Mobile</a><span data-reactid="627"> - </span><span data-reactid="628">Mobile</span></div><div data-reactid="629"><a href="https://g2.alipay.com/" data-reactid="630">G2</a><span data-reactid="631"> - </span><span data-reactid="632">Data Visualization</span></div><div data-reactid="633"><a href="https://antv.alipay.com/" data-reactid="634">AntV</a><span data-reactid="635"> - </span><span data-reactid="636">Data Visualization Specification</span></div><div data-reactid="637"><a href="http://motion.ant.design" data-reactid="638">Ant Motion</a><span data-reactid="639"> - </span><span data-reactid="640">Motion</span></div><div data-reactid="641"><a href="http://library.ant.design/" data-reactid="642">AntD Library</a><span data-reactid="643"> - </span><span data-reactid="644">Axure library of Ant Design</span></div><div data-reactid="645"><a href="http://ux.ant.design" data-reactid="646">Ant UX</a><span data-reactid="647"> - </span><span data-reactid="648">Sitemap Template</span></div></li><li data-reactid="649"><h2 data-reactid="650"><span data-reactid="651">Community</span></h2><div data-reactid="652"><a rel="noopener noreferrer" href="/changelog" data-reactid="653"><span data-reactid="654">Change Log</span></a></div><div data-reactid="655"><a target="_blank" rel="noopener noreferrer" href="https://github.com/ant-design/ant-design/issues" data-reactid="656"><span data-reactid="657">Feedback</span></a></div><div data-reactid="658"><a target="_blank" rel="noopener noreferrer" href="https://gitter.im/ant-design/ant-design" data-reactid="659"><span data-reactid="660">Chat Room</span></a></div><div data-reactid="661"><a target="_blank" rel="noopener noreferrer" href="https://github.com/ant-design/ant-design/issues/new" data-reactid="662"><span data-reactid="663">Bug Report</span></a></div></li><li data-reactid="664"><div data-reactid="665"><!-- react-text: 666 -->©2016 <!-- /react-text --><span data-reactid="667">Created by Ant UED</span></div><div data-reactid="668"><!-- react-text: 669 -->Powered by <!-- /react-text --><a href="https://github.com/benjycui/bisheng" data-reactid="670">BiSheng</a></div><div style="margin-top:10px;" data-reactid="671"><span data-reactid="672">Version: </span><div class="ant-select-sm ant-select ant-select-enabled" data-reactid="673"><div class="ant-select-selection
ant-select-selection--single" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false" tabindex="0" data-reactid="674"><div class="ant-select-selection__rendered" data-reactid="675"><div class="ant-select-selection-selected-value" title="1.11.4" style="display:block;opacity:1;" data-reactid="676">1.11.4</div></div><span class="ant-select-arrow" style="user-select:none;-webkit-user-select:none;" unselectable="unselectable" data-reactid="677"><b data-reactid="678"></b></span></div></div></div></li></ul></footer></div>
</div>
<script>
// Enable Google Analytics
if (!location.port) {
/* eslint-disable */
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-72788897-1', 'auto');
ga('send', 'pageview');
/* eslint-enable */
}
</script>
<script src="/common.js"></script>
<script src="/index.js"></script>
</body>
</html>