]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
Add example and fix style
authorafc163 <afc163@gmail.com>
Sun, 22 Oct 2017 09:12:47 +0000 (17:12 +0800)
committerafc163 <afc163@gmail.com>
Sun, 22 Oct 2017 09:12:47 +0000 (17:12 +0800)
assets/index/Panel.less
examples/step.html [new file with mode: 0644]
examples/step.js [new file with mode: 0644]

index be7914f370d0fac3da5802c94e190d9c288616bd..9705a78388a956da2dae2fcb22f0ce549ee3edee 100644 (file)
@@ -22,4 +22,8 @@
     border: 1px solid #ccc;
     line-height: 1.5;
   }
+
+  &-narrow {
+    max-width: 113px
+  }
 }
diff --git a/examples/step.html b/examples/step.html
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/examples/step.js b/examples/step.js
new file mode 100644 (file)
index 0000000..12fc45d
--- /dev/null
@@ -0,0 +1,10 @@
+import 'rc-time-picker/assets/index.less';
+
+import React from 'react';
+import ReactDom from 'react-dom';
+import moment from 'moment';
+import TimePicker from 'rc-time-picker';
+
+ReactDom.render(
+  <TimePicker defaultValue={moment()} showSecond={false} minuteStep={15} />
+, document.getElementById('__react-content'));