cjd-parkball
Version:
> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用
17 lines (13 loc) • 397 B
JavaScript
import React, { PureComponent } from 'react'
import LeftRight from './left-right'
// import TopBottom from './top-bottom'
export default class Page extends PureComponent {
render () {
const { type } = this.props
if (type === 'horizontal') {
return <LeftRight {...this.props} />
}
return <div>{this.props.children}</div>
// return <TopBottom {...this.props} />
}
}