Skip to content

Commit

Permalink
feat: 发布 antd v4 大版本
Browse files Browse the repository at this point in the history
  • Loading branch information
suwenxiong committed Nov 29, 2021
1 parent c1a25b0 commit f8fbde0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
6 changes: 6 additions & 0 deletions dist/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,9 @@
position: absolute;
right: 16px;
}

.ant-modal-close-x {
display: flex;
justify-content: center;
align-items: center;
}
7 changes: 6 additions & 1 deletion dist/main.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-redux": "^5.0.6",
"redux": "^4.1.2",
"underscore": "^1.8.3"
},
"devDependencies": {
Expand All @@ -37,7 +38,7 @@
"less-loader": "^4.1.0",
"style-loader": "^0.20.3",
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14",
"webpack-cli": "^4.9.1",
"ykit-config-antd": "^2"
}
}
9 changes: 4 additions & 5 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import { combineReducers, createStore, applyMiddleware } from 'redux';
import 'antd/dist/antd.css';

//import '../dist/main.css'
const jeditor = require('../package/index.js');
import '../dist/main.css'
const jeditor = require('../dist/main');
//const jeditor = require('../package/index.js');
const mock = [
{ name: '字符串', mock: '@string' },
{ name: '自然数', mock: '@natural' },
Expand Down Expand Up @@ -36,7 +35,7 @@ render(
</p>
<br />
<h3>
该工具已被用于开源接口管理平台{' '}
The tool has been used for open source api management platforms{' '}
<a target="_blank" href="https://github.com/ymfe/yapi">
YApi
</a>
Expand Down

0 comments on commit f8fbde0

Please sign in to comment.