update
This commit is contained in:
1 parent
8e6d6855e9
commit
6b8bce1557
4 files changed
+155
-8
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user