]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
refactor: simplify export
authorparanoidjk <hust2012jiangkai@gmail.com>
Sat, 27 May 2017 06:13:52 +0000 (14:13 +0800)
committerparanoidjk <hust2012jiangkai@gmail.com>
Sat, 27 May 2017 06:13:52 +0000 (14:13 +0800)
index.js
npm-debug.log.1427937311 [new file with mode: 0644]
package.json
src/TimePicker.jsx
src/index.js

index 45709196c451baa05b5e1680b10771474e5a39cb..9f594e65a7ac3640d6a00001dd39e282ff16cf59 100644 (file)
--- a/index.js
+++ b/index.js
@@ -1,2 +1 @@
-import TimePanel from './src/';
-export default TimePanel;
+export { default } from './src/';
diff --git a/npm-debug.log.1427937311 b/npm-debug.log.1427937311
new file mode 100644 (file)
index 0000000..e69de29
index 3e9f9443f387a55f8d4f524d9b950565e953935d..4bc945693509ca5a8254a84e9b1208faad9ecbda 100644 (file)
@@ -1,6 +1,6 @@
 {
   "name": "rc-time-picker",
-  "version": "2.4.0",
+  "version": "2.4.1",
   "description": "React TimePicker",
   "keywords": [
     "react",
index 91745c629c177359bb7849872a99c2c07d72db8b..2c6a1f16ea69f5825fd7b7f30963ea308a3528ca 100644 (file)
@@ -12,7 +12,7 @@ function refFn(field, component) {
   this[field] = component;
 }
 
-class Picker extends Component {
+export default class Picker extends Component {
   static propTypes = {
     prefixCls: PropTypes.string,
     clearText: PropTypes.string,
@@ -267,5 +267,3 @@ class Picker extends Component {
     );
   }
 }
-
-export default Picker;
index f72be4fcea11bc06f3f751c8136940745912ac1b..02f417667396a62e5afa04263b4a247f7b4e8db6 100644 (file)
@@ -1,2 +1 @@
-import TimePicker from './TimePicker';
-export default TimePicker;
+export { default } from './TimePicker';