refs #6677 VnSelectFilter add url prop #164

Merged
carlossa merged 8 commits from 6677-urlSelectFilter into dev 2024-01-31 14:42:43 +00:00
2 changed files with 3 additions and 5 deletions
Showing only changes of commit adac3bc895 - Show all commits
src
components/common
pages/Claim/Card

View File

@ -100,7 +100,6 @@ async function filter(val, options) {
}
async function fetchFilter(val) {
console.log('ENTRY PA', dataRef.value);
if (!$props.url || !dataRef.value) return;
carlossa marked this conversation as resolved
Review

...

...
const { fields, sortBy, limit } = $props;
@ -132,7 +131,6 @@ async function filterHandler(val, update) {
}
watch(options, (newValue) => {
console.log(newValue);
setOptions(newValue);
});
carlossa marked this conversation as resolved Outdated
Outdated
Review

...

...
@ -148,7 +146,7 @@ watch(modelValue, (newValue) => {
:url="$props.url"
@on-fetch="(data) => setOptions(data)"
:where="where || { [optionValue]: value }"
:limit="limit || 30"
:limit="limit"
:order-by="orderBy"
jsegarra marked this conversation as resolved
Review

Aquí no aplicaría

Aquí no aplicaría
:fields="fields"
carlossa marked this conversation as resolved
Review

Si la $prop.limit tiene ya un valor por defecto, es necesario volver a indicarlo?

Si la $prop.limit tiene ya un valor por defecto, es necesario volver a indicarlo?
/>

View File

@ -182,8 +182,8 @@ const columns = computed(() => [
</QItemLabel>
</QItemSection>
</QItem>
</template> </VnSelectFilter
>s
</template>
</VnSelectFilter>
carlossa marked this conversation as resolved Outdated
Outdated
Review

Cuidao

Cuidao
</QTd>
</template>
<template #item="props">