mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 21:34:25 +00:00
first vue multiselect implementation
This commit is contained in:
parent
c39097f164
commit
28a45992c6
@ -1,11 +1,38 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="vue-component">
|
<div class="vue-component">
|
||||||
<h3>{{ $t('social_issue.title') }}</h3>
|
<h3>{{ $t('social_issue.title') }}</h3>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<label for="selectIssues">{{ $t('social_issue.label') }}</label>
|
||||||
|
<VueMultiselect
|
||||||
|
name="selectIssues"
|
||||||
|
v-model="selected"
|
||||||
|
:multiple="true"
|
||||||
|
:options="options">
|
||||||
|
</VueMultiselect>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import VueMultiselect from 'vue-multiselect'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "SocialIssue",
|
name: "SocialIssue",
|
||||||
|
components: { VueMultiselect },
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
selected: null,
|
||||||
|
options: ['list', 'of', 'options']
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style src="vue-multiselect/dist/vue-multiselect.css"></style>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
div.vue-component > div {
|
||||||
|
margin: 3em;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -52,6 +52,7 @@ const appMessages = {
|
|||||||
},
|
},
|
||||||
social_issue: {
|
social_issue: {
|
||||||
title: "Problématiques sociales",
|
title: "Problématiques sociales",
|
||||||
|
label: "Choisir les problématiques sociales",
|
||||||
},
|
},
|
||||||
referrer: {
|
referrer: {
|
||||||
title: "Référent",
|
title: "Référent",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user