
Description
hevue-img-preview is an image preview component for Vue that works on both desktop and mobile. It is compatible with Vue 2 and Vue 3, and it can preview a single image or a set of images from one call that takes an image path or an array of paths. On phones it supports one-finger drag and two-finger pinch zoom. The component includes thumbnails, a bottom control bar with download and rotation, keyboard shortcuts, switch and close callbacks, and preset themes. Transitions can be turned off, right-click on images can be blocked, and the component colours and styles can be customized to match your design. The README covers installing with npm, registering the component globally in main.js, and using it inside components, with separate examples for Vue 2 and Vue 3. A configuration table lists options such as imgList, nowImgIndex, thumbnail, thumbnailsList, controlBar, customStyle, zIndex and locale. The changelog runs up to version 7.1.3. The official documentation is available in Chinese and English, and the source is on GitHub.…
Highlights
- Single and multi-image preview for Vue 2 and Vue 3
- Pinch zoom and drag on mobile
- Thumbnails, rotation, download and keyboard shortcuts
- Customizable styles and preset themes
- Documentation in Chinese and English
Ratings & Reviews
No ratings yet
Be the first to rate hevue-img-preview.
People also visit
hevue-img-preview FAQ
What is hevue-img-preview?
A Vue image preview component. Pass it an image path or an array of paths, and it opens a preview that works on desktop and mobile.
Does it support Vue 2 and Vue 3?
Yes. The README says it is compatible with both and shows a separate usage example for each.
How do I install it?
Install it with npm, then register it globally in main.js or use it inside a component. The official docs are available in Chinese and English.
Can I customize it?
Yes. The configuration table covers options such as thumbnails, the control bar, customStyle, themeName, zIndex and locale.
Does it work with touch?
Yes on mobile. The README lists one-finger drag and two-finger pinch zoom.
What are the best hevue-img-preview alternatives?
Popular alternatives to hevue-img-preview include v-viewer, vue-image-zoomer and vue3-carousel. See all hevue-img-preview alternatives






















