|
|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <vxe-grid class="wrapper" v-bind="gridOptions" ref="gridRef" v-fullscreen>
|
|
|
+ <vxe-grid class="wrapper" v-bind="gridOptions" ref="gridRef" v-fullscreen :style="{height: isFixed ? `calc(100vh - 101px)` : '100%'}">
|
|
|
<template #form>
|
|
|
<Search
|
|
|
v-if="searchConfig && searchConfig.enable && searchConfig?.fields && searchConfig?.data"
|
|
|
@@ -90,7 +90,7 @@
|
|
|
</template>
|
|
|
|
|
|
<template #pager>
|
|
|
- <div :class="`pager ${(!has(pagerConfig, 'isFixed') || pagerConfig.isFixed) && false ? 'page_fixed' : '' }`" v-if="pagerConfig && pagerConfig.enable">
|
|
|
+ <div :class="`pager ${(!has(pagerConfig, 'isFixed') || pagerConfig.isFixed) ? 'page_fixed' : '' }`" v-if="pagerConfig && pagerConfig.enable">
|
|
|
<Pagination :pagerConfig="pagerConfig" />
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -122,6 +122,8 @@
|
|
|
import {DISPLAY_STATE} from "/@/components/BsUi/constant.js";
|
|
|
const props = defineProps(['gridOptions', 'searchConfig', 'pagerConfig', 'toolbarConfig', 'getGridRef', 'mounted', 'toolbarTopConfig']);
|
|
|
|
|
|
+ const isFixed = get(props.pagerConfig,'isFixed', true)
|
|
|
+
|
|
|
const $slots = useSlots();
|
|
|
|
|
|
const gridRef = ref(null);
|