aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorafc163 <afc163@gmail.com>2017-10-22 17:12:47 +0800
committerafc163 <afc163@gmail.com>2017-10-22 17:12:47 +0800
commit12bf7d65235ab1ed02fd2a01e9ae074ad30cc145 (patch)
tree80e14f9828439deb67824e0f72d0c89b9818ca37
parent20f1ebdcd7a9b13b5869a1f6402c7170c4dd81db (diff)
downloadtime-picker-12bf7d65235ab1ed02fd2a01e9ae074ad30cc145.tar.gz
time-picker-12bf7d65235ab1ed02fd2a01e9ae074ad30cc145.tar.zst
time-picker-12bf7d65235ab1ed02fd2a01e9ae074ad30cc145.zip
Add example and fix style
-rw-r--r--assets/index/Panel.less4
-rw-r--r--examples/step.html0
-rw-r--r--examples/step.js10
3 files changed, 14 insertions, 0 deletions
diff --git a/assets/index/Panel.less b/assets/index/Panel.less
index be7914f..9705a78 100644
--- a/assets/index/Panel.less
+++ b/assets/index/Panel.less
@@ -22,4 +22,8 @@
22 border: 1px solid #ccc; 22 border: 1px solid #ccc;
23 line-height: 1.5; 23 line-height: 1.5;
24 } 24 }
25
26 &-narrow {
27 max-width: 113px
28 }
25} 29}
diff --git a/examples/step.html b/examples/step.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/examples/step.html
diff --git a/examples/step.js b/examples/step.js
new file mode 100644
index 0000000..12fc45d
--- /dev/null
+++ b/examples/step.js
@@ -0,0 +1,10 @@
1import 'rc-time-picker/assets/index.less';
2
3import React from 'react';
4import ReactDom from 'react-dom';
5import moment from 'moment';
6import TimePicker from 'rc-time-picker';
7
8ReactDom.render(
9 <TimePicker defaultValue={moment()} showSecond={false} minuteStep={15} />
10, document.getElementById('__react-content'));