UNPKG

cjd-parkball

Version:

> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用

52 lines (46 loc) 720 B
--- order: 0 title: 基本 title_en: Basic --- 最简单的用法。 The simplest usage. ````jsx import GroupInfo from '../index'; class Demo extends React.Component { static defaultProps = { dataSrc: [ [ { title: 'Eric00', detail: 'male', }, { title: 'Eric01', detail: 'male', }, ], [ { title: 'Eric10', detail: 'male', }, { title: 'Eric11', detail: 'male', }, ], ], } render() { return ( <div> <GroupInfo { ...this.props } /> </div> ); } } ReactDOM.render(<Demo />, mountNode); ````