xcandy
Version:
A UI framework for taro.js
16 lines • 511 B
JavaScript
import { Component } from "@tarojs/taro-h5";
import Nerv from "nervjs";
import { View } from '@tarojs/components';
import classnames from 'classnames';
import './index.scss';
class XcList extends Component {
render() {
const { leftIndent, rightIndent } = this.props;
const classNames = classnames('xc-list', {
'xc-list--left-indent': leftIndent,
'xc-list--right-indent': rightIndent
});
return <View className={classNames}>{this.props.children}</View>;
}
}
export default XcList;