Unverified Commit ef63e38e authored by 陈帅's avatar 陈帅 Committed by GitHub

Merge pull request #4392 from ant-design/change-to-es

change lib to es
parents 3d3b5ad4 e5fd26e9
...@@ -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;
......
...@@ -3,8 +3,8 @@ import React from 'react'; ...@@ -3,8 +3,8 @@ import React from 'react';
export default () => ( export default () => (
<p style={{ textAlign: 'center' }}> <p style={{ textAlign: 'center' }}>
Want to add more pages? Please refer to{' '} Want to add more pages? Please refer to{' '}
<a href="https://umijs.org/guide/block.html" target="_blank" rel="noopener noreferrer"> <a href="https://pro.ant.design/docs/block-cn" target="_blank" rel="noopener noreferrer">
umi block use block
</a> </a>
</p> </p>
......
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