2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-05-23 03:54:04 +03:00
2017-02-04 20:08:41 -08:00
2016-07-04 13:00:35 -07:00
2017-02-03 16:54:59 -08:00
2017-02-01 22:32:06 -08:00
2017-02-02 22:52:56 -08:00
2017-02-03 16:39:07 -08:00
2016-05-28 15:50:02 -07:00
2016-05-28 16:21:15 -07:00
2016-05-28 16:21:15 -07:00
2016-05-28 16:21:15 -07:00
2016-03-01 21:07:16 -08:00
2016-12-20 10:53:49 -08:00
2016-07-04 13:00:35 -07:00
2017-02-02 16:42:06 -08:00
2016-03-10 14:44:48 -08:00
2017-02-03 16:39:07 -08:00
2017-02-04 20:08:41 -08:00

vue-select Build Status Code Coverage No Dependencies MIT License Current Release

A native Vue.js select component that provides similar functionality to Select2 without the overhead of jQuery.

Features

  • AJAX Support
  • Tagging
  • List Filtering/Searching
  • Supports Vuex
  • Select Single/Multiple Options
  • Bootstrap Friendly Markup
  • +95% Test Coverage
  • ~32kb minified

Documentation

Install & Basic Usage

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

NPM

Install the package. You should install vue-select@1.3.3 for use with vue ~1.0.

$ npm install vue-select

Register the component

import Vue from 'vue'
import vSelect from 'vue-select'
Vue.component(vSelect)

You may now use the component in your markup

<v-select v-model="selected" :options="['foo','bar']"></v-select>

CDN

Just include vue & vue-select.js - I recommend using unpkg.

<script scr="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.3.3"></script>

Then register the component in your javascript:

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

You may now use the component in your markup

<v-select v-model="selected" :options="['foo','bar']"></v-select>

Here's an example on JSBin.

For more information, please visit the vue-select documentation.

S
Description
No description provided
Readme 15 MiB
Languages
JavaScript 58%
Vue 26.4%
CSS 7.8%
SCSS 7.3%
HTML 0.5%