]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
update props order
authorafc163 <afc163@gmail.com>
Fri, 11 Nov 2016 04:19:38 +0000 (12:19 +0800)
committerafc163 <afc163@gmail.com>
Fri, 11 Nov 2016 04:19:38 +0000 (12:19 +0800)
src/TimePicker.jsx

index 358b59631ea1678fd18027b88ecf1d982171357b..99d1008740b7e5ba895e1ee40ce1e871e199f30d 100644 (file)
@@ -29,9 +29,9 @@ const Picker = React.createClass({
     placeholder: PropTypes.string,
     format: PropTypes.string,
     showHour: PropTypes.bool,
+    showSecond: PropTypes.bool,
     style: PropTypes.object,
     className: PropTypes.string,
-    showSecond: PropTypes.bool,
     disabledHours: PropTypes.func,
     disabledMinutes: PropTypes.func,
     disabledSeconds: PropTypes.func,
@@ -151,8 +151,8 @@ const Picker = React.createClass({
         onClear={this.onPanelClear}
         defaultOpenValue={defaultOpenValue}
         showHour={showHour}
-        onEsc={this.onEsc}
         showSecond={showSecond}
+        onEsc={this.onEsc}
         allowEmpty={allowEmpty}
         format={this.getFormat()}
         placeholder={placeholder}