Vue.js component for trimming images using Cropper.js
npm install --save vue-trim
You can use <vue-trim>
component after importing and registering VueTrim
.
<template>
<vue-trim></vue-trim>
</template>
<script>
import { VueTrim } from 'vue-trim';
export default {
components: {
VueTrim
}
};
</script>
You can also register it as global component.
import Vue from 'vue';
import { VueTrim } from 'vue-trim';
Vue.component('vue-trim', VueTrim);