Accept only images - when selecting files

This commit is contained in:
Sagi Dayan 2020-05-24 16:03:49 -04:00
parent f1cba399af
commit 31f01a2850
6 changed files with 335 additions and 7473 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -8,6 +8,7 @@
:prevent-white-space="true" :prevent-white-space="true"
:show-remove-button="false" :show-remove-button="false"
:disable-drag-to-move="isDefaultImage" :disable-drag-to-move="isDefaultImage"
:accept="'image/*'"
@new-image="isDefaultImage=false;zoomState=1" @new-image="isDefaultImage=false;zoomState=1"
></croppa> ></croppa>
</figure> </figure>

View file

@ -117,6 +117,7 @@
v-model="pages[currentPage].croppa" v-model="pages[currentPage].croppa"
:prevent-white-space="true" :prevent-white-space="true"
:show-remove-button="false" :show-remove-button="false"
:accept="'image/*'"
:initial-image="pages[currentPage].image" :initial-image="pages[currentPage].image"
:width="croppaWidth" :width="croppaWidth"
:height="croppaHeight" :height="croppaHeight"