Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

写得不错。包装成vue然后发布到Npm应该会更多星 #1

Open
luoyang125024608 opened this issue Aug 20, 2019 · 5 comments
Open

Comments

@luoyang125024608
Copy link

写得不错。包装成vue然后发布到Npm应该会更多星

@fengmumu1
Copy link

为什么是vue,我要react

@newbieYoung
Copy link
Owner

@fengmumu1 react 已经有了

@bromiao
Copy link

bromiao commented Apr 16, 2020

建议将react,vue分开发布到npm上,现在通过npm install simple-crop安装是把整个工程下到node_modules里,还要进入到node_modules内的simple-crop模块安装依赖,另外如果在裁剪回调
cropCallback中加入裁剪的canvas转化成base64的图片就更完美了@newbieYoung

@newbieYoung
Copy link
Owner

@bromiao react和vue版本都是基于原生js版本的实现方式,vue和react代码量并不多;base64等其它格式需要使用者自己转换;依赖问题,我本周末试一下。

@newbieYoung
Copy link
Owner

newbieYoung commented Apr 22, 2020

@bromiao 因为 simple-crop 即支持 vue 也支持 react 还准备支持其它的,因此 vue 和 react 的库并没有加入到 dependencies 中,当你 npm install simple-crop 之后,如果是 vue 开发则需要自己安装 vue 相关类库(在你自己项目的根目录,而不是 node_modules 内的 simple-crop 中安装 ),如果是 react 则需要自己安装 react 相关类库。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants