all
This commit is contained in:
@@ -50,11 +50,14 @@ const _sfc_main = defineComponent({
|
||||
const start = function() {
|
||||
localStartVal.value = props.endVal;
|
||||
};
|
||||
watch(() => props.endVal, () => {
|
||||
if (props.autoplay) {
|
||||
localStartVal.value = props.endVal;
|
||||
watch(
|
||||
() => props.endVal,
|
||||
() => {
|
||||
if (props.autoplay) {
|
||||
localStartVal.value = props.endVal;
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
onMounted(() => {
|
||||
if (props.autoplay) {
|
||||
start();
|
||||
|
||||
Reference in New Issue
Block a user