vue2, mobile, UI kit, ruler, based viewport 750px
$ npm run dev
Install the package. use with vue ^2.0
$ npm i vue-component-ruler -S
Register the component
import Vue from 'vue'
import Ruler from 'vue-component-ruler'
import 'vue-component-ruler/dist/ruler.min.css';
You may now use the component in your markup
<Ruler @onchange="onChange" ref="Ruler" :range="range"/>
set the range of ruler, for example: [0, 300]
will be triggered when value change
this.$refs.Ruler.doOnValueChange(value)