ng-zorro-antd
ng-zorro-antd copied to clipboard
table custom Column(自定义列)nzScroll
What problem does this feature solve?
nz-table 标签增加nzScroll后导致列不自动计算位置。
What does the proposed API look like?
table custom Column(自定义列)nzScroll
官网效果图
增加nzScroll后效果图
Translation of this issue:
TABLE COSTOM COLUMN
What PROBLEM DOES This Feature Solve?
The NZ-Table label increases NZSCROLL and causes the column to not automatically calculate the position.
What does the proposed api look like?
TABLE COSTOM COLUMN ! [Image] (https://github.com/ng-zorro/ng-norro-Ntd/assets/29938449/741a62e6-4981-9CFD-DAEB8B23fe81))))))))
这是哪个版本的,当前版本是正常的
Also please provide a testable sample, this behavior usually occurs when table layout is no longer fluid, meaning all columns are given a fixed width... @tianying0923
这是哪个版本的,当前版本是正常的
v16.2.2
Also please provide a testable sample, this behavior usually occurs when table layout is no longer fluid, meaning all columns are given a fixed width... @tianying0923
https://ng.ant.design/version/16.2.x/components/table/zh#components-table-demo-custom-column
<nz-table #basicTable [nzData]="listOfData" [nzCustomColumn]="customColumn">
change to
<nz-table #basicTable [nzData]="listOfData" [nzCustomColumn]="customColumn" [nzScroll]="{x:'100%'}">