fix(VnTable): showLabel
gitea/salix-front/pipeline/pr-dev There was a failure building this commit Details

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