fix: 🐛 release x6-react-components 1.1.3

This commit is contained in:
vector
2021-03-24 13:39:42 +08:00
parent e404b05602
commit 1ca9a1ba2c

View File

@ -3,16 +3,16 @@ import classNames from 'classnames'
import RcDropdown from 'rc-dropdown'
export class Dropdown extends React.Component<Dropdown.Props, any> {
getTransitionName() {
const { placement = '', transitionName } = this.props
if (transitionName !== undefined) {
return transitionName
}
if (placement.indexOf('top') >= 0) {
return 'slide-down'
}
return 'slide-up'
}
// getTransitionName() {
// const { placement = '', transitionName } = this.props
// if (transitionName !== undefined) {
// return transitionName
// }
// if (placement.indexOf('top') >= 0) {
// return 'slide-down'
// }
// return 'slide-up'
// }
render() {
const { children, trigger, disabled } = this.props