Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Vue.js
  3. hevue-img-preview

hevue-img-preview

NOASSERTIONVue7.1.3

A Vue image preview component compatible with Vue 2 and Vue 3, supporting single/multiple images, thumbnails, and mobile gestures.

Visit WebsiteGitHubGitHub
252 stars32 forks0 contributors

What is hevue-img-preview?

hevue-img-preview is a Vue.js component library for implementing interactive image preview modals in web applications. It solves the need for a consistent, feature-rich image viewer that works across Vue 2 and Vue 3 ecosystems, supporting both single and multiple image previews with mobile-optimized gestures.

Target Audience

Vue.js developers building applications that require embedded image galleries, media viewers, or product showcases, especially those needing cross-version compatibility and mobile touch support.

Value Proposition

Developers choose hevue-img-preview for its out-of-the-box compatibility with both Vue 2 and Vue 3, reducing migration effort, and its comprehensive feature set—including thumbnails, gestures, and deep customization—without requiring additional dependencies.

Overview

vue 图片预览组件,支持 pc 和手机端,支持单图和多图预览,支持vue2和vue3,配备官方文档。A Vue image preview component that supports both PC and mobile, single and multiple image preview, compatible with both Vue 2 and Vue 3, and comes with official documentation.

Use Cases

Best For

  • Adding image preview modals to Vue 2 or Vue 3 admin dashboards
  • Building mobile-friendly product galleries in Vue e-commerce sites
  • Implementing touch-enabled image viewers in Vue mobile web apps
  • Creating customizable media previews in Vue content management systems
  • Adding thumbnail navigation to Vue photo album components
  • Providing accessible image zoom and rotation in Vue documentation sites

Not Ideal For

  • Projects using non-Vue frameworks like React or Angular, as it's Vue-specific and won't integrate easily.
  • Applications requiring preview of videos, PDFs, or other media types, since it only supports images.
  • Teams needing out-of-the-box, high-accessibility components without additional customization work, as accessibility features are not highlighted in the README.
  • Large-scale projects where minimal bundle size is critical, as the component includes many features that might increase payload.

Pros & Cons

Pros

Cross-Vue Compatibility

Works with both Vue 2 and Vue 3, with separate import paths, reducing migration headaches as shown in the installation instructions.

Mobile Touch Gestures

Supports pinch-to-zoom and swipe navigation, optimized for responsive design across devices, explicitly mentioned in the README for mobile support.

Deep Customization Options

Allows extensive UI tweaks via control bar configuration, custom styles, and themes, with event callbacks for image changes and closes.

Thumbnail Performance

Supports separate thumbnail lists to improve performance with large images, as noted in the update log for version 7.1.3.

Cons

Limited Media Support

Only handles image previews, with no native support for videos or documents, which restricts use in mixed-media applications.

Breaking Change Risk

Major updates like version 7.0.0 introduced significant changes, indicating potential instability and need for careful version management.

Documentation Bias

Primary documentation is in Chinese, with an English version available, but it may lack depth or updates for international developers.

Frequently Asked Questions

Quick Stats

Stars252
Forks32
Contributors0
Open Issues13
Last commit3 days ago
CreatedSince 2020

Tags

#vue2#image-preview#vue3#ui-customization#frontend#mobile-friendly#touch-gestures#vue#vue-component

Built With

V
Vue.js

Links & Resources

Website

Included in

Vue.js73.6k
Auto-fetched 9 hours ago

Related Projects

tiptaptiptap

The headless rich text editor framework for web artisans.

Stars38,295
Forks3,111
Last commit3 days ago
vee-validatevee-validate

✅ Painless Vue forms

Stars11,264
Forks1,299
Last commit6 months ago
form-createform-create

:fire::fire::fire: 强大的低代码动态表单组件,通过 JSON 数据驱动表单渲染,适配移动端,支持可视化设计。提高开发者对表单的开发效率。目前在政务系统、OA系统、ERP系统、电商系统、流程管理等系统中已稳定应用。

Stars7,098
Forks1,101
Last commit1 month ago
vuelidatevuelidate

Simple, lightweight model-based validation for Vue.js

Stars6,873
Forks484
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub