Commit 5ef5a854 authored by 陈帅's avatar 陈帅

change lib to es

parent e4a6ba45
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.avatarHolder { .avatarHolder {
margin-bottom: 24px; margin-bottom: 24px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.filterCardList { .filterCardList {
margin-bottom: -24px; margin-bottom: -24px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.listContent { .listContent {
.description { .description {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.articleList { .articleList {
:global { :global {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.avatarList { .avatarList {
display: inline-block; display: inline-block;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.coverCardList { .coverCardList {
margin-bottom: -24px; margin-bottom: -24px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.baseView { .baseView {
display: flex; display: flex;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.row { .row {
.item { .item {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.area_code { .area_code {
width: 30%; width: 30%;
......
import React, { Component, Fragment } from 'react'; import React, { Component, Fragment } from 'react';
import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale'; import { formatMessage, FormattedMessage } from 'umi-plugin-react/locale';
import { Form, Input, Upload, Select, Button, message } from 'antd'; import { Form, Input, Upload, Select, Button, message } from 'antd';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { connect } from 'dva'; import { connect } from 'dva';
import styles from './BaseView.less'; import styles from './BaseView.less';
import GeographicView from './GeographicView'; import GeographicView from './GeographicView';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.main { .main {
display: flex; display: flex;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.chartCard { .chartCard {
position: relative; position: relative;
......
import React from 'react'; import React from 'react';
import { Card } from 'antd'; import { Card } from 'antd';
import classNames from 'classnames'; import classNames from 'classnames';
import { CardProps } from 'antd/lib/card'; import { CardProps } from 'antd/es/card';
import styles from './index.less'; import styles from './index.less';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.field { .field {
margin: 0; margin: 0;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.miniProgress { .miniProgress {
position: relative; position: relative;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.pie { .pie {
position: relative; position: relative;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.timelineChart { .timelineChart {
background: @component-background; background: @component-background;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.waterWave { .waterWave {
position: relative; position: relative;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.numberInfo { .numberInfo {
.suffix { .suffix {
......
...@@ -4,7 +4,7 @@ import Charts from './Charts'; ...@@ -4,7 +4,7 @@ import Charts from './Charts';
import { FormattedMessage } from 'umi-plugin-react/locale'; import { FormattedMessage } from 'umi-plugin-react/locale';
import styles from '../style.less'; import styles from '../style.less';
import Yuan from '../utils/Yuan'; import Yuan from '../utils/Yuan';
import { RadioChangeEvent } from 'antd/lib/radio'; import { RadioChangeEvent } from 'antd/es/radio';
import { ISalesData } from '../data'; import { ISalesData } from '../data';
const { Pie } = Charts; const { Pie } = Charts;
......
...@@ -3,7 +3,7 @@ import { Row, Col, Card, Tabs, DatePicker } from 'antd'; ...@@ -3,7 +3,7 @@ import { Row, Col, Card, Tabs, DatePicker } from 'antd';
import { FormattedMessage, formatMessage } from 'umi-plugin-react/locale'; import { FormattedMessage, formatMessage } from 'umi-plugin-react/locale';
import numeral from 'numeral'; import numeral from 'numeral';
import Charts from './Charts'; import Charts from './Charts';
import { RangePickerValue } from 'antd/lib/date-picker/interface'; import { RangePickerValue } from 'antd/es/date-picker/interface';
import { ISalesData } from '../data'; import { ISalesData } from '../data';
import styles from '../style.less'; import styles from '../style.less';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.trendItem { .trendItem {
display: inline-block; display: inline-block;
......
import React, { Component, Suspense } from 'react'; import React, { Component, Suspense } from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import { Row, Col, Icon, Menu, Dropdown } from 'antd'; import { Row, Col, Icon, Menu, Dropdown } from 'antd';
import { RangePickerValue } from 'antd/lib/date-picker/interface'; import { RangePickerValue } from 'antd/es/date-picker/interface';
import { getTimeDistance } from './utils/utils'; import { getTimeDistance } from './utils/utils';
import styles from './style.less'; import styles from './style.less';
import PageLoading from './components/PageLoading'; import PageLoading from './components/PageLoading';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { IAnalysisData } from './data.d'; import { IAnalysisData } from './data.d';
import { RadioChangeEvent } from 'antd/lib/radio'; import { RadioChangeEvent } from 'antd/es/radio';
import { GridContent } from '@ant-design/pro-layout'; import { GridContent } from '@ant-design/pro-layout';
const IntroduceRow = React.lazy(() => import('./components/IntroduceRow')); const IntroduceRow = React.lazy(() => import('./components/IntroduceRow'));
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.iconGroup { .iconGroup {
i { i {
......
import moment from 'moment'; import moment from 'moment';
import { RangePickerValue } from 'antd/lib/date-picker/interface'; import { RangePickerValue } from 'antd/es/date-picker/interface';
export function fixedZero(val: number) { export function fixedZero(val: number) {
return val * 1 < 10 ? `0${val}` : val; return val * 1 < 10 ? `0${val}` : val;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.pie { .pie {
position: relative; position: relative;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.waterWave { .waterWave {
position: relative; position: relative;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.mapChart { .mapChart {
height: 452px; height: 452px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.linkGroup { .linkGroup {
padding: 20px 0 8px 24px; padding: 20px 0 8px 24px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.radar { .radar {
.legend { .legend {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.textOverflow() { .textOverflow() {
overflow: hidden; overflow: hidden;
......
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { Card, Form, Input, Select } from 'antd'; import { Card, Form, Input, Select } from 'antd';
import { withPropsAPI } from 'gg-editor'; import { withPropsAPI } from 'gg-editor';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
const upperFirst = (str: string) => { const upperFirst = (str: string) => {
return str.toLowerCase().replace(/( |^)[a-z]/g, (l: string) => l.toUpperCase()); return str.toLowerCase().replace(/( |^)[a-z]/g, (l: string) => l.toUpperCase());
......
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { Card, Form, Input, Select } from 'antd'; import { Card, Form, Input, Select } from 'antd';
import { withPropsAPI } from 'gg-editor'; import { withPropsAPI } from 'gg-editor';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
const upperFirst = (str: string) => { const upperFirst = (str: string) => {
return str.toLowerCase().replace(/( |^)[a-z]/g, (l: string) => l.toUpperCase()); return str.toLowerCase().replace(/( |^)[a-z]/g, (l: string) => l.toUpperCase());
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.children-content { .children-content {
margin: 24px 24px 0; margin: 24px 24px 0;
......
...@@ -2,7 +2,7 @@ import React from 'react'; ...@@ -2,7 +2,7 @@ import React from 'react';
import { RouteContext, GridContent } from '@ant-design/pro-layout'; import { RouteContext, GridContent } from '@ant-design/pro-layout';
import { PageHeader, Tabs, Typography } from 'antd'; import { PageHeader, Tabs, Typography } from 'antd';
import styles from './index.less'; import styles from './index.less';
import { TabsProps } from 'antd/lib/tabs'; import { TabsProps } from 'antd/es/tabs';
interface IPageHeaderTabConfig { interface IPageHeaderTabConfig {
tabList?: Array<{ tabList?: Array<{
key: string; key: string;
......
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import { Card, Form, Input, Select } from 'antd'; import { Card, Form, Input, Select } from 'antd';
import { withPropsAPI } from 'gg-editor'; import { withPropsAPI } from 'gg-editor';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
const upperFirst = (str: string) => { const upperFirst = (str: string) => {
return str.toLowerCase().replace(/( |^)[a-z]/g, (l: string) => l.toUpperCase()); return str.toLowerCase().replace(/( |^)[a-z]/g, (l: string) => l.toUpperCase());
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.children-content { .children-content {
margin: 24px 24px 0; margin: 24px 24px 0;
......
...@@ -2,7 +2,7 @@ import React from 'react'; ...@@ -2,7 +2,7 @@ import React from 'react';
import { RouteContext, GridContent } from '@ant-design/pro-layout'; import { RouteContext, GridContent } from '@ant-design/pro-layout';
import { PageHeader, Tabs, Typography } from 'antd'; import { PageHeader, Tabs, Typography } from 'antd';
import styles from './index.less'; import styles from './index.less';
import { TabsProps } from 'antd/lib/tabs'; import { TabsProps } from 'antd/es/tabs';
interface IPageHeaderTabConfig { interface IPageHeaderTabConfig {
tabList?: Array<{ tabList?: Array<{
key: string; key: string;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.exception { .exception {
display: flex; display: flex;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.exception { .exception {
display: flex; display: flex;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.exception { .exception {
display: flex; display: flex;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.toolbar { .toolbar {
position: fixed; position: fixed;
......
...@@ -15,7 +15,7 @@ import { ...@@ -15,7 +15,7 @@ import {
import { connect } from 'dva'; import { connect } from 'dva';
import TableForm from './components/TableForm'; import TableForm from './components/TableForm';
import styles from './style.less'; import styles from './style.less';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import FooterToolbar from './components/FooterToolbar'; import FooterToolbar from './components/FooterToolbar';
import { PageHeaderWrapper } from '@ant-design/pro-layout'; import { PageHeaderWrapper } from '@ant-design/pro-layout';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.card { .card {
margin-bottom: 24px; margin-bottom: 24px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.content { .content {
margin: 24px 24px 0; margin: 24px 24px 0;
......
...@@ -15,7 +15,7 @@ import { ...@@ -15,7 +15,7 @@ import {
} from 'antd'; } from 'antd';
import { PageHeaderWrapper } from '@ant-design/pro-layout'; import { PageHeaderWrapper } from '@ant-design/pro-layout';
import styles from './style.less'; import styles from './style.less';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
const FormItem = Form.Item; const FormItem = Form.Item;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.card { .card {
margin-bottom: 24px; margin-bottom: 24px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.children-content { .children-content {
margin: 24px 24px 0; margin: 24px 24px 0;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.result { .result {
width: 72%; width: 72%;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.stepForm { .stepForm {
max-width: 500px; max-width: 500px;
......
...@@ -2,7 +2,7 @@ import React, { Fragment } from 'react'; ...@@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import { Form, Input, Button, Select, Divider } from 'antd'; import { Form, Input, Button, Select, Divider } from 'antd';
import styles from './index.less'; import styles from './index.less';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { IStateType } from '../../model'; import { IStateType } from '../../model';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.stepForm { .stepForm {
max-width: 500px; max-width: 500px;
......
...@@ -2,7 +2,7 @@ import React from 'react'; ...@@ -2,7 +2,7 @@ import React from 'react';
import { connect } from 'dva'; import { connect } from 'dva';
import { Form, Input, Button, Alert, Divider, Statistic } from 'antd'; import { Form, Input, Button, Alert, Divider, Statistic } from 'antd';
import styles from './index.less'; import styles from './index.less';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { IStateType } from '../../model'; import { IStateType } from '../../model';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.stepForm { .stepForm {
max-width: 500px; max-width: 500px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.card { .card {
margin-bottom: 24px; margin-bottom: 24px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.result { .result {
width: 72%; width: 72%;
......
...@@ -20,7 +20,7 @@ import { ...@@ -20,7 +20,7 @@ import {
DatePicker, DatePicker,
Select, Select,
} from 'antd'; } from 'antd';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { IStateType } from './model'; import { IStateType } from './model';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { BasicListItemDataType } from './data'; import { BasicListItemDataType } from './data';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
@import './utils/utils.less'; @import './utils/utils.less';
.standardList { .standardList {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.children-content { .children-content {
margin: 24px 24px 0; margin: 24px 24px 0;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
@import './utils/utils.less'; @import './utils/utils.less';
.cardList { .cardList {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.children-content { .children-content {
margin: 24px 24px 0; margin: 24px 24px 0;
......
...@@ -3,7 +3,7 @@ import { RouteContext } from '@ant-design/pro-layout'; ...@@ -3,7 +3,7 @@ import { RouteContext } from '@ant-design/pro-layout';
import { PageHeader, Tabs, Typography } from 'antd'; import { PageHeader, Tabs, Typography } from 'antd';
import styles from './index.less'; import styles from './index.less';
import { GridContent } from '@ant-design/pro-layout'; import { GridContent } from '@ant-design/pro-layout';
import { TabsProps } from 'antd/lib/tabs'; import { TabsProps } from 'antd/es/tabs';
interface IPageHeaderTabConfig { interface IPageHeaderTabConfig {
tabList?: Array<{ tabList?: Array<{
key: string; key: string;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.children-content { .children-content {
margin: 24px 24px 0; margin: 24px 24px 0;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.standardFormRow { .standardFormRow {
display: flex; display: flex;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.tagSelect { .tagSelect {
position: relative; position: relative;
......
...@@ -7,7 +7,7 @@ import StandardFormRow from './components/StandardFormRow'; ...@@ -7,7 +7,7 @@ import StandardFormRow from './components/StandardFormRow';
import styles from './style.less'; import styles from './style.less';
import { IStateType } from './model'; import { IStateType } from './model';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { ListItemDataType } from './data'; import { ListItemDataType } from './data';
const { Option } = Select; const { Option } = Select;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.filterCardList { .filterCardList {
margin-bottom: -24px; margin-bottom: -24px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.listContent { .listContent {
.description { .description {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.standardFormRow { .standardFormRow {
display: flex; display: flex;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.tagSelect { .tagSelect {
position: relative; position: relative;
......
...@@ -7,7 +7,7 @@ import StandardFormRow from './components/StandardFormRow'; ...@@ -7,7 +7,7 @@ import StandardFormRow from './components/StandardFormRow';
import ArticleListContent from './components/ArticleListContent'; import ArticleListContent from './components/ArticleListContent';
import styles from './style.less'; import styles from './style.less';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { ListItemDataType } from './data'; import { ListItemDataType } from './data';
import { IStateType } from './model'; import { IStateType } from './model';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
a.listItemMetaTitle { a.listItemMetaTitle {
color: @heading-color; color: @heading-color;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.avatarList { .avatarList {
display: inline-block; display: inline-block;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.standardFormRow { .standardFormRow {
display: flex; display: flex;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.tagSelect { .tagSelect {
position: relative; position: relative;
......
...@@ -8,7 +8,7 @@ import AvatarList from './components/AvatarList'; ...@@ -8,7 +8,7 @@ import AvatarList from './components/AvatarList';
import styles from './style.less'; import styles from './style.less';
import { IStateType } from './model'; import { IStateType } from './model';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { ListItemDataType } from './data'; import { ListItemDataType } from './data';
const { Option } = Select; const { Option } = Select;
const FormItem = Form.Item; const FormItem = Form.Item;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
@import './utils/utils.less'; @import './utils/utils.less';
.coverCardList { .coverCardList {
......
import React from 'react'; import React from 'react';
import { Input, Modal, Form } from 'antd'; import { Input, Modal, Form } from 'antd';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
const FormItem = Form.Item; const FormItem = Form.Item;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.standardTable { .standardTable {
:global { :global {
......
import React, { Component, Fragment } from 'react'; import React, { Component, Fragment } from 'react';
import { Table, Alert } from 'antd'; import { Table, Alert } from 'antd';
import { TableProps, ColumnProps, SorterResult } from 'antd/lib/table'; import { TableProps, ColumnProps, SorterResult } from 'antd/es/table';
import styles from './index.less'; import styles from './index.less';
import { TableListItem } from '../../data'; import { TableListItem } from '../../data';
......
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Input, Select, Button, DatePicker, Form, Modal, Steps, Radio } from 'antd'; import { Input, Select, Button, DatePicker, Form, Modal, Steps, Radio } from 'antd';
import { TableListItem } from '../data'; import { TableListItem } from '../data';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
export type IFormValsType = { export type IFormValsType = {
target?: string; target?: string;
......
...@@ -18,8 +18,8 @@ import { ...@@ -18,8 +18,8 @@ import {
Badge, Badge,
Divider, Divider,
} from 'antd'; } from 'antd';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { SorterResult } from 'antd/lib/table'; import { SorterResult } from 'antd/es/table';
import StandardTable, { StandardTableColumnProps } from './components/StandardTable'; import StandardTable, { StandardTableColumnProps } from './components/StandardTable';
import { TableListItem, TableListParams, TableListPagination } from './data'; import { TableListItem, TableListParams, TableListPagination } from './data';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
@import './utils/utils.less'; @import './utils/utils.less';
.tableList { .tableList {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.descriptionList { .descriptionList {
// offset the padding-bottom of last row // offset the padding-bottom of last row
......
...@@ -20,7 +20,7 @@ import { ...@@ -20,7 +20,7 @@ import {
Typography, Typography,
Tabs, Tabs,
} from 'antd'; } from 'antd';
import { TabsProps } from 'antd/lib/tabs'; import { TabsProps } from 'antd/es/tabs';
import classNames from 'classnames'; import classNames from 'classnames';
import DescriptionList from './DescriptionList'; import DescriptionList from './DescriptionList';
import styles from './style.less'; import styles from './style.less';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.headerList { .headerList {
margin-bottom: 4px; margin-bottom: 4px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.descriptionList { .descriptionList {
// offset the padding-bottom of last row // offset the padding-bottom of last row
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.content { .content {
margin: 24px 24px 0; margin: 24px 24px 0;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.title { .title {
margin-bottom: 16px; margin-bottom: 16px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.result { .result {
width: 72%; width: 72%;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.error_icon { .error_icon {
color: @highlight-color; color: @highlight-color;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.result { .result {
width: 72%; width: 72%;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.title { .title {
position: relative; position: relative;
......
...@@ -4,7 +4,7 @@ import omit from 'omit.js'; ...@@ -4,7 +4,7 @@ import omit from 'omit.js';
import styles from './index.less'; import styles from './index.less';
import ItemMap from './map'; import ItemMap from './map';
import LoginContext, { ILoginContext } from './LoginContext'; import LoginContext, { ILoginContext } from './LoginContext';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
......
...@@ -2,7 +2,7 @@ import React from 'react'; ...@@ -2,7 +2,7 @@ import React from 'react';
import classNames from 'classnames'; import classNames from 'classnames';
import { Button, Form } from 'antd'; import { Button, Form } from 'antd';
import styles from './index.less'; import styles from './index.less';
import { ButtonProps } from 'antd/lib/button'; import { ButtonProps } from 'antd/es/button';
const FormItem = Form.Item; const FormItem = Form.Item;
interface LoginSubmitProps extends ButtonProps { interface LoginSubmitProps extends ButtonProps {
......
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Tabs } from 'antd'; import { Tabs } from 'antd';
import { TabPaneProps } from 'antd/lib/tabs'; import { TabPaneProps } from 'antd/es/tabs';
import LoginContext, { ILoginContext } from './LoginContext'; import LoginContext, { ILoginContext } from './LoginContext';
const { TabPane } = Tabs; const { TabPane } = Tabs;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.login { .login {
:global { :global {
......
...@@ -5,7 +5,7 @@ import LoginItem, { LoginItemType, LoginItemProps } from './LoginItem'; ...@@ -5,7 +5,7 @@ import LoginItem, { LoginItemType, LoginItemProps } from './LoginItem';
import LoginTab from './LoginTab'; import LoginTab from './LoginTab';
import styles from './index.less'; import styles from './index.less';
import LoginContext, { ILoginContext } from './LoginContext'; import LoginContext, { ILoginContext } from './LoginContext';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import LoginSubmit from './LoginSubmit'; import LoginSubmit from './LoginSubmit';
export interface LoginProps { export interface LoginProps {
......
...@@ -7,8 +7,8 @@ import LoginComponents from './components/Login'; ...@@ -7,8 +7,8 @@ import LoginComponents from './components/Login';
import styles from './style.less'; import styles from './style.less';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { IStateType } from './model'; import { IStateType } from './model';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import { CheckboxChangeEvent } from 'antd/lib/checkbox'; import { CheckboxChangeEvent } from 'antd/es/checkbox';
const { Tab, UserName, Password, Mobile, Captcha, Submit } = LoginComponents; const { Tab, UserName, Password, Mobile, Captcha, Submit } = LoginComponents;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.main { .main {
width: 368px; width: 368px;
......
...@@ -6,7 +6,7 @@ import { Form, Input, message, Button, Select, Row, Col, Popover, Progress } fro ...@@ -6,7 +6,7 @@ import { Form, Input, message, Button, Select, Row, Col, Popover, Progress } fro
import styles from './style.less'; import styles from './style.less';
import { Dispatch } from 'redux'; import { Dispatch } from 'redux';
import { IStateType } from './model'; import { IStateType } from './model';
import { FormComponentProps } from 'antd/lib/form'; import { FormComponentProps } from 'antd/es/form';
import router from 'umi/router'; import router from 'umi/router';
const FormItem = Form.Item; const FormItem = Form.Item;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.main { .main {
width: 368px; width: 368px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.result { .result {
width: 72%; width: 72%;
......
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