diff options
Diffstat (limited to 'examples/format.html')
-rw-r--r-- | examples/format.html | 33 |
1 files changed, 12 insertions, 21 deletions
diff --git a/examples/format.html b/examples/format.html index 56486cc..eb791fa 100644 --- a/examples/format.html +++ b/examples/format.html | |||
@@ -2,7 +2,7 @@ | |||
2 | <html> | 2 | <html> |
3 | 3 | ||
4 | <head> | 4 | <head> |
5 | <title>format.js - example - rc-time-picker@2.3.3</title> | 5 | <title>format.js - example - rc-time-picker@2.3.4</title> |
6 | <meta name="viewport" | 6 | <meta name="viewport" |
7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> | 7 | content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"> |
8 | <meta charset="utf-8"/> | 8 | <meta charset="utf-8"/> |
@@ -263,7 +263,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
263 | <body> | 263 | <body> |
264 | <div class="container"> | 264 | <div class="container"> |
265 | <div class="header"> | 265 | <div class="header"> |
266 | <h1>rc-time-picker@2.3.3</h1> | 266 | <h1>rc-time-picker@2.3.4</h1> |
267 | 267 | ||
268 | <p>React TimePicker</p> | 268 | <p>React TimePicker</p> |
269 | </div> | 269 | </div> |
@@ -275,26 +275,17 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic | |||
275 | <span class="hljs-keyword">import</span> moment <span class="hljs-keyword">from</span> <span class="hljs-string">'moment'</span>; | 275 | <span class="hljs-keyword">import</span> moment <span class="hljs-keyword">from</span> <span class="hljs-string">'moment'</span>; |
276 | <span class="hljs-keyword">import</span> TimePicker <span class="hljs-keyword">from</span> <span class="hljs-string">'rc-time-picker'</span>; | 276 | <span class="hljs-keyword">import</span> TimePicker <span class="hljs-keyword">from</span> <span class="hljs-string">'rc-time-picker'</span>; |
277 | 277 | ||
278 | <span class="hljs-keyword">const</span> App = React.createClass({ | ||
279 | render() { | ||
280 | <span class="hljs-keyword">return</span> ( | ||
281 | <span class="xml"><span class="hljs-tag"><<span class="hljs-title">div</span>></span> | ||
282 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showHour</span>=<span class="hljs-value">{false}</span> /></span> | ||
283 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showMinute</span>=<span class="hljs-value">{false}</span> /></span> | ||
284 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showSecond</span>=<span class="hljs-value">{false}</span> /></span> | ||
285 | |||
286 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showMinute</span>=<span class="hljs-value">{false}</span> <span class="hljs-attribute">showSecond</span>=<span class="hljs-value">{false}</span> /></span> | ||
287 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showHour</span>=<span class="hljs-value">{false}</span> <span class="hljs-attribute">showSecond</span>=<span class="hljs-value">{false}</span>/></span> | ||
288 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showHour</span>=<span class="hljs-value">{false}</span> <span class="hljs-attribute">showMinute</span>=<span class="hljs-value">{false}</span> /></span> | ||
289 | <span class="hljs-tag"></<span class="hljs-title">div</span>></span> | ||
290 | )</span>; | ||
291 | }, | ||
292 | }); | ||
293 | |||
294 | ReactDom.render( | 278 | ReactDom.render( |
295 | <span class="xml"><span class="hljs-tag"><<span class="hljs-title">App</span> /></span>, | 279 | <span class="xml"><span class="hljs-tag"><<span class="hljs-title">div</span>></span> |
296 | document.getElementById('__react-content') | 280 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showHour</span>=<span class="hljs-value">{false}</span> /></span> |
297 | ); | 281 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showMinute</span>=<span class="hljs-value">{false}</span> /></span> |
282 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showSecond</span>=<span class="hljs-value">{false}</span> /></span> | ||
283 | |||
284 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showMinute</span>=<span class="hljs-value">{false}</span> <span class="hljs-attribute">showSecond</span>=<span class="hljs-value">{false}</span> /></span> | ||
285 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showHour</span>=<span class="hljs-value">{false}</span> <span class="hljs-attribute">showSecond</span>=<span class="hljs-value">{false}</span>/></span> | ||
286 | <span class="hljs-tag"><<span class="hljs-title">TimePicker</span> <span class="hljs-attribute">defaultValue</span>=<span class="hljs-value">{moment()}</span> <span class="hljs-attribute">showHour</span>=<span class="hljs-value">{false}</span> <span class="hljs-attribute">showMinute</span>=<span class="hljs-value">{false}</span> /></span> | ||
287 | <span class="hljs-tag"></<span class="hljs-title">div</span>></span> | ||
288 | , document.getElementById('__react-content')); | ||
298 | </span></code></pre></div> | 289 | </span></code></pre></div> |
299 | </div> | 290 | </div> |
300 | <a href="http://github.com/react-component/time-picker"> | 291 | <a href="http://github.com/react-component/time-picker"> |