Skip to content
프로젝트

소개

Viewer.js를 기반으로 한 Vue용 이미지 뷰어입니다. 확대·축소, 회전, 사용자 지정 툴바를 지원합니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
-1
in 1 month
+2

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

v-viewer

npm version npm legacy version npm downloads CI Vue License: MIT GitHub stars

An image viewer for Vue with zoom, rotation, image navigation and custom toolbars, powered by Viewer.js.

English documentation · 中文文档 · Live demo / 在线演示

Install

npm install v-viewer         # Vue 3 (5.x)
npm install v-viewer@legacy  # Vue 2 (4.x)

Supports Vue 3.0+ and Vue 2.4+. For upgrades from older major versions, see the Vue 3 migration guide or Vue 2 migration guide.

Viewer.js and its browser styles are included automatically.

Quick start

Vue 3.2+:

<script setup>
import { Viewer } from 'v-viewer'

const images = ['/photo.jpg']
</script>

<template>
  <Viewer :toolbar="true">
    <img v-for="src in images" :key="src" :src="src" alt="Gallery image" />
  </Viewer>
</template>

For Vue 2, directives, API usage and more examples, see the Vue 3 guide or Vue 2 guide.

Star History

License

MIT

관련 프로젝트 살펴보기

불러오는 중…