New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vmic

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vmic

Multi items carousel based on vuetifys v-carousel and scoped slots for custom items

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

Multi items carousel based on vuetifys v-carousel and scoped slots for custom components

Installation:

npm i vmic

Initiate the store and create a folder (module) named carousel, and in it a index.js file:

import { module } from "vmic";

export default module;

Import the carousel.css:

  • Using Nuxt: In nuxt.config.js
css: ["vmic/assets/carousel.css"]
  • ES15/16:
import "vmic/assets/carousel.css"

Example:

<template>
	<v-col
		justify-center
		align-center
	>
		<multiItemsCarousel
			:key="nitems"
			:items="items"
			:itemsNum="nitems"
			:per-click="2"
			:height="height"
			:interval="inter"
			:cycle="false"
			progress
			progress-color="red"
		>
			<template slot-scope="props">
				<v-img v-if="type === 'images'" :src="props.url" :width="width" :height="height-50" class="bfront"></v-img>
				<div v-else-if="type === 'text'">{{props.text}}</div>
				<NewsCard v-else-if="type === 'cards'" v-bind="props"/>
			</template>
		</multiItemsCarousel>
	</v-layout>
</template>

multiItemsCarousel props:

props:{
	items:{
		type: Array,
		required: true
	},
	height:{
		type: [Number, String],
		default: 500
	},
	itemsNum:{
		type: [Number, String],
		default: 3
	},
	cycle:{
		type: Boolean,
		default: true
	},
	interval:{
		type: Number,
		default: 10000
	},
	progress:{
		type: Boolean,
		default: true
	},
	hideDelimiters:{
		type: Boolean,
		default: false
	},
	progressColor:{
		type: String,
		default: 'light-blue'
	},
	perClick:{
		type: [Number, String],
		defualt: 1
	}
}

FAQs

Package last updated on 04 Mar 2020

Did you know?

Socket

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