File tree 1 file changed +15
-2
lines changed
frontend/src/components/Controls
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 25
25
</template >
26
26
27
27
<template #item-label =" { active , selected , option } " >
28
- <slot name =" item-label" v-bind =" { active, selected, option }" />
28
+ <slot name =" item-label" v-bind =" { active, selected, option }" >
29
+ <div v-if =" option.description" class =" flex flex-col gap-1" >
30
+ <div class =" flex-1 font-semibold truncate text-ink-gray-7" >
31
+ {{ option.label }}
32
+ </div >
33
+ <div class =" flex-1 text-sm truncate text-ink-gray-5" >
34
+ {{ option.description }}
35
+ </div >
36
+ </div >
37
+ <div v-else class =" flex-1 truncate text-ink-gray-7" >
38
+ {{ option.label }}
39
+ </div >
40
+ </slot >
29
41
</template >
30
42
31
43
<template #footer =" { value , close } " >
@@ -131,8 +143,9 @@ const options = createResource({
131
143
transform : (data ) => {
132
144
let allData = data .map ((option ) => {
133
145
return {
134
- label: option .value ,
146
+ label: option .label || option . value ,
135
147
value: option .value ,
148
+ description: option .description ,
136
149
}
137
150
})
138
151
if (! props .hideMe && props .doctype == ' User' ) {
You can’t perform that action at this time.
0 commit comments