Skip to content

表头吸顶功能 #2

@bluejfox

Description

@bluejfox

基本解决方案:
1.在vxe-table--header-wrapper body--wrapper样式上新增

position: sticky;
top: 10;
z-index: 10;

2.在vxe-table--fixed-left-wrapper样式上新增

oveflow: visible;

在其内vxe-table--header-wrapper fixed-left--wrapper样式上新增

position: sticky;
top: 10;
z-index: 11;//z-index需高于vxe-table--header-wrapper

但此时fixed列宽度多了40px,原因为body z-index高于普通body,
1.但fixed body设置的z-index小于fixed-table后,没有生效
2.fixed-table不设置z-index,fixed-header设置z-index,没有生效
原因还需要进行调查

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions