feat(VnCard): use props searchbar #600

Merged
alexm merged 6 commits from vnCard-unify-searchbarParams into dev 2024-08-08 06:47:48 +00:00
1 changed files with 1 additions and 10 deletions
Showing only changes of commit 2f7dd0a4cb - Show all commits

View File

@ -17,9 +17,6 @@ const props = defineProps({
descriptor: { type: Object, required: true },
filterPanel: { type: Object, default: undefined },
searchDataKey: { type: String, default: undefined },
searchUrl: { type: String, default: undefined },
searchbarLabel: { type: String, default: '' },
searchbarInfo: { type: String, default: '' },
searchbar: { type: Object, default: undefined },
});
@ -63,13 +60,7 @@ if (props.baseUrl) {
</QScrollArea>
</QDrawer>
<slot name="searchbar" v-if="props.searchDataKey">
<VnSearchbar
:data-key="props.searchDataKey"
:url="props.searchUrl"
:label="props.searchbarLabel"
:info="props.searchbarInfo"
v-bind="$attrs['searchbar']"
/>
<VnSearchbar :data-key="props.searchDataKey" v-bind="$attrs['searchbar']" />

hmm y crear una prop tipo: props o settings? No lo veo mal como está ahora, lo digo como sugerencia

hmm y crear una prop tipo: **props** o **settings**? No lo veo mal como está ahora, lo digo como sugerencia
Outdated
Review

searchbarProps?

searchbarProps?
</slot>
<slot v-else name="searchbar" />
<RightMenu>