perf: #6943 change type vnTable.prop

This commit is contained in:
Javier Segarra 2024-10-25 09:50:01 +02:00
parent 858eff6ba3
commit a617abe042
3 changed files with 3 additions and 2 deletions

View File

@ -58,7 +58,7 @@ const $props = defineProps({
default: 'flex-one',
},
searchUrl: {
type: String,
type: [String, Boolean],
default: 'table',
},
isEditable: {

View File

@ -248,7 +248,7 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) {
function updateStateParams() {
const newUrl = { path: route.path, query: { ...(route.query ?? {}) } };
if (store.appendParams)
if (store.searchUrl)
newUrl.query[store.searchUrl] = JSON.stringify(store.currentFilter);
if (store.navigate) {

View File

@ -160,6 +160,7 @@ const rowClick = ({ id }) =>
:disable-option="{ card: true, table: true }"
class="full-width"
:disable-infinite-scroll="true"
:search-url="false"
>
<template #column-nickname="{ row }">
<span class="link">