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
表格穿梭框,无法使用搜索功能 #5641
Comments
Translation of this issue:Table shuttle box, you can not use the search functionReproduction link[Https://stackblitz.com/edit/angular-1vgrcr?file=src/app/app.component.ts](https://stackblitz.com/edit/angular-1vgrcr?file=src/app/app. component.ts) Steps to reproduceUse the search function can not filter out the correct value What is expected?And 8 versions of the same can filter out the correct value What is actually happening?The net effect is the effect of filter failure
|
|
@carolinetanxin 列表是根据 <ng-container *ngFor="let data of t.data">
<tr *ngIf="!data.hide" (click)="onItemSelect(data)">
<td [nzChecked]="data.checked" [nzDisabled]="disabled || data.disabled" (nzCheckedChange)="onItemSelect(data)"></td>
<td>{{ data.title }}</td>
<td *ngIf="direction === 'left'">
<nz-tag>{{ data.tag }}</nz-tag>
</td>
<td>{{ data.description }}</td>
</tr>
</ng-container> |
@cipchk 感谢,但是另外一个问题是,table里关于搜索结果的显示,不在当前页的数据显示不出来。尝试使用table的虚拟滚动,并没有办法解决该问题。 |
这个问题是传递过来的数据包含着所有数据不管是不是已经符合检索前后,应该是只返回检索过的数据。 |
@cipchk 是的,没有只返回检索过的数据。谢谢你的解答,期待修复❤️。我也考虑下有没有什么别的设计方案先避开使用该组件。 |
临时解决方案,就是做一个 Pipe 然后过滤掉这部分数据。 |
* chore(module:transfer): fix demo - close #5641 * chore: fix demo
Reproduction link
https://stackblitz.com/edit/angular-1vgrcr?file=src/app/app.component.ts
Steps to reproduce
使用搜索功能无法正确过滤出值
What is expected?
和8版本一样可以过滤出正确的值
What is actually happening?
实际效果是过滤效果失效
The text was updated successfully, but these errors were encountered: