Skip to content

Commit

Permalink
Removed module index.js
Browse files Browse the repository at this point in the history
The CSS file should now be imported mannually.
  • Loading branch information
Guillaume Chau committed Sep 18, 2017
1 parent 710cab3 commit 5e08b73
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 48 deletions.
44 changes: 2 additions & 42 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,30 +39,12 @@ import { VirtualScroller } from 'vue-virtual-scroller'
Vue.component('virtual-scroller', VirtualScroller)
```

**⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.**
**⚠️ A css file is included when importing the package:**

## Distribution import

Install all the components:

```javascript
```js
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
import VueVirtualScroller from 'vue-virtual-scroller/dist/vue-virtual-scroller'

Vue.use(VueVirtualScroller)
```

Use specific components:

```javascript
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
import { VirtualScroller } from 'vue-virtual-scroller/dist/vue-virtual-scroller'

Vue.component('virtual-scroller', VirtualScroller)
```

**⚠️ You may have to setup your bundler to embed the css file in your page.**

## Browser

```html
Expand All @@ -84,28 +66,6 @@ Use specific components:
Vue.component('virtual-scroller', VueVirtualScroller.VirtualScroller)
```

## Source import

Install all the components:

```javascript
import Vue from 'vue'
import VueVirtualScroller from 'vue-virtual-scroller/src'

Vue.use(VueVirtualScroller)
```

Use specific components:

```javascript
import Vue from 'vue'
import { VirtualScroller } from 'vue-virtual-scroller/src'

Vue.component('virtual-scroller', VirtualScroller)
```

**⚠️ 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).

# Usage

The virtual scroller has three main props:
Expand Down
Loading

0 comments on commit 5e08b73

Please sign in to comment.