diff options
Diffstat (limited to 'index.html')
-rw-r--r-- | index.html | 62 |
1 files changed, 35 insertions, 27 deletions
@@ -7,7 +7,7 @@ | |||
7 | <meta charset="utf-8"/> | 7 | <meta charset="utf-8"/> |
8 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 8 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
9 | <link href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css" rel="stylesheet"/> | 9 | <link href="//cdnjs.cloudflare.com/ajax/libs/normalize/3.0.3/normalize.css" rel="stylesheet"/> |
10 | <title>rc-time-picker@0.7.2 - React TimePicker</title> | 10 | <title>rc-time-picker@1.0.0 - React TimePicker</title> |
11 | <style> | 11 | <style> |
12 | @font-face { | 12 | @font-face { |
13 | font-family: octicons-anchor; | 13 | font-family: octicons-anchor; |
@@ -737,7 +737,7 @@ | |||
737 | 737 | ||
738 | <body> | 738 | <body> |
739 | <div class="header"> | 739 | <div class="header"> |
740 | <h1>rc-time-picker@0.7.2</h1> | 740 | <h1>rc-time-picker@1.0.0</h1> |
741 | </div> | 741 | </div> |
742 | <div class="examples"> | 742 | <div class="examples"> |
743 | <h3>EXAMPLES</h3> | 743 | <h3>EXAMPLES</h3> |
@@ -753,9 +753,16 @@ | |||
753 | <h3>README.md</h3> | 753 | <h3>README.md</h3> |
754 | <div class="markdown-body"> | 754 | <div class="markdown-body"> |
755 | <h1>TimePicker<a id="user-content-timepicker" name="timepicker" class="anchor" aria-hidden="true" href="#timepicker"><span class="octicon octicon-link"></span></a></h1><p>React TimePicker</p> | 755 | <h1>TimePicker<a id="user-content-timepicker" name="timepicker" class="anchor" aria-hidden="true" href="#timepicker"><span class="octicon octicon-link"></span></a></h1><p>React TimePicker</p> |
756 | <h2>install<a id="user-content-install" name="install" class="anchor" aria-hidden="true" href="#install"><span class="octicon octicon-link"></span></a></h2><div class="highlight"><pre><code language="undefined">npm install rc-time-picker</code></pre></div><h2>Usage<a id="user-content-usage" name="usage" class="anchor" aria-hidden="true" href="#usage"><span class="octicon octicon-link"></span></a></h2><div class="highlight"><pre><code language="js"><span class="hljs-keyword">import</span> TimePicker <span class="hljs-keyword">from</span> <span class="hljs-string">'rc-time-picker'</span>; | 756 | <p><a href="http://npmjs.org/package/rc-time-picker" title="null"><img src="http://img.shields.io/npm/v/rc-time-picker.svg?style=flat-square" alt="NPM version"></a> |
757 | <span class="hljs-keyword">import</span> React <span class="hljs-keyword">from</span> <span class="hljs-string">'react'</span>; | 757 | <a href="https://travis-ci.org/react-component/time-picker" title="null"><img src="https://img.shields.io/travis/react-component/time-picker.svg?style=flat-square" alt="build status"></a> |
758 | <span class="hljs-keyword">import</span> ReactDOM <span class="hljs-keyword">from</span> <span class="hljs-string">'react-dom'</span>; | 758 | <a href="https://coveralls.io/r/react-component/time-picker?branch=master" title="null"><img src="https://img.shields.io/coveralls/react-component/time-picker.svg?style=flat-square" alt="Test coverage"></a> |
759 | <a href="https://gemnasium.com/react-component/time-picker" title="null"><img src="http://img.shields.io/gemnasium/react-component/time-picker.svg?style=flat-square" alt="gemnasium deps"></a> | ||
760 | <a href="http://nodejs.org/download/" title="null"><img src="https://img.shields.io/badge/node.js-%3E=_4.0.0-green.svg?style=flat-square" alt="node version"></a> | ||
761 | <a href="https://npmjs.org/package/rc-time-picker" title="null"><img src="https://img.shields.io/npm/dm/rc-time-picker.svg?style=flat-square" alt="npm download"></a></p> | ||
762 | <h2>example<a id="user-content-example" name="example" class="anchor" aria-hidden="true" href="#example"><span class="octicon octicon-link"></span></a></h2><p><a href="http://react-component.github.io/time-picker/" title="null">http://react-component.github.io/time-picker/</a></p> | ||
763 | <h2>install<a id="user-content-install" name="install" class="anchor" aria-hidden="true" href="#install"><span class="octicon octicon-link"></span></a></h2><div class="highlight"><pre><code language="undefined">npm install rc-time-picker</code></pre></div><h2>Usage<a id="user-content-usage" name="usage" class="anchor" aria-hidden="true" href="#usage"><span class="octicon octicon-link"></span></a></h2><div class="highlight"><pre><code language="js">import TimePicker from <span class="hljs-string">'rc-time-picker'</span>; | ||
764 | import React from <span class="hljs-string">'react'</span>; | ||
765 | import ReactDOM from <span class="hljs-string">'react-dom'</span>; | ||
759 | ReactDOM.render(<span class="xml"><span class="hljs-tag"><<span class="hljs-title">TimePicker</span> /></span>, container);</span></code></pre></div><h2>API<a id="user-content-api" name="api" class="anchor" aria-hidden="true" href="#api"><span class="octicon octicon-link"></span></a></h2><h3>TimePicker<a id="user-content-timepicker" name="timepicker" class="anchor" aria-hidden="true" href="#timepicker"><span class="octicon octicon-link"></span></a></h3><table> | 766 | ReactDOM.render(<span class="xml"><span class="hljs-tag"><<span class="hljs-title">TimePicker</span> /></span>, container);</span></code></pre></div><h2>API<a id="user-content-api" name="api" class="anchor" aria-hidden="true" href="#api"><span class="octicon octicon-link"></span></a></h2><h3>TimePicker<a id="user-content-timepicker" name="timepicker" class="anchor" aria-hidden="true" href="#timepicker"><span class="octicon octicon-link"></span></a></h3><table> |
760 | <thead> | 767 | <thead> |
761 | <tr> | 768 | <tr> |
@@ -803,32 +810,51 @@ ReactDOM.render(<span class="xml"><span class="hljs-tag"><<span class="hljs-t | |||
803 | <td>current value</td> | 810 | <td>current value</td> |
804 | </tr> | 811 | </tr> |
805 | <tr> | 812 | <tr> |
813 | <td>gregorianCalendarLocale</td> | ||
814 | <td>GregorianCalendar locale object</td> | ||
815 | <td>null</td> | ||
816 | <td>if value and defaultValue not set, you should set this to your locale</td> | ||
817 | </tr> | ||
818 | <tr> | ||
806 | <td>placeholder</td> | 819 | <td>placeholder</td> |
807 | <td>String</td> | 820 | <td>String</td> |
808 | <td>''</td> | 821 | <td>''</td> |
809 | <td>time input's placeholder</td> | 822 | <td>time input's placeholder</td> |
810 | </tr> | 823 | </tr> |
811 | <tr> | 824 | <tr> |
825 | <td>showHour</td> | ||
826 | <td>Boolean</td> | ||
827 | <td>whether show hour</td> | ||
828 | <td></td> | ||
829 | </tr> | ||
830 | <tr> | ||
831 | <td>showSecond</td> | ||
832 | <td>Boolean</td> | ||
833 | <td>whether show second</td> | ||
834 | <td></td> | ||
835 | </tr> | ||
836 | <tr> | ||
812 | <td>formatter</td> | 837 | <td>formatter</td> |
838 | <td>String</td> | ||
813 | <td>GregorianCalendarFormatter</td> | 839 | <td>GregorianCalendarFormatter</td> |
814 | <td>HH:mm:ss or HH:mm or mm:ss</td> | 840 | <td></td> |
815 | <td></td> | 841 | <td></td> |
816 | </tr> | 842 | </tr> |
817 | <tr> | 843 | <tr> |
818 | <td>hourOptions</td> | 844 | <td>hourOptions</td> |
819 | <td>Array<String></td> | 845 | <td>Array<Number></td> |
820 | <td>hour options</td> | 846 | <td>hour options</td> |
821 | <td></td> | 847 | <td></td> |
822 | </tr> | 848 | </tr> |
823 | <tr> | 849 | <tr> |
824 | <td>minuteOptions</td> | 850 | <td>minuteOptions</td> |
825 | <td>Array<String></td> | 851 | <td>Array<Number></td> |
826 | <td>minute options</td> | 852 | <td>minute options</td> |
827 | <td></td> | 853 | <td></td> |
828 | </tr> | 854 | </tr> |
829 | <tr> | 855 | <tr> |
830 | <td>secondOptions</td> | 856 | <td>secondOptions</td> |
831 | <td>Array<String></td> | 857 | <td>Array<Number></td> |
832 | <td>second options</td> | 858 | <td>second options</td> |
833 | <td></td> | 859 | <td></td> |
834 | </tr> | 860 | </tr> |
@@ -839,24 +865,6 @@ ReactDOM.render(<span class="xml"><span class="hljs-tag"><<span class="hljs-t | |||
839 | <td>called when select a different value</td> | 865 | <td>called when select a different value</td> |
840 | </tr> | 866 | </tr> |
841 | <tr> | 867 | <tr> |
842 | <td>onOpen</td> | ||
843 | <td>Function</td> | ||
844 | <td>null</td> | ||
845 | <td>called when open picker</td> | ||
846 | </tr> | ||
847 | <tr> | ||
848 | <td>onClose</td> | ||
849 | <td>Function</td> | ||
850 | <td>null</td> | ||
851 | <td>called when close picker</td> | ||
852 | </tr> | ||
853 | <tr> | ||
854 | <td>inputClassName</td> | ||
855 | <td>String</td> | ||
856 | <td>''</td> | ||
857 | <td></td> | ||
858 | </tr> | ||
859 | <tr> | ||
860 | <td>placement</td> | 868 | <td>placement</td> |
861 | <td>String</td> | 869 | <td>String</td> |
862 | <td>bottomLeft</td> | 870 | <td>bottomLeft</td> |