Cropperjs 作为 React 组件
Cropperjs 作为 React 组件
通过 npm 安装
npm install --save react-cropper你的项目中需要 cropper.css,它来自 cropperjs。
由于此项目依赖 cropperjs,所以在 npm 版本 3.0.0 及之后,它位于 /node_modules/React-cropper/node_modules/cropperjs/dist/cropper.css 或 node_modules/cropperjs/dist/cropper.css
…stringnull<Cropper src="http://fengyuanchen.github.io/cropper/images/picture.jpg" />stringpicturestringnullhttps://github.com/fengyuanchen/cropperjs#dragmode
https://github.com/fengyuanchen/cropperjs#scalexscalex
https://github.com/fengyuanchen/cropperjs#scalexscaley
https://github.com/fengyuanchen/cropperjs#enable
https://github.com/fengyuanchen/cropperjs#disable
https://github.com/fengyuanchen/cropperjs#zoomto
https://github.com/fengyuanchen/cropperjs#rotateto
将 docs 中的所有选项作为属性进行接受。
使用 onInitialized 中的 cropper 实例来访问 cropperjs 方法
npm run buildnpm start麻省理工学院
暂无开放 Issues,或尚未同步最近议题。