2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-17 02:29:37 +03:00
Files
vue-select/docs/gitbook/Install.md
T
Jeff 7e859dca18 - add include-csv plugin
- adjust default codepen theme
- update github edit base
- doc content overhaul up to localization
2018-01-14 20:12:26 -08:00

882 B

Vue Compatibility

  • vue ~2.0 use vue-select ~2.0
  • vue ~1.0 use vue-select ~1.0

Yarn / NPM

Install with yarn:

yarn add vue-select

or, using NPM:

npm install vue-select

Then, import and register the component:

import Vue from 'vue'
import vSelect from './components/Select.vue'

Vue.component('v-select', vSelect)

CDN

Include vue & vue-select.js - I recommend using unpkg.com.

<!-- include VueJS first -->
<script src="https://unpkg.com/vue@latest"></script>

<!-- use the latest release -->
<script src="https://unpkg.com/vue-select@latest"></script>
<!-- or point to a specific release -->
<script src="https://unpkg.com/vue-select@1.30"></script>

Then register the component in your javascript:

Vue.component('v-select', VueSelect.VueSelect);