v-sistec-features 1.26.2 → 1.26.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
</slot>
|
|
22
22
|
|
|
23
|
-
<Teleport :to="options.search_teleport || 'body'" :disabled="!options.search_teleport">
|
|
23
|
+
<Teleport v-if="isMounted" :to="options.search_teleport || 'body'" :disabled="!options.search_teleport">
|
|
24
24
|
<div class="dropdown d-flex">
|
|
25
25
|
<Search v-if="!options.disable_search" v-model:search="pagination.search"
|
|
26
26
|
v-model:filter="pagination.filter" :list_filter="options.list_filter" :item_use="item_use"
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
</div>
|
|
243
243
|
</div>
|
|
244
244
|
</div>
|
|
245
|
-
<Teleport :to="options.pagination_teleport || 'body'" :disabled="!options.pagination_teleport">
|
|
245
|
+
<Teleport v-if="isMounted" :to="options.pagination_teleport || 'body'" :disabled="!options.pagination_teleport">
|
|
246
246
|
<slot name="pagination" :pagination="pagination" :tradePage="fetchDataWithDelay" :error="error">
|
|
247
247
|
<div v-if="!error && pagination.count > 0" class="px-3" :class="options.class_pagination">
|
|
248
248
|
<PaginationDatatable :page_starts_at="options.page_starts_at" :filtering="true" :pagination="pagination"
|
|
@@ -274,7 +274,11 @@ import { useCheckBox } from '../composables/useCheckBox.ts';
|
|
|
274
274
|
import VDataTableLoading from './VDataTableLoading.vue';
|
|
275
275
|
import VThDataTable from './VThDataTable.vue';
|
|
276
276
|
|
|
277
|
-
|
|
277
|
+
/*
|
|
278
|
+
Variável responsável por indicar se o componente já foi totalmente montado no DOM.
|
|
279
|
+
Por que é usada: Impede que o componente Teleport tente enviar elementos para uma div que ainda não foi renderizada, evitando quebras na aplicação.
|
|
280
|
+
*/
|
|
281
|
+
const isMounted = ref(false);
|
|
278
282
|
const globalConfig = inject(DATA_TABLE_CONFIG, {});
|
|
279
283
|
const {
|
|
280
284
|
isHovering,
|
|
@@ -741,6 +745,7 @@ defineExpose<ExposedFunctions<T>>({
|
|
|
741
745
|
});
|
|
742
746
|
|
|
743
747
|
onMounted(() => {
|
|
748
|
+
isMounted.value = true;
|
|
744
749
|
if (options.value.immediate) {
|
|
745
750
|
nextTick(() => {
|
|
746
751
|
reSearch();
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
2
|
<div v-if="use_column_manager" class="dropdown d-inline-block ms-2">
|
|
4
3
|
<button class="btn dropdown-toggle" type="button" data-bs-toggle="dropdown" aria-expanded="false"
|
|
5
4
|
title="Gerenciar Colunas visíveis">
|
|
@@ -28,6 +27,9 @@
|
|
|
28
27
|
</div>
|
|
29
28
|
</div>
|
|
30
29
|
</div>
|
|
30
|
+
<slot name="extra-actions">
|
|
31
|
+
|
|
32
|
+
</slot>
|
|
31
33
|
</template>
|
|
32
34
|
<script setup lang="ts">
|
|
33
35
|
interface SearchProps {
|