Commit 4e380b33 authored by ι™ˆεΈ…'s avatar ι™ˆεΈ…

change lib to es

parent 3d3b5ad4
...@@ -64,7 +64,7 @@ export default (config: any) => { ...@@ -64,7 +64,7 @@ export default (config: any) => {
// { // {
// antDir: path.join(__dirname, '../node_modules/antd'), // antDir: path.join(__dirname, '../node_modules/antd'),
// stylesDir, // 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'], // mainLessFile: outFile, // themeVariables: ['@primary-color'],
// indexFileName: 'index.html', // indexFileName: 'index.html',
// generateOne: true, // generateOne: true,
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.globalFooter { .globalFooter {
margin: 48px 0 24px 0; margin: 48px 0 24px 0;
......
import React from 'react'; import React from 'react';
import { Avatar, Menu, Spin, Icon } from 'antd'; import { Avatar, Menu, Spin, Icon } from 'antd';
import { FormattedMessage } from 'umi-plugin-react/locale'; 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 { ConnectProps, ConnectState } from '@/models/connect';
import { CurrentUser } from '@/models/user'; import { CurrentUser } from '@/models/user';
import { connect } from 'dva'; import { connect } from 'dva';
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
@pro-header-hover-bg: rgba(0, 0, 0, 0.025); @pro-header-hover-bg: rgba(0, 0, 0, 0.025);
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.container > * { .container > * {
background-color: #fff; background-color: #fff;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.headerSearch { .headerSearch {
:global(.anticon-search) { :global(.anticon-search) {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.list { .list {
max-height: 400px; max-height: 400px;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.popover { .popover {
position: relative; position: relative;
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.menu { .menu {
:global(.anticon) { :global(.anticon) {
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
html, html,
body, body,
......
@import '~antd/lib/style/themes/default.less'; @import '~antd/es/style/themes/default.less';
.container { .container {
display: flex; display: flex;
......
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