diff --git a/README.md b/README.md index 5ba2b37..4f5f718 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,7 @@ Vue component for efficiently rendering large collection data. Inspired by [reac - [scrolled-to-bottom-range](#scrolled-to-bottom-range) - [Slots](#slots) - [header](#header) + - [footer](#footer) - [cell](#cell) @@ -344,6 +345,29 @@ The header slot allows you to simulate a full-page mode for the virtual-scroller ``` +### footer +You can add content at the footer of the component by using footer slot + +```html + +
+ {{props.data}} +
+ +
+``` + ### cell ```html
{{yourOwnScope.data.text}}
diff --git a/src/VirtualCollection.vue b/src/VirtualCollection.vue index d57823f..d39ccdb 100644 --- a/src/VirtualCollection.vue +++ b/src/VirtualCollection.vue @@ -23,6 +23,7 @@ +