aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorMG12 <wuzhao.mail@gmail.com>2015-11-16 14:44:26 +0800
committerMG12 <wuzhao.mail@gmail.com>2015-11-16 14:44:26 +0800
commit78637ac02ce6a469d2021736d3cb12e98c5edbe7 (patch)
tree68de02afaa15b90be1fcc1dd191edb6f48ebb293 /examples
parent02de449a0474765a4796fa607e7e3922252f574f (diff)
downloadtime-picker-78637ac02ce6a469d2021736d3cb12e98c5edbe7.tar.gz
time-picker-78637ac02ce6a469d2021736d3cb12e98c5edbe7.tar.zst
time-picker-78637ac02ce6a469d2021736d3cb12e98c5edbe7.zip
remove toggle feature because rc-trigger included; update example and document0.2.0
Diffstat (limited to 'examples')
-rw-r--r--examples/pick-time.html1
-rw-r--r--examples/pick-time.js (renamed from examples/pick-time.jsx)17
2 files changed, 10 insertions, 8 deletions
diff --git a/examples/pick-time.html b/examples/pick-time.html
new file mode 100644
index 0000000..48cdce8
--- /dev/null
+++ b/examples/pick-time.html
@@ -0,0 +1 @@
placeholder
diff --git a/examples/pick-time.jsx b/examples/pick-time.js
index 33c5d07..8c6b826 100644
--- a/examples/pick-time.jsx
+++ b/examples/pick-time.js
@@ -1,14 +1,15 @@
1import '../component/timepicker/assets/index.less'; 1import 'rc-time-picker/assets/index.less';
2 2
3import React from 'react'; 3import React from 'react';
4import ReactDom from 'react-dom'; 4import ReactDom from 'react-dom';
5import zhCn from 'gregorian-calendar/lib/locale/zh_CN';
6import GregorianCalendar from 'gregorian-calendar';
7 5
8import TimePicker from '../component/timepicker/src/Picker'; 6import GregorianCalendar from 'gregorian-calendar';
9import TimePanel from '../component/timepicker/src/TimePanel';
10import TimepickerLocale from '../component/timepicker/src/locale/zh_CN';
11import DateTimeFormat from 'gregorian-calendar-format'; 7import DateTimeFormat from 'gregorian-calendar-format';
8import zhCn from 'gregorian-calendar/lib/locale/zh_CN';
9
10import TimePicker from 'rc-time-picker/src/TimePicker';
11import TimePanel from 'rc-time-picker/src/TimePanel';
12import TimePickerLocale from 'rc-time-picker/src/locale/zh_CN';
12 13
13const formatter = new DateTimeFormat('HH:mm:ss'); 14const formatter = new DateTimeFormat('HH:mm:ss');
14 15
@@ -18,7 +19,7 @@ now.setTime(Date.now());
18const timePanel = ( 19const timePanel = (
19 <TimePanel 20 <TimePanel
20 defaultValue={now} 21 defaultValue={now}
21 locale={TimepickerLocale} 22 locale={TimePickerLocale}
22 formatter={formatter} 23 formatter={formatter}
23 minuteOptions={[0, 30]} 24 minuteOptions={[0, 30]}
24 /> 25 />
@@ -32,5 +33,5 @@ ReactDom.render(
32 } 33 }
33 } 34 }
34 </TimePicker>, 35 </TimePicker>,
35 document.getElementById('react-content') 36 document.getElementById('__react-content')
36); 37);