@@ -39,30 +39,12 @@ import { VirtualScroller } from 'vue-virtual-scroller'
39
39
Vue .component (' virtual-scroller' , VirtualScroller)
40
40
```
41
41
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: **
43
43
44
- ## Distribution import
45
-
46
- Install all the components:
47
-
48
- ``` javascript
44
+ ``` js
49
45
import ' vue-virtual-scroller/dist/vue-virtual-scroller.css'
50
- import VueVirtualScroller from ' vue-virtual-scroller/dist/vue-virtual-scroller'
51
-
52
- Vue .use (VueVirtualScroller)
53
46
```
54
47
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
-
66
48
## Browser
67
49
68
50
``` html
@@ -84,28 +66,6 @@ Use specific components:
84
66
Vue .component (' virtual-scroller' , VueVirtualScroller .VirtualScroller )
85
67
```
86
68
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
-
109
69
# Usage
110
70
111
71
The virtual scroller has three main props:
0 commit comments