resize-container
v1.0.2
Published
一个拖拽调整左右宽度的组件
Downloads
10
Readme
可拖拽调整左右宽度的react容器组件
INSTALL
$ npm install resize-container --save-dev
USE
import ResizeContainer from 'resize-container';
export default () => (
<ResizeContainer
leftPart={<div>left component</div>}
rightPart={<div>right component</div>}
/>
)
API
| 属性 | 类型 | 默认值 | | ------ | ------ | ------ | | leftPart | ReactNode | <div></div> | | rightPart | ReactNode | <div></div> | | leftMinWidth | number | 0 | | rightMinWidth | number | 0 | | height | number | 600 | | width | number | 800 |