Browse Source

Favor 'export default' over 'module.exports'.

pull/1189/head
Bruce Mitchener 9 years ago
parent
commit
89561b0b3e
  1. 2
      components/affix/index.jsx
  2. 2
      components/common/openAnimation.js
  3. 4
      components/form/Form.jsx
  4. 4
      components/form/FormItem.jsx
  5. 4
      components/input/index.jsx
  6. 2
      components/locale-provider/en_US.js

2
components/affix/index.jsx

@ -123,4 +123,4 @@ const Affix = React.createClass({
});
module.exports = Affix;
export default Affix;

2
components/common/openAnimation.js

@ -42,4 +42,4 @@ const animation = {
},
};
module.exports = animation;
export default animation;

4
components/form/Form.jsx

@ -1,7 +1,7 @@
import React from 'react';
import classNames from 'classnames';
class Form extends React.Component {
export default class Form extends React.Component {
getChildContext() {
return {
form: this.props.form,
@ -40,5 +40,3 @@ Form.defaultProps = {
Form.childContextTypes = {
form: React.PropTypes.object,
};
module.exports = Form;

4
components/form/FormItem.jsx

@ -7,7 +7,7 @@ function prefixClsFn(prefixCls, ...args) {
}).join(' ');
}
class FormItem extends React.Component {
export default class FormItem extends React.Component {
_getLayoutClass(colDef) {
if (!colDef) {
return '';
@ -191,5 +191,3 @@ FormItem.defaultProps = {
FormItem.contextTypes = {
form: React.PropTypes.object,
};
module.exports = FormItem;

4
components/input/index.jsx

@ -123,5 +123,5 @@ Input.defaultProps = {
type: 'text',
};
module.exports = Input;
module.exports.Group = Group;
Input.Group = Group;
export default Input;

2
components/locale-provider/en_US.js

@ -1,4 +1,4 @@
module.exports = {
export default {
Pagination: require('rc-pagination/lib/locale/en_US'),
DatePicker: require('../date-picker/locale/en_US'),
TimePicker: require('../time-picker/locale/en_US'),

Loading…
Cancel
Save