// Utils import { createNamespace } from '../utils'; import { BORDER_TOP_BOTTOM } from '../utils/constant'; const [createComponent, bem] = createNamespace('cell-group'); export default createComponent({ props: { title: String, border: { type: Boolean, default: true, }, }, setup(props, { slots }) { return function () { const Group = (
{slots.default?.()}
); if (props.title || slots.title) { return ( <>
{slots.title ? slots.title() : props.title}
{Group} ); } return Group; }; }, });