mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
50 lines
870 B
Vue
50 lines
870 B
Vue
<template>
|
|
<VueMultiselect
|
|
name="selectLama"
|
|
id="selectLama"
|
|
:options="lamas"
|
|
v-model="lama">
|
|
</VueMultiselect>
|
|
<input
|
|
type="checkbox"
|
|
id="checked"
|
|
v-model="checked"
|
|
/> test
|
|
<h3>{{ checked }} {{ lama }}</h3>
|
|
</template>
|
|
|
|
<script>
|
|
import VueMultiselect from 'vue-multiselect'
|
|
export default {
|
|
name: "test",
|
|
components: {
|
|
VueMultiselect
|
|
},
|
|
data() {
|
|
return {
|
|
checked: false,
|
|
lamas: ['pomme', 'poire', 'banane'],
|
|
lama: null
|
|
}
|
|
},
|
|
computed: {
|
|
checked: {
|
|
set(value) {
|
|
this.checked = value
|
|
},
|
|
get() {
|
|
return this.checked
|
|
}
|
|
},
|
|
lama: {
|
|
get() {
|
|
return this.lama
|
|
},
|
|
set(value) {
|
|
this.lama = value
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|