kartoteket / vue-image-upload-resize

A simple vue-component for client-side image upload with resizing
MIT License
175 stars 54 forks source link

How to use this with Vuetify? #37

Open avxkim opened 4 years ago

avxkim commented 4 years ago
<image-uploader
  :maxWidth="1500"
  :maxHeight="1500"
  accept=".jpg, .jpeg, .png"
  outputFormat="string"
  :quality="0.9"
  :scaleRatio="0.7"
  :preview="false"
  @input="uploadImage('docphoto', $event)"
/>

Seems like there's no way to style file input with Vuetify:

<v-file-input label="File input" />

Or there's a way to style it? Maybe a slot?

ahmed-classtra commented 4 years ago

I'm not sure I understand the question, but I believe you can use the label slot and put the v-file-input there .. wether the click events will be passed on to the original image-uploader or not is a different story