We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
fixed columns
virtualScroll
https://stackblitz.com/edit/angular-fjxqgn?file=src%2Fapp%2Fapp.component.ts
left
right
ng-zorro
import { Component, ViewChild } from '@angular/core'; import { STColumn, STComponent, STPage } from '@delon/abc/st'; @Component({ selector: 'components-st-virtual', template: ` <st #st [data]="data" [columns]="columns" [page]="page" virtualScroll [scroll]="{ x: '1300px', y: '240px' }"></st> `, }) export class ComponentsStVirtualComponent { @ViewChild('st', { static: false }) st!: STComponent; page: STPage = { front: false, show: false, }; data: Array<{ id: number; price: number }> = Array(2000) .fill({}) .map((_, idx) => ({ id: idx 1, price: ~~(Math.random() * 100), })); columns: STColumn[] = [ { title: '编号', index: 'id', width: 100, fixed: 'left' }, { title: '价格1', index: 'price', width: 100, fixed: 'left' }, { title: '价格2', index: 'price', width: 100 }, { title: '价格3', index: 'price', width: 100 }, { title: '价格4', index: 'price', width: 100 }, { title: '价格5', index: 'price', width: 100 }, { title: '价格6', index: 'price', width: 100 }, { title: '价格7', index: 'price', width: 100 }, { title: '价格8', index: 'price', width: 100 }, { title: '价格9', index: 'price', width: 100, fixed: 'right' }, { title: '价格10', index: 'price', width: 100, fixed: 'right' }, ]; }
所有固定列保持固定
除第一个和最后的固定列,其余固定列在横向滚动过程中都没有固定
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reproduction link
https://stackblitz.com/edit/angular-fjxqgn?file=src%2Fapp%2Fapp.component.ts
Steps to reproduce
left
和right
属性都为0,并没有正确设置。ng-zorro
也有类似的issue: ng-zorro-antd issue #7822。核心代码如下
What is expected?
所有固定列保持固定
What is actually happening?
除第一个和最后的固定列,其余固定列在横向滚动过程中都没有固定
The text was updated successfully, but these errors were encountered: