Skip to content

Commit 48798be

Browse files
chore: fix custom scroll method example
1 parent 7b511ee commit 48798be

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,9 @@ However if you need other behavior you can simply write your own function:
144144

145145
<script>
146146
export default {
147-
const myScroll = target => doSomeMagicHere(target)
147+
methods: {
148+
myScroll (target) { doSomeMagicHere(target) }
149+
}
148150
}
149151
</script>
150152
```

0 commit comments

Comments
 (0)