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

fix lint error

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