:straight_ruler: 一个可调整大小的 React 组件。 目录截图 Live Demo Storybook CodeSandbox Install Usage Props Instance API updateSize(size: { width: number | string, height: number | string }): void 测试相关截图 Live Demo Storybook Storybook CodeSandbox CodeSandbox CodeSandbox(TypeScript) CodeSandbox(With hooks ) 使用 defaultSize 安装 $ npm install --save re-resizable 使用示例 默认大小的样本 尺寸示例 如果您使用尺寸道具,请自行管理状态。 { this.setState({ width: this.state.width + d.width, height: this.state.height + d.height, }); }} > 样本大小 Props defaultS
2021-06-09 13:03:56 2.47MB Miscellaneous
1