0.0.10-a • Published 2 years ago

vuetify-image-clipper v0.0.10-a

Weekly downloads
6
License
ISC
Repository
github
Last release
2 years ago

vuetify-image-clipper

A simple image input with clipper.

Installation

npm install vuetify-image-clipper --save

Import

main.js / app.js

import VuetifyImageClipper from "vuetify-image-clipper"
import "vuetify-image-clipper/dist/v-image-clipper.css"
Vue.use(VuetifyImageClipper)

any.vue

<v-image-clipper v-model="image"></v-image-clipper>
  • Props
NameTypeDefaultDescription
hide_resultBooleanfalseHide the clipped image output preview
ratioNumber1Ratio of image clipper
clip_iconString"mdi-content-cut"Icon for clip image
reset_iconString"mdi-backup-restore"Icon for reset image
rotate_iconString"mdi-format-rotate-90"Icon for rotate image
acceptString"image/*"accept attribute of html input tag
  • Slot
SlotDescription
defaultDisplayed below the clipper, can be used for example for adding action button (OK and Cancel)
image_inputDisplayed when no image is selected
no_resultDisplayed when no result image is clipped
extra_infoDisplayed extra information
0.0.10

2 years ago

0.0.10-a

2 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago