秒数倒计时
使用场景
API
Demo
``` vux height=125 components=Group,Cell,Countdown,Switch
<template>
<group>
<switch title="start" :value.sync="start"></switch>
<cell title="15s">
<countdown slot="value" :time="time" :start="start" @on-finish="finish"></countdown>
</cell>
</group>
</template>
<script>
export default {
methods: {
finish: function (index) {
this.start = false
this.time = 20
}
},
data () {
return {
time: 15,
start: false
}
}
}
</script>Last updated