This commit is contained in:
2025-12-03 00:22:00 +08:00
parent 8e6d6855e9
commit 6b8bce1557
4 changed files with 155 additions and 8 deletions

View File

@@ -16,6 +16,7 @@ const { $slidev } = useSlideContext();
const props = defineProps({
go: {
default: 1,
type: [Number, String],
},
arrow: {
type: String,
@@ -24,11 +25,7 @@ const props = defineProps({
});
const onClick = () => {
const go = props.go;
if (go <= 0) {
$slidev.nav.go(1);
return;
}
console.log('GoBack.vue go:', go);
$slidev.nav.go(go);
};
</script>