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

vue-range

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-range

a vue similar-input-range component

latest
Source
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

vue-range

similar input-range component for Vue

Inspired by mint-UI Range

npm package

https://www.npmjs.com/package/vue-range

Screenshot

range

Usage

index.js

var Vue = require('vue')
var vueRange = require('../src/index.vue')

// or ES2015
// import vueRange from 'vue-range'

new Vue({
  data() {
    return {
      val: 90,
      val2: 100,
      val3: 30,
      val4: 20,
      val5: -10,
      valStep: 10,
      max: 80
    }
  },
  methods: {
    endFn(){
      alert('end at: ' + this.val)
    }
  },
  components: {
    vueRange
  }
}).$mount('#app')

html

<div id="app">
  <template>
    <vue-range v-model="val" :end-func="endFn"></vue-range>
    <!-- <vue-range v-model="val" ></vue-range> -->
    {{ val }}
    <br>
    <br>

     <vue-range :step="valStep" v-model="val2">
      <div slot="start">start</div>
      <div slot="end">end</div>
    </vue-range>
    {{valStep}} - {{ val2 }}
    <br>
    <br>
    <br>
    
    <span>disable:</span>
    <vue-range disabled v-model="val3"></vue-range>
    <br>
    <br>
    <br>


    <span>height: 3</span>
    <vue-range :bar-height="3" v-model="val4"></vue-range>
    <br>
    <br>
    <br>

    <span>min: 10</span>
    <vue-range :min="10" :max="max" v-model="val5">
      <div slot="start">10</div>
      <div slot="end">{{ max }}</div>
    </vue-range>
  </template>
</div>

Development

$ npm install

$ npm run dev

open 'http://localhost:5000'

Version

1.1.0

support vue 2.0+

1.0.0

fixbug & add a callback function

Keywords

vue

FAQs

Package last updated on 14 Nov 2016

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