cjd-parkball
Version:
> 中后台业务组件库,中后台就像公园,进入需要买门票(登录),所以以 Parkball(公园球) 命名,公园内必定捕获!作为一个组件库,提供使用方法文档,方便开发者的调用
24 lines (20 loc) • 425 B
JavaScript
import React from 'react'
import { Resizable } from 'react-resizable'
const ColumnTh = (props) => {
const {
onResize, title, width, resize, ...restProps
} = props
return (
resize ?
<Resizable
axis="x"
width={width || 100}
height={0}
onResize={onResize}
>
<th {...restProps} />
</Resizable>
: <th {...restProps} />
)
}
export default ColumnTh