Skip to content

Bug: 路由开启noBasicLayout 参数后,vxe-table高度不正确 #6398

Open
@JackyNiu

Description

@JackyNiu

Version

Vben Admin V5

Describe the bug?

路由开启noBasicLayout 参数后,同时Page 设置了,autoContentHeight, 此时页面上使用vxe-table的 grid 会产生显示的行高不争取的情况,如果关闭noBasicLayout 则没有这个问题

Reproduction

rouer 配置
{ name: 'VbenAbout', path: '/vben-admin/about', component: () => import('#/views/_core/about/index.vue'), meta: { icon: 'lucide:copyright', title: $t('demos.vben.about'), order: 9999, noBasicLayout: true, }, },
页面代码
`<script>
import { useVbenVxeGrid } from '#/adapter/vxe-table';
import type { VxeTableGridOptions, VxeGridListeners } from '#/adapter/vxe-table';
const [Grid] = useVbenVxeGrid({
formOptions,
gridOptions,
});

</script> `

System Info

windows11, 最新版本的vben

Relevant log output

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions