Skip to content

code100/VuetifyImageInput

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VuetifyImageInput

Provides basic image editing tools.

demo

Try it out!

dependencies

setup

npm

npm i vuetify-image-input

ES module

Register the component globally.

import Vue from 'vue';
import VImageInput from 'vuetify-image-input';

Vue.component(VImageInput.name, VImageInput);

or

Register the component in the scope of another component.

import VImageInput from 'vuetify-image-input';

export default {
  components: {
    [VImageInput.name]: VImageInput,
  },
};

Use the treeshaking system.

import VImageInput from 'vuetify-image-input/a-la-carte';

browser

<link
  href="https://unpkg.com/vuetify/dist/vuetify.min.css"
  rel="stylesheet"
/>
<script src="https://unpkg.com/vue/dist/vue.min.js"></script>
<script src="https://unpkg.com/vuetify/dist/vuetify.min.js"></script>
<script src="https://unpkg.com/@seregpie/claw"></script>
<script src="https://unpkg.com/vueclaw"></script>
<script src="https://unpkg.com/vuetify-image-input"></script>

The component is globally available as VuetifyImageInput. If Vue is detected, the component is registered automatically.

usage

<v-image-input
  v-model="imageData"
  :image-quality="0.85"
  clearable
  image-format="jpeg"
/>

properties

property type default description
clearable Boolean false
clearIcon String '$clear'
clearIconStyle Object
debounce Number 0
disabled Boolean false
errorIcon String '$error'
errorIconStyle Object
flipHorizontallyIcon String 'mdi-flip-horizontal'
flipHorizontallyIconStyle Object
flipVerticallyIcon String 'mdi-flip-vertical'
flipVerticallyIconStyle Object
fullHeight Boolean false
fullWidth Boolean false
hideActions Boolean false
imageBackgroundColor String
imageFormat String 'png' Possible values are 'png', 'jpeg' and 'webp'.
imageHeight Number 256
imageMaxScaling Number 1
imageMinScaling String 'cover' Possible values are 'cover' and 'contain'.
imageQuality
imageWidth Number 256
name String
overlayBackgroundColor String 'rgba(0,0,0,0.5)'
overlayBorderColor String '#fff'
overlayBorderWidth String '4px'
overlayPadding String '50px'
readonly Boolean false
rotateClockwiseIcon String 'mdi-rotate-right'
rotateClockwiseIconStyle Object
rotateCounterClockwiseIcon String 'mdi-rotate-left'
rotateCounterClockwiseIconStyle Object
successIcon String '$success'
successIconStyle Object
uploadIcon String 'mdi-upload'
uploadIconStyle Object
value String

About

Provides basic image editing tools.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.0%
  • HTML 11.0%