From 4e380b334f24290fb8fdc36221875c716c35ab81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 6 Jun 2019 10:48:59 +0800 Subject: [PATCH] change lib to es --- config/plugin.config.ts | 2 +- src/components/GlobalFooter/index.less | 2 +- src/components/GlobalHeader/AvatarDropdown.tsx | 2 +- src/components/GlobalHeader/index.less | 2 +- src/components/HeaderDropdown/index.less | 2 +- src/components/HeaderSearch/index.less | 2 +- src/components/NoticeIcon/NoticeList.less | 2 +- src/components/NoticeIcon/index.less | 2 +- src/components/SelectLang/index.less | 2 +- src/global.less | 2 +- src/layouts/UserLayout.less | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/config/plugin.config.ts b/config/plugin.config.ts index 99f6e7d1..ce6fd398 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 e4b3dfd4..3958eaa5 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 5b135c6c..af43b887 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 75b450bf..cbb5b3a6 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 ef0c7591..c2b98585 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 88fadecd..8f40cc7f 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 efa686cb..df69aa7f 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 1c0593ee..650ccd2d 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 9f41ade9..7cb057ed 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 dfc17df0..b4237f7e 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 ba3d3235..96998cee 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; -- GitLab