mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
24 lines
397 B
JavaScript
24 lines
397 B
JavaScript
import { use } from '../utils';
|
|
|
|
const [sfc, bem] = use('cell-group');
|
|
|
|
function CellGroup(h, props, slots, ctx) {
|
|
return (
|
|
<div
|
|
class={[bem(), { 'van-hairline--top-bottom': props.border }]}
|
|
{...ctx.data}
|
|
>
|
|
{slots.default && slots.default()}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
CellGroup.props = {
|
|
border: {
|
|
type: Boolean,
|
|
default: true
|
|
}
|
|
};
|
|
|
|
export default sfc(CellGroup);
|