fix: FilterPanel when is multiline and VnTable vh on n toolbar #1657
|
@ -32,6 +32,7 @@ import VnTableOrder from 'src/components/VnTable/VnOrder.vue';
|
|||
import VnTableFilter from './VnTableFilter.vue';
|
||||
import { getColAlign } from 'src/composables/getColAlign';
|
||||
import RightMenu from '../common/RightMenu.vue';
|
||||
import heightTable from './filters/heightTable';
|
||||
|
||||
const arrayData = useArrayData(useAttrs()['data-key']);
|
||||
const $props = defineProps({
|
||||
|
@ -117,15 +118,7 @@ const $props = defineProps({
|
|||
},
|
||||
tableHeight: {
|
||||
type: String,
|
||||
|
||||
default: () => {
|
||||
let height = 100;
|
||||
Array.from(document.querySelectorAll('[role="toolbar"]'))
|
||||
.filter((element) => window.getComputedStyle(element).display !== 'none')
|
||||
.forEach(() => {
|
||||
height -= 10;
|
||||
});
|
||||
return height + 'vh';
|
||||
},
|
||||
default: heightTable,
|
||||
},
|
||||
footer: {
|
||||
type: Boolean,
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
export default function () {
|
||||
let height = 100;
|
||||
Array.from(document.querySelectorAll('[role="toolbar"]'))
|
||||
.filter((element) => window.getComputedStyle(element).display !== 'none')
|
||||
.forEach(() => {
|
||||
height -= 10;
|
||||
});
|
||||
console.error(height);
|
||||
return height + 'vh';
|
||||
}
|
Loading…
Reference in New Issue
Al hacer F5 se calcula mal la altura de de la tabla,
La prueba la he hecho ticketSale he metido muchos registros para que supere el tamaño de la pagina y tenga que hacer scroll y después f5