vb-slider
v1.0.6
Published
Slider Component for Vue Bulma
Downloads
6
Maintainers
Readme
Slider
Slider component for Vue Bulma.
Installation
$ npm install vb-slider --save
Examples
<template>
<div>
<slider type="success" size="large" :value="value" :max="100" :step="1" is-fullwidth @change="update"></slider>
<input class="input" type="number" v-model="value" min="0" max="100" number>
</div>
</template>
<script>
import Slider from 'vue-bulma-slider'
export default {
components: {
Slider
},
data () {
return {
value: 23
}
},
computed: {
per () {
return this.value + '%'
}
},
methods: {
update (val) {
this.value = Number(val)
}
}
}
</script>
Badges