yuche / vue-strap

Bootstrap components built with Vue.js
http://yuche.github.io/vue-strap/
MIT License
4.71k stars 935 forks source link

Select Multiple #529

Open jonathanjd opened 6 years ago

jonathanjd commented 6 years ago

<v-select :value.sync="select.value" :options="select.options" options-value="val" multiple name="animals[]"></v-select>

data(){ return { select: { value: [], options: [ {val: 0, label: 'Cat'}, {val: 1, label: 'Cow'}, {val: 2, label: 'Dog'}, {val: 3, label: 'Elephant'}, {val: 4, label: 'Fish'}, {val: 5, label: 'Lion'}, {val: 6, label: 'Tiger'}, {val: 7, label: 'Turtle'} ] }, } }

Error compiling template: use <div :id="val"> invalid expression: Unexpected identifier in options | filterBy searchValue Raw expression: v-for="option in options | filterBy searchValue"

Help me please. =(