aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/value-and-defaultValue.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/value-and-defaultValue.html')
-rw-r--r--examples/value-and-defaultValue.html24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/value-and-defaultValue.html b/examples/value-and-defaultValue.html
index ab793e9..af53d2c 100644
--- a/examples/value-and-defaultValue.html
+++ b/examples/value-and-defaultValue.html
@@ -2,7 +2,7 @@
2<html> 2<html>
3 3
4<head> 4<head>
5 <title>value-and-defaultValue.js - example - rc-time-picker@1.0.0-alpha5</title> 5 <title>value-and-defaultValue.js - example - rc-time-picker@1.0.0</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"/>
@@ -257,7 +257,7 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
257<body> 257<body>
258<div class="container"> 258<div class="container">
259 <div class="header"> 259 <div class="header">
260 <h1>rc-time-picker@1.0.0-alpha5</h1> 260 <h1>rc-time-picker@1.0.0</h1>
261 261
262 <p>React TimePicker</p> 262 <p>React TimePicker</p>
263 </div> 263 </div>
@@ -266,17 +266,17 @@ Monokai Sublime style. Derived from Monokai by noformnocontent http://nn.mit-lic
266 <script src="value-and-defaultValue.js?nowrap"></script> 266 <script src="value-and-defaultValue.js?nowrap"></script>
267 <div class="highlight"><pre><code language="js"><span class="hljs-comment">/* eslint no-console:0 */</span> 267 <div class="highlight"><pre><code language="js"><span class="hljs-comment">/* eslint no-console:0 */</span>
268 268
269<span class="hljs-keyword">import</span> <span class="hljs-string">'rc-time-picker/assets/index.css'</span>; 269import <span class="hljs-string">'rc-time-picker/assets/index.css'</span>;
270 270
271<span class="hljs-keyword">import</span> React <span class="hljs-keyword">from</span> <span class="hljs-string">'react'</span>; 271import React from <span class="hljs-string">'react'</span>;
272<span class="hljs-keyword">import</span> ReactDom <span class="hljs-keyword">from</span> <span class="hljs-string">'react-dom'</span>; 272import ReactDom from <span class="hljs-string">'react-dom'</span>;
273 273
274<span class="hljs-keyword">import</span> GregorianCalendar <span class="hljs-keyword">from</span> <span class="hljs-string">'gregorian-calendar'</span>; 274import GregorianCalendar from <span class="hljs-string">'gregorian-calendar'</span>;
275<span class="hljs-keyword">import</span> DateTimeFormat <span class="hljs-keyword">from</span> <span class="hljs-string">'gregorian-calendar-format'</span>; 275import DateTimeFormat from <span class="hljs-string">'gregorian-calendar-format'</span>;
276<span class="hljs-keyword">import</span> zhCn <span class="hljs-keyword">from</span> <span class="hljs-string">'gregorian-calendar/lib/locale/zh_CN'</span>; 276import zhCn from <span class="hljs-string">'gregorian-calendar/lib/locale/zh_CN'</span>;
277 277
278<span class="hljs-keyword">import</span> TimePicker <span class="hljs-keyword">from</span> <span class="hljs-string">'rc-time-picker'</span>; 278import TimePicker from <span class="hljs-string">'rc-time-picker'</span>;
279<span class="hljs-keyword">import</span> TimePickerLocale <span class="hljs-keyword">from</span> <span class="hljs-string">'rc-time-picker/lib/locale/zh_CN'</span>; 279import TimePickerLocale from <span class="hljs-string">'rc-time-picker/lib/locale/zh_CN'</span>;
280 280
281<span class="hljs-keyword">const</span> formatter = <span class="hljs-keyword">new</span> DateTimeFormat(<span class="hljs-string">'HH:mm:ss'</span>); 281<span class="hljs-keyword">const</span> formatter = <span class="hljs-keyword">new</span> DateTimeFormat(<span class="hljs-string">'HH:mm:ss'</span>);
282 282
@@ -302,12 +302,12 @@ now.setTime(<span class="hljs-built_in">Date</span>.now());
302 <span class="hljs-attribute">value</span>=<span class="hljs-value">{this.state.value}</span> 302 <span class="hljs-attribute">value</span>=<span class="hljs-value">{this.state.value}</span>
303 <span class="hljs-attribute">onChange</span>=<span class="hljs-value">{this.handleValueChange}</span>/&gt;</span> 303 <span class="hljs-attribute">onChange</span>=<span class="hljs-value">{this.handleValueChange}</span>/&gt;</span>
304 <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span> 304 <span class="hljs-tag">&lt;/<span class="hljs-title">div</span>&gt;</span>
305 )</span>; 305 );
306 }, 306 },
307}); 307});
308 308
309ReactDom.render( 309ReactDom.render(
310 <span class="xml"><span class="hljs-tag">&lt;<span class="hljs-title">App</span> /&gt;</span>, 310 <span class="hljs-tag">&lt;<span class="hljs-title">App</span> /&gt;</span>,
311 document.getElementById('__react-content') 311 document.getElementById('__react-content')
312); 312);
313</span></code></pre></div> 313</span></code></pre></div>