mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 01:04:25 +08:00
add capture=camera to the accept attribute in file input when selecting transaction pictures
This commit is contained in:
@@ -472,7 +472,7 @@
|
|||||||
<f7-photo-browser ref="pictureBrowser" type="popup" navbar-of-text="/"
|
<f7-photo-browser ref="pictureBrowser" type="popup" navbar-of-text="/"
|
||||||
:theme="isDarkMode ? 'dark' : 'light'" :navbar-show-count="true" :exposition="false"
|
:theme="isDarkMode ? 'dark' : 'light'" :navbar-show-count="true" :exposition="false"
|
||||||
:photos="transactionPictures" :thumbs="transactionThumbs" />
|
:photos="transactionPictures" :thumbs="transactionThumbs" />
|
||||||
<input ref="pictureInput" type="file" style="display: none" :accept="SUPPORTED_IMAGE_EXTENSIONS" @change="uploadPicture($event)" />
|
<input ref="pictureInput" type="file" style="display: none" :accept="`${SUPPORTED_IMAGE_EXTENSIONS};capture=camera`" @change="uploadPicture($event)" />
|
||||||
</f7-page>
|
</f7-page>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user