@@ -39,30 +39,12 @@ import { VirtualScroller } from 'vue-virtual-scroller'
3939Vue .component (' virtual-scroller' , VirtualScroller)
4040```
4141
42- ** ⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page. **
42+ ** ⚠️ A css file is included when importing the package: **
4343
44- ## Distribution import
45-
46- Install all the components:
47-
48- ``` javascript
44+ ``` js
4945import ' vue-virtual-scroller/dist/vue-virtual-scroller.css'
50- import VueVirtualScroller from ' vue-virtual-scroller/dist/vue-virtual-scroller'
51-
52- Vue .use (VueVirtualScroller)
5346```
5447
55- Use specific components:
56-
57- ``` javascript
58- import ' vue-virtual-scroller/dist/vue-virtual-scroller.css'
59- import { VirtualScroller } from ' vue-virtual-scroller/dist/vue-virtual-scroller'
60-
61- Vue .component (' virtual-scroller' , VirtualScroller)
62- ```
63-
64- ** ⚠️ You may have to setup your bundler to embed the css file in your page.**
65-
6648## Browser
6749
6850``` html
@@ -84,28 +66,6 @@ Use specific components:
8466Vue .component (' virtual-scroller' , VueVirtualScroller .VirtualScroller )
8567```
8668
87- ## Source import
88-
89- Install all the components:
90-
91- ``` javascript
92- import Vue from ' vue'
93- import VueVirtualScroller from ' vue-virtual-scroller/src'
94-
95- Vue .use (VueVirtualScroller)
96- ```
97-
98- Use specific components:
99-
100- ``` javascript
101- import Vue from ' vue'
102- import { VirtualScroller } from ' vue-virtual-scroller/src'
103-
104- Vue .component (' virtual-scroller' , VirtualScroller)
105- ```
106-
107- ** ⚠️ You need to configure your bundler to compile ` .vue ` files.** More info [ in the official documentation] ( https://vuejs.org/v2/guide/single-file-components.html ) .
108-
10969# Usage
11070
11171The virtual scroller has three main props:
0 commit comments