mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-12-19 00:25:42 +00:00
visgraph: trying to pass value to edit relationship form fields (wip)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user