Skip to content

Commit 5b7d8f2

Browse files
robin-macphersonPeachScript
authored andcommitted
docs: update top scroll en example (#219)
1 parent 2e6e1c7 commit 5b7d8f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/guide/top-dir-scroll.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ previewLink: //jsfiddle.net/PeachScript/qac2h5v1/embedded/result/
44

55
# Top Direction Scroll
66

7-
Okay, it's the time to try the top direction scroll list, this plugin will save and restore scroll height automatically since `v2.4.0`, it means top direction feature can be used out of the box now!
7+
Okay, it's time to try the top direction scroll list. This plugin will save and restore the scroll height automatically since `v2.4.0`, which means that the top direction feature can be used out of the box now!
88

99
``` html {5}
1010
<header>
@@ -18,7 +18,7 @@ Okay, it's the time to try the top direction scroll list, this plugin will save
1818
</div>
1919
```
2020

21-
In the template, we moved the `InfiniteLoading` component to the top of the news list, and set `direction` property to `top`.
21+
In the template, we moved the `InfiniteLoading` component to the top of the news list, and set the `direction` property to `top`.
2222

2323
``` js {21}
2424
import axios from 'axios';
@@ -52,4 +52,4 @@ export default {
5252
};
5353
```
5454

55-
The script part is almost the same as the [basic Hacker News](./start-with-hn.md), the difference is, we reverse the news data from server and unshift them into the `list`. That's it, this plugin will do the remaining work, is it very easy?
55+
The script part is almost the same as the [basic Hacker News](./start-with-hn.md). The only difference is that we reverse the news data from the server and unshift it into the `list`. That's it! This plugin will do the remaining work, isn't it very easy?

0 commit comments

Comments
 (0)