Vue Photo Zoom Pro is a Vue.js component designed to provide image magnification functionality, enabling users to zoom into specific regions of a picture. It supports both Vue 2 and Vue 3 environments; version 3.x is compatible with Vue 3, while Vue 2 projects should explicitly install the 2.x branch. The current stable version is 3.0.1, which includes fixes for common Vue warnings. Key differentiators include its dual Vue version compatibility and customizable options for handling different image resolutions. The library is distributed via npm, requiring a separate import for its CSS styles. Releases are moderately paced, addressing bug fixes and minor features.
npm install vue-photo-zoom-proVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to install and integrate the `vue-photo-zoom-pro` component into a Vue 3 Single File Component, including the necessary CSS import.
For Vue 2 projects, install the 2.x branch explicitly: `npm install vue-photo-zoom-pro@2.x` or `yarn add vue-photo-zoom-pro@2.x`. For Vue 3, `npm install vue-photo-zoom-pro` (latest) is correct.
Ensure `import 'vue-photo-zoom-pro/dist/style/vue-photo-zoom-pro.css'` is included in your application's entry point (e.g., `main.js`/`main.ts`) or within the `<style>` block of a root component if your build system supports it.
Upgrade to `vue-photo-zoom-pro@3.0.1` or a later version to ensure the latest fixes and eliminate this specific warning from your console. Run `npm update vue-photo-zoom-pro` or `yarn upgrade vue-photo-zoom-pro`.
Verify the exact import path. Run `npm install` or `yarn install` to ensure all dependencies are correctly placed in `node_modules`. Check your bundler configuration for any custom path resolution rules.
Install the correct version of `vue-photo-zoom-pro` matching your Vue project's version. Use `npm install vue-photo-zoom-pro@2.x` for Vue 2 or `npm install vue-photo-zoom-pro@latest` for Vue 3.