import classNames from 'classnames' import PropTypes, { InferProps } from 'prop-types' import React from 'react' import { View } from '@tarojs/components' import { AtListProps } from '../../../types/list' export default class AtList extends React.Component { public static defaultProps: AtListProps public static propTypes: InferProps public render(): JSX.Element { const rootClass = classNames( 'at-list', { 'at-list--no-border': !this.props.hasBorder }, this.props.className ) return {this.props.children} } } AtList.defaultProps = { hasBorder: true } AtList.propTypes = { hasBorder: PropTypes.bool }