提交 62f54f31187eba1c93e4dd6d99da3dc080d1ea88

作者 愚道
1 个父辈 c8f3aa48

feat: update file structrue

1 1 import React, { memo } from 'react';
2 2 import { Row, Col, Icon, Tooltip } from 'antd';
3 3 import { FormattedMessage } from 'umi/locale';
4   -import styles from './Analysis.less';
  4 +import styles from '../style.less';
5 5 import { Charts } from 'ant-design-pro';
6 6 import { Trend } from 'ant-design-pro';
7 7 import numeral from 'numeral';
... ...
... ... @@ -3,7 +3,7 @@ import { Card, Tabs, Row, Col } from 'antd';
3 3 import { formatMessage, FormattedMessage } from 'umi/locale';
4 4 import { Charts } from 'ant-design-pro';
5 5 import { NumberInfo } from 'ant-design-pro';
6   -import styles from './Analysis.less';
  6 +import styles from '../style.less';
7 7
8 8 const { TimelineChart, Pie } = Charts;
9 9
... ...
1 1 import React, { memo } from 'react';
2 2 import { Card, Radio } from 'antd';
3 3 import { FormattedMessage } from 'umi/locale';
4   -import styles from './Analysis.less';
  4 +import styles from '../style.less';
5 5 import { Charts } from 'ant-design-pro';
6 6 import Yuan from '@/utils/Yuan';
7 7
... ...
... ... @@ -3,7 +3,7 @@ import { Row, Col, Card, Tabs, DatePicker } from 'antd';
3 3 import { FormattedMessage, formatMessage } from 'umi/locale';
4 4 import numeral from 'numeral';
5 5 import { Charts } from 'ant-design-pro';
6   -import styles from './Analysis.less';
  6 +import styles from '../style.less';
7 7
8 8 const { Bar } = Charts;
9 9
... ...
... ... @@ -3,7 +3,7 @@ import { Row, Col, Table, Tooltip, Card, Icon } from 'antd';
3 3 import { FormattedMessage } from 'umi/locale';
4 4 import { Trend, NumberInfo, Charts } from 'ant-design-pro';
5 5 import numeral from 'numeral';
6   -import styles from './Analysis.less';
  6 +import styles from '../style.less';
7 7
8 8 const { MiniArea } = Charts;
9 9
... ...
... ... @@ -4,14 +4,14 @@ import { Row, Col, Icon, Menu, Dropdown } from 'antd';
4 4
5 5 import { getTimeDistance } from '@/utils/utils';
6 6
7   -import styles from './Analysis.less';
  7 +import styles from './style.less';
8 8 import PageLoading from '@/components/PageLoading';
9 9
10   -const IntroduceRow = React.lazy(() => import('./IntroduceRow'));
11   -const SalesCard = React.lazy(() => import('./SalesCard'));
12   -const TopSearch = React.lazy(() => import('./TopSearch'));
13   -const ProportionSales = React.lazy(() => import('./ProportionSales'));
14   -const OfflineData = React.lazy(() => import('./OfflineData'));
  10 +const IntroduceRow = React.lazy(() => import('./components/IntroduceRow'));
  11 +const SalesCard = React.lazy(() => import('./components/SalesCard'));
  12 +const TopSearch = React.lazy(() => import('./components/TopSearch'));
  13 +const ProportionSales = React.lazy(() => import('./components/ProportionSales'));
  14 +const OfflineData = React.lazy(() => import('./components/OfflineData'));
15 15
16 16 @connect(({ chart, loading }) => ({
17 17 chart,
... ...
注册登录 后发表评论