Hello, i'm using the new defineModel in the latest version of vue using Nuxt, in my custom component i add the model as "v-model:item.split" however the modifier doesnt seem to apply the effect. This is an example which i'm trying to work with. Am i doing something wrong here?
The setter function doesnt seem to work at all , i tried using some random return value on the outside scoped return and it still doesnt work in my template
const [item, modifier] = defineModel<ItemAnnotation>("item", {
set(value) {
if (modifier.split) {
return `${value.fullname.split("-"}`;
}
return value;
},
});