diff --git a/frontend/src/components/complex-table/index.vue b/frontend/src/components/complex-table/index.vue index 68912da5af8c..2978527cc425 100644 --- a/frontend/src/components/complex-table/index.vue +++ b/frontend/src/components/complex-table/index.vue @@ -53,6 +53,10 @@ const props = defineProps({ type: Number, default: 0, }, + height: { + type: Number, + default: 0, + }, }); const emit = defineEmits(['search', 'update:selects', 'update:paginationConfig']); const globalStore = GlobalStore(); @@ -105,11 +109,19 @@ onMounted(() => { if (props.heightDiff) { heightDiff = props.heightDiff; } + if (props.height) { + tableHeight.value = props.height; + } else { + tableHeight.value = window.innerHeight - heightDiff; + } - tableHeight.value = window.innerHeight - heightDiff; window.onresize = () => { return (() => { - tableHeight.value = window.innerHeight - heightDiff; + if (props.height) { + tableHeight.value = props.height; + } else { + tableHeight.value = window.innerHeight - heightDiff; + } })(); }; }); diff --git a/frontend/src/components/layout-content/index.vue b/frontend/src/components/layout-content/index.vue index 656c94b46e7f..c1db90ab730f 100644 --- a/frontend/src/components/layout-content/index.vue +++ b/frontend/src/components/layout-content/index.vue @@ -19,7 +19,7 @@