Skip to content

wangbinyq/vue-retina

Repository files navigation

Retinajs Binding of Vue

Install

With Yarn:

yarn add vue-retina

With npm:

npm install vue-retina --save

Usage

example

import Vue from 'vue/dist/vue.common.js'
import retina from 'retinajs'
import VueRetina from 'vue-retina'

Vue.use(VueRetina, {retina})
<img :src="img" v-rjs="3">

Todo

  • change image size properly when image src is changed

License

MIT