Skip to content

st动态列有分组表头时 移除这个分组表头列宽withConfig未重置 #1814

@mostermsater

Description

@mostermsater

Reproduction link

Steps to reproduce

初始化一个有表头分组的st组件
然后把表头分组的列移除掉

What is expected?

期望能整体列铺满整个表单

What is actually happening?

会显示为还是之前的列样式 把分组表头列移除掉 并空缺了出来

Environment Info
ng-alain 9.5.5
Browser chrome 84.0.4147.105

st的colums的change事件里当处理后返回的headerWidths为null时 ,应当重置当前的widthConfig为空数组
详见st.component.ts 方法refreshColumns 中的判断
if (this.widthConfig.length === 0 && res.headerWidths != null) {
this.widthConfig = res.headerWidths;
}
// 这儿res.headerWidths可能重新获得为null 这时候this.widthConfig = []

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