|
@ -1,6 +1,7 @@ |
|
|
import React from 'react'; |
|
|
import React from 'react'; |
|
|
import RcCollapse from 'rc-collapse'; |
|
|
import RcCollapse from 'rc-collapse'; |
|
|
import classNames from 'classnames'; |
|
|
import classNames from 'classnames'; |
|
|
|
|
|
import animation from '../_util/openAnimation'; |
|
|
|
|
|
|
|
|
export interface CollapseProps { |
|
|
export interface CollapseProps { |
|
|
activeKey?: Array<string> | string; |
|
|
activeKey?: Array<string> | string; |
|
@ -30,6 +31,7 @@ export default class Collapse extends React.Component<CollapseProps, any> { |
|
|
static defaultProps = { |
|
|
static defaultProps = { |
|
|
prefixCls: 'ant-collapse', |
|
|
prefixCls: 'ant-collapse', |
|
|
bordered: true, |
|
|
bordered: true, |
|
|
|
|
|
openAnimation: { ...animation, appear() {} }, |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
render() { |
|
|
render() { |
|
|