0
0
Fork 0

Solucion comentario

This commit is contained in:
carlosfonseca 2024-01-02 10:28:52 -05:00
parent 73128cbf99
commit b0b8205b52
1 changed files with 10 additions and 15 deletions

View File

@ -67,24 +67,19 @@ function exprBuilder(param, value) {
return { [param]: value };
}
}
</script>
<template>
<FetchData
url="ItemCategories"
limit="30"
auto-load
@on-fetch="
(data) => {
categoryList = (data || [])
const setCategoryList = (data) => {
categoryList.value = (data || [])
.filter((category) => category.display)
.map((category) => ({
...category,
icon: `vn:${(category.icon || '').split('-')[1]}`,
}));
}
"
/>
};
</script>
<template>
<FetchData url="ItemCategories" limit="30" auto-load @on-fetch="setCategoryList" />
<VnFilterPanel
:data-key="props.dataKey"
:search-button="true"