2016-09-21 18:44:07 +08:00
|
|
|
<template>
|
2017-04-05 12:31:49 +08:00
|
|
|
<div style="margin: 0 400px;">
|
2017-04-20 11:38:12 +08:00
|
|
|
<Slider v-model="value" range></Slider>
|
|
|
|
<Button @click="change">change</Button>
|
2016-11-11 15:08:12 +08:00
|
|
|
</div>
|
2016-09-21 18:44:07 +08:00
|
|
|
</template>
|
|
|
|
<script>
|
|
|
|
export default {
|
2016-10-28 17:35:28 +08:00
|
|
|
data () {
|
|
|
|
return {
|
2017-04-20 11:38:12 +08:00
|
|
|
value: [20, 50]
|
2016-10-28 17:35:28 +08:00
|
|
|
}
|
|
|
|
},
|
2016-09-21 18:44:07 +08:00
|
|
|
methods: {
|
2017-04-20 11:38:12 +08:00
|
|
|
change () {
|
|
|
|
this.value = [30, 80];
|
2016-09-22 13:42:59 +08:00
|
|
|
}
|
2016-09-21 18:44:07 +08:00
|
|
|
}
|
|
|
|
}
|
2016-10-17 12:34:20 +08:00
|
|
|
</script>
|