UNPKG

cjd-parkball

Version:

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

32 lines (29 loc) 551 B
--- title: tab的基本用法 title_en: normal usage for tab component category: 2 --- 展示了一个tab组件的基本用法 ```jsx import { CrumbTab, Button} from 'parkball' const category = [ { title: 'Category 1', content: (fn)=>{ return <div><Button onClick={(et)=>{ fn(et) }}>Show Details</Button></div> }, key: '1', closable: false, }, ] const crumbs = ['class1', 'class2'] ReactDOM.render( <CrumbTab category={category} crumbs={crumbs} />, mountNode ) ```