import { use } from '../utils'; import Cell from '../cell'; import CellGroup from '../cell-group'; import { inherit } from '../utils/functional'; const [sfc, bem] = use('panel'); function Panel(h, props, slots, ctx) { const Content = () => [ slots.header ? ( slots.header() ) : ( ),
{slots.default && slots.default()}
, slots.footer && (
{slots.footer()}
) ]; return ( ); } Panel.props = { icon: String, desc: String, title: String, status: String }; export default sfc(Panel);