vue-core-image-upload
Vue-Core-Image-Upload
a vue plugin for image upload and crop ( Support π± IE10+)
if you use vue.js(<=2.0), you should go here.Or select 1.x.x version.
Install
npm i vue-core-image-upload --save
Code Example (ES6)
<vue-core-image-upload
:class="['btn', 'btn-primary']"
:crop="false"
@imageuploaded="imageuploaded"
:data="data"
:max-file-size="5242880"
url="your server url" >
</vue-core-image-upload>
import VueCoreImageUpload from 'vue-core-image-upload';
new Vue({
el: '#app',
components: {
'vue-core-image-upload': VueCoreImageUpload
},
data: {
src: 'http://img1.vued.vanthink.cn/vued0a233185b6027244f9d43e653227439a.png',
},
methods: {
imageuploaded(res) {
if (res.errcode == 0) {
this.src = 'http://img1.vued.vanthink.cn/vued751d13a9cb5376b89cb6719e86f591f3.png';
}
}
}
});
NUXT
import Vue from 'vue';
import VueCoreImageUpload from 'vue-core-image-upload/dist/ssr';
Vue.use( VueCoreImageUpload );
plugins: [
{ src: '~plugins/vue-core-image-upload.js', ssr: false }
]
Props
Contributions
Your contributions and suggestions are welcome ππππππ.
Related Packages
@antdv-next/img-crop
Image cropper integrated with antdv-next Upload. Wrap an Upload component, crop...
1,843
vue-img-cutter
A image crop plug-in for Vue,you can use it to rotateγzoom images and cut any s...
120,307
562
Version History
| Version | Released | License |
|---|---|---|
| 2.4.14 | ISC | |
| 2.4.13 | ISC | |
| 2.4.12 | ISC | |
| 2.4.11 | ISC | |
| 2.4.10 | ISC | |
| 2.4.9 | ISC | |
| 2.4.8 | ISC | |
| 2.4.7 | ISC | |
| 2.4.6 | ISC | |
| 2.4.5 | ISC | |
| 2.4.4 | ISC | |
| 2.4.3 | ISC | |
| 2.4.2 | ISC | |
| 2.4.1 | ISC | |
| 2.3.11 | ISC | |
| 2.3.10 | ISC | |
| 2.3.9 | ISC | |
| 2.3.8 | ISC | |
| 2.3.7 | ISC | |
| 2.3.6 | ISC | |
| 2.3.5 | ISC | |
| 2.3.4 | ISC | |
| 2.3.3 | ISC | |
| 2.3.2 | ISC | |
| 2.3.1 | ISC | |
| 2.3.0 | ISC | |
| 2.2.4 | ISC | |
| 2.2.3 | ISC | |
| 2.2.2 | ISC | |
| 2.2.1 | ISC |
Showing the latest 30 of 63. See every release on npm