Socket
Socket
Sign inDemoInstall

view-images

Package Overview
Dependencies
21
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    view-images

A images viewer for Vue3


Version published
Weekly downloads
49
decreased by-48.96%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

view-images

A images viewer for Vue3

usage

<template>
  <div class="images">
    <img
        :src="item"
        v-for="(item, index) in images"
        :key="index"
        @click="viewImages(index)"
    />
  </div>
</template>

import view from 'view-images'
import 'view-images/dist/style.css'

export default {
  setup () {

    const images = [
      'https://../assets/01.jpeg',
      'https://../assets/02.jpeg',
      'https://../assets/03.jpeg',
      'https://../assets/04.jpeg',
      'https://../assets/05.jpeg',
    ]

    const viewImages = index => {
      view({ images, current: index })
    }

    return {
      viewImages,
      images
    }

  }
}

Keywords

FAQs

Last updated on 25 Oct 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc