File tree Expand file tree Collapse file tree 5 files changed +5
-28
lines changed
Expand file tree Collapse file tree 5 files changed +5
-28
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11/* eslint-disable no-console, react/require-default-props, no-param-reassign */
22
33import React from 'react' ;
4- import PropTypes from 'prop-types' ;
54import Menu , { SubMenu , Item as MenuItem , Divider } from '../src' ;
65import '../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-
160150function Demo ( ) {
161151 const horizontalMenu = (
162152 < CommonMenu
Original file line number Diff line number Diff line change 11/* eslint-disable no-console, react/require-default-props, no-param-reassign */
22
33import React from 'react' ;
4- import PropTypes from 'prop-types' ;
54import Menu , { SubMenu , Item as MenuItem , Divider } from '../src' ;
65import '../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-
161151function Demo ( ) {
162152 const horizontalMenu = (
163153 < CommonMenu
Original file line number Diff line number Diff line change 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" ,
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"
Original file line number Diff line number Diff line change 11/* eslint-disable no-undef */
22import React from 'react' ;
3- import PropTypes from 'prop-types' ;
43import { mount } from 'enzyme' ;
54import KeyCode from 'rc-util/lib/KeyCode' ;
65import 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 } ) ;
You can’t perform that action at this time.
0 commit comments