tiny-vue/examples/sites/demos/mobile-first/app/slider/slider-event-start.vue

30 lines
471 B
Vue

<template>
<div class="mt-10">
<tiny-slider v-model="value2" @start="start"></tiny-slider>
</div>
</template>
<script>
import { Slider, Notify } from '@opentiny/vue'
export default {
components: {
TinySlider: Slider
},
data() {
return {
value2: 40
}
},
methods: {
start(val) {
Notify({
title: '触发开始滑动事件',
message: `${JSON.stringify(val)}`,
offset: 100
})
}
}
}
</script>