WIP Переделаны справки

This commit is contained in:
Daria Golova
2023-05-19 14:09:43 +03:00
parent 9b45077e30
commit e9a819faa0
2 changed files with 38 additions and 7 deletions

View File

@@ -30,7 +30,7 @@
)
.rounded.grey-background.py-3.px-4.blue-color
span.font-bold.text-base.line-height Справка
.text-sm.line-height.mt-2(:class="{'whitespace-pre-line': data.content?.whitespace}") {{ data.content?.reference}}
.text-sm.line-height.mt-2(:class="{'whitespace-pre-line': data.content?.whitespace}") {{ reference }}
.w-full.flex.gap-x-1(v-if="!isEdit")
.w-full.flex.gap-x-1(v-if="modelValue")
.text-sm.line-height.blue-color.py-6px.px-3.grey-background.rounded {{ displayedValue }}
@@ -75,6 +75,11 @@ export default {
);
return null;
},
reference() {
if (this.findedListItem && this.findedListItem?.reference)
return this.findedListItem?.reference;
return this.data.content?.reference;
},
displayedValue() {
if (this.findedListItem)
return this.findedListItem?.readOnlyLabel