Skip to content
Snippets Groups Projects
Merged Timothee P requested to merge redmine-issues/10911 into develop
2 files
+ 20
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -35,7 +35,15 @@
{ 'active selected': option === selected },
]"
>
{{ option }}
<div v-if="twoParts">
<span v-if="option[0]">
{{ option[0] }} -
</span>
<span class="italic">{{ option[1] }}</span>
</div>
<div v-else>
{{ option }}
</div>
</div>
</div>
</div>
@@ -52,11 +60,12 @@ export default {
"search",
"placeholder",
"clearable",
"twoParts",
],
computed: {
processedOptions: function () {
//* si un objet {name, value}
//* si un objet {name, value}, ne récupérer que le name
let options = this.options.map((el) =>
el.constructor === Object ? el.name : el
);
@@ -138,4 +147,7 @@ export default {
.ui.selection.dropdown .menu > .item {
white-space: nowrap;
}
.italic {
font-style: italic;
}
</style>
\ No newline at end of file
Loading