🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

vue-random-pic

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-random-pic

vue-random-pic

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Vue 随机图片插件

Vue 的随机图片插件, 图片来自 https://unsplash.it

使用方法:

JS:

var vueRandomPic = require('vue-random-pic');
Vue.use(vueRandomPic, 'http://xxx.com');// 可传入你的镜像网站地址

HTML:

<img src="{{ picLink | randomPic 320 400 }}">

后边的两个数字为宽高

Keywords

vue

FAQs

Package last updated on 25 Dec 2015

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