Skip to content

Commit 4ed602a

Browse files
committed
upgrade rc-align to 3.0.0
1 parent d80acc3 commit 4ed602a

File tree

5 files changed

+5
-28
lines changed

5 files changed

+5
-28
lines changed

HISTORY.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# History
22
----
33

4+
## 8.1.0 / 2020-05-08
5+
6+
- Upgrade rc-animate to `3.x`
7+
48
## 7.5.0 / 2019-10-14
59

610
- Use CSSMotion instead of Animate

examples/antd.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-console, react/require-default-props, no-param-reassign */
22

33
import React from 'react';
4-
import PropTypes from 'prop-types';
54
import Menu, { SubMenu, Item as MenuItem, Divider } from '../src';
65
import '../assets/index.less';
76

@@ -148,15 +147,6 @@ class CommonMenu extends React.Component {
148147
}
149148
}
150149

151-
CommonMenu.propTypes = {
152-
mode: PropTypes.string,
153-
openAnimation: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
154-
motion: PropTypes.object,
155-
triggerSubMenuAction: PropTypes.string,
156-
defaultOpenKeys: PropTypes.arrayOf(PropTypes.string),
157-
updateChildrenAndOverflowedIndicator: PropTypes.bool,
158-
};
159-
160150
function Demo() {
161151
const horizontalMenu = (
162152
<CommonMenu

examples/rtl-antd.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/* eslint-disable no-console, react/require-default-props, no-param-reassign */
22

33
import React from 'react';
4-
import PropTypes from 'prop-types';
54
import Menu, { SubMenu, Item as MenuItem, Divider } from '../src';
65
import '../assets/index.less';
76

@@ -149,15 +148,6 @@ class CommonMenu extends React.Component {
149148
}
150149
}
151150

152-
CommonMenu.propTypes = {
153-
mode: PropTypes.string,
154-
openAnimation: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
155-
motion: PropTypes.object,
156-
triggerSubMenuAction: PropTypes.string,
157-
defaultOpenKeys: PropTypes.arrayOf(PropTypes.string),
158-
updateChildrenAndOverflowedIndicator: PropTypes.bool,
159-
};
160-
161151
function Demo() {
162152
const horizontalMenu = (
163153
<CommonMenu

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"dependencies": {
4848
"classnames": "2.x",
4949
"mini-store": "^3.0.1",
50-
"rc-animate": "^2.10.1",
50+
"rc-animate": "^3.0.0",
5151
"rc-trigger": "^4.0.0",
5252
"rc-util": "^4.13.0",
5353
"resize-observer-polyfill": "^1.5.0",
@@ -60,15 +60,13 @@
6060
"@types/react-dom": "^16.8.4",
6161
"@types/warning": "^3.0.0",
6262
"cross-env": "^7.0.0",
63-
"css-animation": "^2.0.4",
6463
"enzyme": "^3.3.0",
6564
"enzyme-adapter-react-16": "^1.0.2",
6665
"enzyme-to-json": "^3.4.0",
6766
"eslint": "^6.8.0",
6867
"father": "^2.22.0",
6968
"less": "^3.10.3",
7069
"np": "^6.0.0",
71-
"prop-types": "^15.5.6",
7270
"react": "^16.9.0",
7371
"react-dom": "^16.9.0",
7472
"typescript": "^3.5.2"

tests/SubMenu.spec.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/* eslint-disable no-undef */
22
import React from 'react';
3-
import PropTypes from 'prop-types';
43
import { mount } from 'enzyme';
54
import KeyCode from 'rc-util/lib/KeyCode';
65
import Menu, { MenuItem, SubMenu } from '../src';
@@ -540,10 +539,6 @@ describe('SubMenu', () => {
540539
</Menu>
541540
);
542541

543-
App.propTypes = {
544-
show: PropTypes.bool,
545-
};
546-
547542
const wrapper = mount(<App show />);
548543

549544
wrapper.setProps({ show: false });

0 commit comments

Comments
 (0)