0
0
Fork 0

fix(VnTable): showLabel

This commit is contained in:
Alex Moreno 2024-06-14 14:54:52 +02:00
parent f86bc9791b
commit d9d54a351f
1 changed files with 12 additions and 2 deletions

View File

@ -385,15 +385,24 @@ defineExpose({
:key="col.name"
class="fields"
>
<VnLv :label="col.label && `${col.label}:`">
<VnLv
:label="
!col.component &&
col.label &&
`${col.label}:`
"
>
<template #value>
<span
@click="stopEventPropagation($event)"
>
<VnTableColumn
:column="col"
:row
:row="row"
:is-editable="false"
v-model="row[col.name]"
component-prop="columnField"
:show-label="true"
/>
</span>
</template>
@ -450,6 +459,7 @@ defineExpose({
:row="{}"
default="input"
v-model="data[column.name]"
:show-label="true"
/>
<slot name="more-create-dialog" :data="data" />
</div>