mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
first vue multiselect implementation
This commit is contained in:
parent
c39097f164
commit
28a45992c6
@ -1,11 +1,38 @@
|
||||
<template>
|
||||
<div class="vue-component">
|
||||
<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>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import VueMultiselect from 'vue-multiselect'
|
||||
|
||||
export default {
|
||||
name: "SocialIssue",
|
||||
components: { VueMultiselect },
|
||||
data () {
|
||||
return {
|
||||
selected: null,
|
||||
options: ['list', 'of', 'options']
|
||||
}
|
||||
}
|
||||
}
|
||||
</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: {
|
||||
title: "Problématiques sociales",
|
||||
label: "Choisir les problématiques sociales",
|
||||
},
|
||||
referrer: {
|
||||
title: "Référent",
|
||||
|
Loading…
x
Reference in New Issue
Block a user