aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/format.html
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2017-04-14 17:22:58 +0800
committerafc163 <afc163@gmail.com>2017-04-14 17:22:58 +0800
commit5b1086548164afd65cf4a5cbb7ec1f92cd5e2b9e (patch)
treed5c8b096944cd0648b04983cdf0630ade3a94151 /examples/format.html
parentbc74c14f3cb8ea2d2b242563dbe9963b6491ade4 (diff)
downloadtime-picker-5b1086548164afd65cf4a5cbb7ec1f92cd5e2b9e.tar.gz
time-picker-5b1086548164afd65cf4a5cbb7ec1f92cd5e2b9e.tar.zst
time-picker-5b1086548164afd65cf4a5cbb7ec1f92cd5e2b9e.zip
Updates
Diffstat (limited to 'examples/format.html')
-rw-r--r--examples/format.html33
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">&lt;<span class="hljs-title">div</span>&gt;</span>
282 <span class="hljs-tag">&lt;<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> /&gt;</span>
283 <span class="hljs-tag">&lt;<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> /&gt;</span>
284 <span class="hljs-tag">&lt;<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> /&gt;</span>
285
286 <span class="hljs-tag">&lt;<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> /&gt;</span>
287 <span class="hljs-tag">&lt;<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>/&gt;</span>
288 <span class="hljs-tag">&lt;<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> /&gt;</span>
289 <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
290 )</span>;
291 },
292});
293
294ReactDom.render( 278ReactDom.render(
295 <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-title">App</span> /&gt;</span>, 279 <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-title">div</span>&gt;</span>
296 document.getElementById('__react-content') 280 <span class="hljs-tag">&lt;<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> /&gt;</span>
297); 281 <span class="hljs-tag">&lt;<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> /&gt;</span>
282 <span class="hljs-tag">&lt;<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> /&gt;</span>
283
284 <span class="hljs-tag">&lt;<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> /&gt;</span>
285 <span class="hljs-tag">&lt;<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>/&gt;</span>
286 <span class="hljs-tag">&lt;<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> /&gt;</span>
287 <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</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">