|
|
@ -142,10 +142,11 @@ const isTableOpened = computed(() => { |
|
|
|
const baseTimeout = ref() |
|
|
|
const baseTimeout = ref() |
|
|
|
|
|
|
|
|
|
|
|
watch(openedTableId, () => { |
|
|
|
watch(openedTableId, () => { |
|
|
|
if (table.value.id !== openedTableId.value && isExpanded.value) { |
|
|
|
console.log('view ', openedTableId.value) |
|
|
|
if (baseTimeout.value) { |
|
|
|
if (baseTimeout.value) { |
|
|
|
clearTimeout(baseTimeout.value) |
|
|
|
clearTimeout(baseTimeout.value) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (table.value.id !== openedTableId.value && isExpanded.value) { |
|
|
|
baseTimeout.value = setTimeout(() => { |
|
|
|
baseTimeout.value = setTimeout(() => { |
|
|
|
if (isExpanded.value) { |
|
|
|
if (isExpanded.value) { |
|
|
|
isExpanded.value = false |
|
|
|
isExpanded.value = false |
|
|
|