diff --git a/config/plugin.config.ts b/config/plugin.config.ts index 99f6e7d11f04e9c2b5b78533beeefedbd3882fb5..ce6fd398ad8f55c9749e17acd9c5d6fb618f5530 100644 --- a/config/plugin.config.ts +++ b/config/plugin.config.ts @@ -64,7 +64,7 @@ export default (config: any) => { // { // antDir: path.join(__dirname, '../node_modules/antd'), // stylesDir, - // varFile: path.join(__dirname, '../node_modules/antd/lib/style/themes/default.less'), + // varFile: path.join(__dirname, '../node_modules/antd/es/style/themes/default.less'), // mainLessFile: outFile, // themeVariables: ['@primary-color'], // indexFileName: 'index.html', // generateOne: true, diff --git a/src/components/GlobalFooter/index.less b/src/components/GlobalFooter/index.less index e4b3dfd473270f061cc59a92e68640aa0f7ae228..3958eaa58473dbeb63f1d59bb75d53c4ee47b5e5 100644 --- a/src/components/GlobalFooter/index.less +++ b/src/components/GlobalFooter/index.less @@ -1,4 +1,4 @@ -@import '~antd/lib/style/themes/default.less'; +@import '~antd/es/style/themes/default.less'; .globalFooter { margin: 48px 0 24px 0; diff --git a/src/components/GlobalHeader/AvatarDropdown.tsx b/src/components/GlobalHeader/AvatarDropdown.tsx index 5b135c6c3433c6bfa1f97a618ba940c6ccddc6c0..af43b887820bbf4dec49ddf63225ae6b8809453d 100644 --- a/src/components/GlobalHeader/AvatarDropdown.tsx +++ b/src/components/GlobalHeader/AvatarDropdown.tsx @@ -1,7 +1,7 @@ import React from 'react'; import { Avatar, Menu, Spin, Icon } from 'antd'; import { FormattedMessage } from 'umi-plugin-react/locale'; -import { ClickParam } from 'antd/lib/menu'; +import { ClickParam } from 'antd/es/menu'; import { ConnectProps, ConnectState } from '@/models/connect'; import { CurrentUser } from '@/models/user'; import { connect } from 'dva'; diff --git a/src/components/GlobalHeader/index.less b/src/components/GlobalHeader/index.less index 75b450bfceef3b375908baf063c8ead34ba8d418..cbb5b3a60c3fe850a1e36c05760338de08ffde2e 100644 --- a/src/components/GlobalHeader/index.less +++ b/src/components/GlobalHeader/index.less @@ -1,4 +1,4 @@ -@import '~antd/lib/style/themes/default.less'; +@import '~antd/es/style/themes/default.less'; @pro-header-hover-bg: rgba(0, 0, 0, 0.025); diff --git a/src/components/HeaderDropdown/index.less b/src/components/HeaderDropdown/index.less index ef0c75913e821d8f9f54cba72a42b872bdd70c5c..c2b98585db108abd4be9b8a2fec373e926bf26ca 100644 --- a/src/components/HeaderDropdown/index.less +++ b/src/components/HeaderDropdown/index.less @@ -1,4 +1,4 @@ -@import '~antd/lib/style/themes/default.less'; +@import '~antd/es/style/themes/default.less'; .container > * { background-color: #fff; diff --git a/src/components/HeaderSearch/index.less b/src/components/HeaderSearch/index.less index 88fadecdcc2cb137266c6a1e6ea388f07e597d84..8f40cc7f5a742d90bf1f2844f836c172089c1fad 100644 --- a/src/components/HeaderSearch/index.less +++ b/src/components/HeaderSearch/index.less @@ -1,4 +1,4 @@ -@import '~antd/lib/style/themes/default.less'; +@import '~antd/es/style/themes/default.less'; .headerSearch { :global(.anticon-search) { diff --git a/src/components/NoticeIcon/NoticeList.less b/src/components/NoticeIcon/NoticeList.less index efa686cb0e97c79726eee8e6d1631070b3e24ca7..df69aa7f7d55b0dc9999877b9495373a941e168b 100644 --- a/src/components/NoticeIcon/NoticeList.less +++ b/src/components/NoticeIcon/NoticeList.less @@ -1,4 +1,4 @@ -@import '~antd/lib/style/themes/default.less'; +@import '~antd/es/style/themes/default.less'; .list { max-height: 400px; diff --git a/src/components/NoticeIcon/index.less b/src/components/NoticeIcon/index.less index 1c0593eeac348662223a10316b502b8d78eb5fcd..650ccd2ddd94e7525004840f3acba01c718e502d 100644 --- a/src/components/NoticeIcon/index.less +++ b/src/components/NoticeIcon/index.less @@ -1,4 +1,4 @@ -@import '~antd/lib/style/themes/default.less'; +@import '~antd/es/style/themes/default.less'; .popover { position: relative; diff --git a/src/components/SelectLang/index.less b/src/components/SelectLang/index.less index 9f41ade9ac975d07cfd9a788ddbdd8f943c8e809..7cb057ed2524fd00a0802523fc72da24d3efbd55 100644 --- a/src/components/SelectLang/index.less +++ b/src/components/SelectLang/index.less @@ -1,4 +1,4 @@ -@import '~antd/lib/style/themes/default.less'; +@import '~antd/es/style/themes/default.less'; .menu { :global(.anticon) { diff --git a/src/global.less b/src/global.less index dfc17df045b60cbfe86de60fb233c634a5b21e24..b4237f7e6208bb12c2ab1cf22c47a950d031f9b3 100644 --- a/src/global.less +++ b/src/global.less @@ -1,4 +1,4 @@ -@import '~antd/lib/style/themes/default.less'; +@import '~antd/es/style/themes/default.less'; html, body, diff --git a/src/layouts/UserLayout.less b/src/layouts/UserLayout.less index ba3d3235fd2b6fd17fd1403245cd2f025a6ea29a..96998cee7034781ee85a80d88d40a19f5c1837c5 100644 --- a/src/layouts/UserLayout.less +++ b/src/layouts/UserLayout.less @@ -1,4 +1,4 @@ -@import '~antd/lib/style/themes/default.less'; +@import '~antd/es/style/themes/default.less'; .container { display: flex; diff --git a/src/pages/Welcome.tsx b/src/pages/Welcome.tsx index cad44f13486bd2b2ee8758d6d2249343039352b3..2d394094c997a1f51b10264364fade3bb1afe4b8 100644 --- a/src/pages/Welcome.tsx +++ b/src/pages/Welcome.tsx @@ -3,8 +3,8 @@ import React from 'react'; export default () => (

Want to add more pages? Please refer to{' '} - - umi block + + use block