2019-02-06 21:11:12 +08:00

23 lines
383 B
JavaScript

import { use } from '../utils';
const [sfc, bem] = use('cell-group');
export default sfc({
functional: true,
props: {
border: {
type: Boolean,
default: true
}
},
render(h, context) {
return (
<div class={[bem(), { 'van-hairline--top-bottom': context.props.border }]} {...context.data}>
{context.children}
</div>
);
}
});