#7524 useLimit #645

Merged
jorgep merged 9 commits from 7524-useLimit into test 2024-09-02 07:50:46 +00:00
1 changed files with 6 additions and 1 deletions
Showing only changes of commit 717c52fc02 - Show all commits

View File

@ -97,7 +97,12 @@ const title = ref();
:rules="validate('client.salesPersonFk')"
:use-like="false"
:emit-value="false"
@update:model-value="(val) => (title = val?.nickname)"
@update:model-value="
(val) => {
title = val?.nickname;
data.salesPersonFk = val?.id;
Review

Al tener un emit-value="false" se devuelve el obj completo y hay que setear el valor a mano. Esto lo hago para poder cambiar el title de forma reactiva también.

Al tener un emit-value="false" se devuelve el obj completo y hay que setear el valor a mano. Esto lo hago para poder cambiar el title de forma reactiva también.
}
"
>
<template #prepend>
<VnAvatar