Commit a29ef6b3 authored by lijiehua's avatar lijiehua Committed by 偏右

fix lint error

parent 293e55a1
...@@ -5,7 +5,6 @@ import { connect } from 'dva'; ...@@ -5,7 +5,6 @@ import { connect } from 'dva';
import { formatWan } from '@/utils/utils'; import { formatWan } from '@/utils/utils';
import stylesApplications from '../../List/Applications.less'; import stylesApplications from '../../List/Applications.less';
export default
@connect(({ list }) => ({ @connect(({ list }) => ({
list, list,
})) }))
...@@ -85,3 +84,5 @@ class Center extends PureComponent { ...@@ -85,3 +84,5 @@ class Center extends PureComponent {
); );
} }
} }
export default Center;
...@@ -5,7 +5,6 @@ import { connect } from 'dva'; ...@@ -5,7 +5,6 @@ import { connect } from 'dva';
import stylesArticles from '../../List/Articles.less'; import stylesArticles from '../../List/Articles.less';
import styles from './Articles.less'; import styles from './Articles.less';
export default
@connect(({ list }) => ({ @connect(({ list }) => ({
list, list,
})) }))
...@@ -68,3 +67,5 @@ class Center extends PureComponent { ...@@ -68,3 +67,5 @@ class Center extends PureComponent {
); );
} }
} }
export default Center;
...@@ -5,7 +5,6 @@ import { connect } from 'dva'; ...@@ -5,7 +5,6 @@ import { connect } from 'dva';
import AvatarList from '@/components/AvatarList'; import AvatarList from '@/components/AvatarList';
import stylesProjects from '../../List/Projects.less'; import stylesProjects from '../../List/Projects.less';
export default
@connect(({ list }) => ({ @connect(({ list }) => ({
list, list,
})) }))
...@@ -49,3 +48,5 @@ class Center extends PureComponent { ...@@ -49,3 +48,5 @@ class Center extends PureComponent {
); );
} }
} }
export default Center;
...@@ -186,4 +186,5 @@ class BaseView extends Component { ...@@ -186,4 +186,5 @@ class BaseView extends Component {
); );
} }
} }
export default BaseView; export default BaseView;
...@@ -56,4 +56,5 @@ class BindingView extends Component { ...@@ -56,4 +56,5 @@ class BindingView extends Component {
); );
} }
} }
export default BindingView; export default BindingView;
...@@ -10,7 +10,6 @@ const nullSlectItem = { ...@@ -10,7 +10,6 @@ const nullSlectItem = {
key: '', key: '',
}; };
export default
@connect(({ geographic }) => { @connect(({ geographic }) => {
const { province, isLoading, city } = geographic; const { province, isLoading, city } = geographic;
return { return {
...@@ -125,3 +124,5 @@ class GeographicView extends PureComponent { ...@@ -125,3 +124,5 @@ class GeographicView extends PureComponent {
); );
} }
} }
export default GeographicView;
...@@ -8,7 +8,6 @@ import styles from './Info.less'; ...@@ -8,7 +8,6 @@ import styles from './Info.less';
const { Item } = Menu; const { Item } = Menu;
export default
@connect(({ user }) => ({ @connect(({ user }) => ({
currentUser: user.currentUser, currentUser: user.currentUser,
})) }))
...@@ -122,3 +121,5 @@ class Info extends Component { ...@@ -122,3 +121,5 @@ class Info extends Component {
); );
} }
} }
export default Info;
...@@ -46,4 +46,5 @@ class NotificationView extends Component { ...@@ -46,4 +46,5 @@ class NotificationView extends Component {
); );
} }
} }
export default NotificationView; export default NotificationView;
...@@ -98,4 +98,5 @@ class SecurityView extends Component { ...@@ -98,4 +98,5 @@ class SecurityView extends Component {
); );
} }
} }
export default SecurityView; export default SecurityView;
...@@ -3,7 +3,6 @@ import { Button, Spin, Card } from 'antd'; ...@@ -3,7 +3,6 @@ import { Button, Spin, Card } from 'antd';
import { connect } from 'dva'; import { connect } from 'dva';
import styles from './style.less'; import styles from './style.less';
export default
@connect(state => ({ @connect(state => ({
isloading: state.error.isloading, isloading: state.error.isloading,
})) }))
...@@ -47,3 +46,5 @@ class TriggerException extends PureComponent { ...@@ -47,3 +46,5 @@ class TriggerException extends PureComponent {
); );
} }
} }
export default TriggerException;
...@@ -20,7 +20,6 @@ const { Option } = Select; ...@@ -20,7 +20,6 @@ const { Option } = Select;
const { RangePicker } = DatePicker; const { RangePicker } = DatePicker;
const { TextArea } = Input; const { TextArea } = Input;
export default
@connect(({ loading }) => ({ @connect(({ loading }) => ({
submitting: loading.effects['form/submitRegularForm'], submitting: loading.effects['form/submitRegularForm'],
})) }))
...@@ -201,3 +200,5 @@ class BasicForms extends PureComponent { ...@@ -201,3 +200,5 @@ class BasicForms extends PureComponent {
); );
} }
} }
export default BasicForms;
...@@ -15,7 +15,6 @@ const formItemLayout = { ...@@ -15,7 +15,6 @@ const formItemLayout = {
}, },
}; };
export default
@connect(({ form }) => ({ @connect(({ form }) => ({
data: form.step, data: form.step,
})) }))
...@@ -112,3 +111,5 @@ class Step1 extends React.PureComponent { ...@@ -112,3 +111,5 @@ class Step1 extends React.PureComponent {
); );
} }
} }
export default Step1;
...@@ -14,6 +14,10 @@ const formItemLayout = { ...@@ -14,6 +14,10 @@ const formItemLayout = {
}, },
}; };
@connect(({ form, loading }) => ({
submitting: loading.effects['form/submitStepForm'],
data: form.step,
}))
@Form.create() @Form.create()
class Step2 extends React.PureComponent { class Step2 extends React.PureComponent {
render() { render() {
...@@ -92,7 +96,4 @@ class Step2 extends React.PureComponent { ...@@ -92,7 +96,4 @@ class Step2 extends React.PureComponent {
} }
} }
export default connect(({ form, loading }) => ({ export default Step2;
submitting: loading.effects['form/submitStepForm'],
data: form.step,
}))(Step2);
...@@ -5,7 +5,6 @@ import router from 'umi/router'; ...@@ -5,7 +5,6 @@ import router from 'umi/router';
import Result from '@/components/Result'; import Result from '@/components/Result';
import styles from './style.less'; import styles from './style.less';
export default
@connect(({ form }) => ({ @connect(({ form }) => ({
data: form.step, data: form.step,
})) }))
...@@ -71,3 +70,5 @@ class Step3 extends React.PureComponent { ...@@ -71,3 +70,5 @@ class Step3 extends React.PureComponent {
); );
} }
} }
export default Step3;
...@@ -3,7 +3,7 @@ import { Table, Button, Input, message, Popconfirm, Divider } from 'antd'; ...@@ -3,7 +3,7 @@ import { Table, Button, Input, message, Popconfirm, Divider } from 'antd';
import isEqual from 'lodash/isEqual'; import isEqual from 'lodash/isEqual';
import styles from './style.less'; import styles from './style.less';
export default class TableForm extends PureComponent { class TableForm extends PureComponent {
index = 0; index = 0;
cacheOriginData = {}; cacheOriginData = {};
...@@ -257,3 +257,5 @@ export default class TableForm extends PureComponent { ...@@ -257,3 +257,5 @@ export default class TableForm extends PureComponent {
); );
} }
} }
export default TableForm;
...@@ -12,7 +12,6 @@ import styles from './Applications.less'; ...@@ -12,7 +12,6 @@ import styles from './Applications.less';
const { Option } = Select; const { Option } = Select;
const FormItem = Form.Item; const FormItem = Form.Item;
export default
@Form.create() @Form.create()
@connect(({ list, loading }) => ({ @connect(({ list, loading }) => ({
list, list,
...@@ -193,3 +192,5 @@ class FilterCardList extends PureComponent { ...@@ -193,3 +192,5 @@ class FilterCardList extends PureComponent {
); );
} }
} }
export default FilterCardList;
...@@ -12,7 +12,6 @@ const FormItem = Form.Item; ...@@ -12,7 +12,6 @@ const FormItem = Form.Item;
const pageSize = 5; const pageSize = 5;
export default
@Form.create() @Form.create()
@connect(({ list, loading }) => ({ @connect(({ list, loading }) => ({
list, list,
...@@ -240,3 +239,5 @@ class SearchList extends Component { ...@@ -240,3 +239,5 @@ class SearchList extends Component {
); );
} }
} }
export default SearchList;
...@@ -32,7 +32,6 @@ const RadioGroup = Radio.Group; ...@@ -32,7 +32,6 @@ const RadioGroup = Radio.Group;
const SelectOption = Select.Option; const SelectOption = Select.Option;
const { Search, TextArea } = Input; const { Search, TextArea } = Input;
export default
@connect(({ list, loading }) => ({ @connect(({ list, loading }) => ({
list, list,
loading: loading.models.list, loading: loading.models.list,
...@@ -337,3 +336,5 @@ class BasicList extends PureComponent { ...@@ -337,3 +336,5 @@ class BasicList extends PureComponent {
); );
} }
} }
export default BasicList;
...@@ -7,7 +7,6 @@ import PageHeaderWrapper from '@/components/PageHeaderWrapper'; ...@@ -7,7 +7,6 @@ import PageHeaderWrapper from '@/components/PageHeaderWrapper';
import styles from './CardList.less'; import styles from './CardList.less';
export default
@connect(({ list, loading }) => ({ @connect(({ list, loading }) => ({
list, list,
loading: loading.models.list, loading: loading.models.list,
...@@ -98,3 +97,5 @@ class CardList extends PureComponent { ...@@ -98,3 +97,5 @@ class CardList extends PureComponent {
); );
} }
} }
export default CardList;
...@@ -4,7 +4,6 @@ import { connect } from 'dva'; ...@@ -4,7 +4,6 @@ import { connect } from 'dva';
import { Input } from 'antd'; import { Input } from 'antd';
import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import PageHeaderWrapper from '@/components/PageHeaderWrapper';
export default
@connect() @connect()
class SearchList extends Component { class SearchList extends Component {
handleTabChange = key => { handleTabChange = key => {
...@@ -72,3 +71,5 @@ class SearchList extends Component { ...@@ -72,3 +71,5 @@ class SearchList extends Component {
); );
} }
} }
export default SearchList;
...@@ -14,7 +14,7 @@ const { Option } = Select; ...@@ -14,7 +14,7 @@ const { Option } = Select;
const FormItem = Form.Item; const FormItem = Form.Item;
/* eslint react/no-array-index-key: 0 */ /* eslint react/no-array-index-key: 0 */
export default
@Form.create() @Form.create()
@connect(({ list, loading }) => ({ @connect(({ list, loading }) => ({
list, list,
...@@ -163,3 +163,5 @@ class CoverCardList extends PureComponent { ...@@ -163,3 +163,5 @@ class CoverCardList extends PureComponent {
); );
} }
} }
export default CoverCardList;
...@@ -266,7 +266,6 @@ class UpdateForm extends PureComponent { ...@@ -266,7 +266,6 @@ class UpdateForm extends PureComponent {
} }
/* eslint react/no-multi-comp:0 */ /* eslint react/no-multi-comp:0 */
export default
@connect(({ rule, loading }) => ({ @connect(({ rule, loading }) => ({
rule, rule,
loading: loading.models.rule, loading: loading.models.rule,
...@@ -672,3 +671,5 @@ class TableList extends PureComponent { ...@@ -672,3 +671,5 @@ class TableList extends PureComponent {
); );
} }
} }
export default TableList;
...@@ -180,7 +180,6 @@ const columns = [ ...@@ -180,7 +180,6 @@ const columns = [
}, },
]; ];
export default
@connect(({ profile, loading }) => ({ @connect(({ profile, loading }) => ({
profile, profile,
loading: loading.effects['profile/fetchAdvanced'], loading: loading.effects['profile/fetchAdvanced'],
...@@ -350,3 +349,5 @@ class AdvancedProfile extends Component { ...@@ -350,3 +349,5 @@ class AdvancedProfile extends Component {
); );
} }
} }
export default AdvancedProfile;
...@@ -41,7 +41,6 @@ const progressColumns = [ ...@@ -41,7 +41,6 @@ const progressColumns = [
}, },
]; ];
export default
@connect(({ profile, loading }) => ({ @connect(({ profile, loading }) => ({
profile, profile,
loading: loading.effects['profile/fetchBasic'], loading: loading.effects['profile/fetchBasic'],
...@@ -182,3 +181,5 @@ class BasicProfile extends Component { ...@@ -182,3 +181,5 @@ class BasicProfile extends Component {
); );
} }
} }
export default BasicProfile;
...@@ -21,7 +21,6 @@ const passwordProgressMap = { ...@@ -21,7 +21,6 @@ const passwordProgressMap = {
poor: 'exception', poor: 'exception',
}; };
export default
@connect(({ register, loading }) => ({ @connect(({ register, loading }) => ({
register, register,
submitting: loading.effects['register/submit'], submitting: loading.effects['register/submit'],
...@@ -290,3 +289,5 @@ class Register extends Component { ...@@ -290,3 +289,5 @@ class Register extends Component {
); );
} }
} }
export default Register;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment