import classNames from 'classnames' import PropTypes, { InferProps } from 'prop-types' import React from 'react' import { View } from '@tarojs/components' import { AtTabsPaneProps } from '../../../types/tabs-pane' export default class AtTabsPane extends React.Component { public static defaultProps: AtTabsPaneProps public static propTypes: InferProps public render(): JSX.Element { const { customStyle, className, tabDirection, index, current } = this.props return ( {this.props.children} ) } } AtTabsPane.defaultProps = { customStyle: '', className: '', tabDirection: 'horizontal', index: 0, current: 0 } AtTabsPane.propTypes = { customStyle: PropTypes.oneOfType([PropTypes.object, PropTypes.string]), className: PropTypes.oneOfType([PropTypes.array, PropTypes.string]), tabDirection: PropTypes.oneOf(['horizontal', 'vertical']), index: PropTypes.number, current: PropTypes.number }