diff --git a/src/cell-group/index.js b/src/cell-group/index.js index bdf702908..72800f262 100644 --- a/src/cell-group/index.js +++ b/src/cell-group/index.js @@ -1,10 +1,11 @@ -// Utils import { createNamespace } from '../utils'; import { BORDER_TOP_BOTTOM } from '../utils/constant'; const [createComponent, bem] = createNamespace('cell-group'); export default createComponent({ + inheritAttrs: false, + props: { title: String, border: { @@ -13,19 +14,21 @@ export default createComponent({ }, }, - setup(props, { slots }) { - return function () { + setup(props, { slots, attrs }) { + return () => { + const { title, border } = props; + const Group = ( -