Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

table custom Column(自定义列)nzScroll #8427

Open
tianying0923 opened this issue Mar 7, 2024 · 5 comments
Open

table custom Column(自定义列)nzScroll #8427

tianying0923 opened this issue Mar 7, 2024 · 5 comments
Assignees

Comments

@tianying0923
Copy link

tianying0923 commented Mar 7, 2024

What problem does this feature solve?

nz-table 标签增加nzScroll后导致列不自动计算位置。

What does the proposed API look like?

table custom Column(自定义列)nzScroll
官网效果图
image
增加nzScroll后效果图
image

Copy link

zorro-bot bot commented Mar 7, 2024

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))))))))

@OriginRing
Copy link
Collaborator

这是哪个版本的,当前版本是正常的

@ParsaArvanehPA
Copy link
Contributor

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

@tianying0923
Copy link
Author

这是哪个版本的,当前版本是正常的

v16.2.2

@tianying0923
Copy link
Author

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%'}">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants