Skip to content

Commit

Permalink
docs: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
PeachScript committed Nov 2, 2018
1 parent f593672 commit 79109fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<p align="center"><img src="http://www.peachis.me/assets/vue-infinite-loading/demo.gif"></p>

## Intro
An infinite scroll plugin for Vue.js, it can help you impletement infinite scroll list more easily.
An infinite scroll plugin for Vue.js, it can help you implement infinite scroll list more easily.

### Features
- Mobile friendly
Expand Down
4 changes: 2 additions & 2 deletions docs/guide/configure-load-msg.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ We can use the [`slot` special attribute](https://vuejs.org/v2/api/index.html#sl
</infinite-loading>
```

Unlike other slots, the default value for the `error` slot will provide a retry button for users to load data again. If you want to impletement a retry button for users when you customize the `error` slot, you can use the [`slot-scope`](https://vuejs.org/v2/api/index.html#slot-scope) feature, like this:
Unlike other slots, the default value for the `error` slot will provide a retry button for users to load data again. If you want to implement a retry button for users when you customize the `error` slot, you can use the [`slot-scope`](https://vuejs.org/v2/api/index.html#slot-scope) feature, like this:

``` html
<infinite-loading>
Expand All @@ -42,7 +42,7 @@ Unlike other slots, the default value for the `error` slot will provide a retry

In order to maintain consistent behavior for all load message when we building large application, this plugin support configure all slot using the plugin API, we just need to pass a string or Vue component for it, click [here](./configure-plugin-opts.md#slots) to read more about it.

The `error` slot is still the special one in this way, same as the `slot` special attribute way, if you want to impletement a retry button for users in your own error component, you can use the [`vm.$attrs`](https://cn.vuejs.org/v2/api/#vm-attrs) property, like this:
The `error` slot is still the special one in this way, same as the `slot` special attribute way, if you want to implement a retry button for users in your own error component, you can use the [`vm.$attrs`](https://cn.vuejs.org/v2/api/#vm-attrs) property, like this:

``` html
<!-- your own error component -->
Expand Down
2 changes: 1 addition & 1 deletion docs/guide/use-with-el-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It is easy to use this plugin with the standard table component, just place the
2. Set the `forceUseInfiniteWrapper` property to the CSS selector of the real scroll container, because the scroll bar of Element UI table component was enable dynamically according to content height, this plugin cannot find the correct scroll container automatically.

::: warning
If there has multiple Element UI table components in a same page, we need a more detailed CSS selector instead of the `.el-table__body-wrapper`, if not, this plugin may find a error table component as the scroll container
If there has multiple Element UI table components in a same page, we need a more detailed CSS selector instead of the `.el-table__body-wrapper`, if not, this plugin may find an error table component as the scroll container
:::

The final template should be similar to:
Expand Down

0 comments on commit 79109fc

Please sign in to comment.