chore: improve multiple watch source (#8253)
This commit is contained in:
@@ -33,12 +33,8 @@ export default createComponent({
|
||||
const { start, pause, reset, current } = useCountDown({
|
||||
time: +props.time,
|
||||
millisecond: props.millisecond,
|
||||
onChange(current) {
|
||||
emit('change', current);
|
||||
},
|
||||
onFinish() {
|
||||
emit('finish');
|
||||
},
|
||||
onChange: (current) => emit('change', current),
|
||||
onFinish: () => emit('finish'),
|
||||
});
|
||||
|
||||
const timeText = computed(() => parseFormat(props.format, current.value));
|
||||
|
||||
Reference in New Issue
Block a user