プロジェクト
概要
Viewer.jsをベースにしたVue用画像ビューアー。ズーム、回転、カスタムツールバーに対応しています。
Web・アプリ開発計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- -1
- 1か月
- +2
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルv-viewer
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
関連プロジェクトを探す
読み込み中…