refactor: refs #8673 enhance display of evaNotes in ExtraCommunity.vue with conditional rendering
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
0b6ee4ba70
commit
0d1f2f33e0
|
@ -612,12 +612,27 @@ watch(route, () => {
|
||||||
<QTd class="text-right">
|
<QTd class="text-right">
|
||||||
<span>{{ entry.volumeKg }}</span>
|
<span>{{ entry.volumeKg }}</span>
|
||||||
</QTd>
|
</QTd>
|
||||||
<QTd />
|
<QTd :colspan="entry.showEvaNotes ? 4 : 1">
|
||||||
<QTd />
|
<span
|
||||||
<QTd />
|
v-if="entry.showEvaNotes"
|
||||||
<QTd />
|
style="white-space: pre-wrap; word-break: break-word"
|
||||||
|
>
|
||||||
|
{{ entry.evaNotes }}
|
||||||
|
</span>
|
||||||
|
</QTd>
|
||||||
|
<QTd v-if="!entry.showEvaNotes" />
|
||||||
|
<QTd v-if="!entry.showEvaNotes" />
|
||||||
|
<QTd v-if="!entry.showEvaNotes" />
|
||||||
<QTd>
|
<QTd>
|
||||||
<span>{{ entry.evaNotes }}</span>
|
<QBtn
|
||||||
|
v-if="entry.evaNotes"
|
||||||
|
icon="comment"
|
||||||
|
size="md"
|
||||||
|
flat
|
||||||
|
color="primary"
|
||||||
|
@click="entry.showEvaNotes = !entry.showEvaNotes"
|
||||||
|
>
|
||||||
|
</QBtn>
|
||||||
</QTd>
|
</QTd>
|
||||||
</QTr>
|
</QTr>
|
||||||
</template>
|
</template>
|
||||||
|
@ -691,12 +706,4 @@ watch(route, () => {
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
width: max-content;
|
width: max-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.q-td {
|
|
||||||
&:nth-child(15) {
|
|
||||||
white-space: normal;
|
|
||||||
text-align: left;
|
|
||||||
word-break: break-word;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue