Skip to content

Commit

Permalink
fix(module:table): compatible with @angular/material/table
Browse files Browse the repository at this point in the history
  • Loading branch information
vthinkxie authored and vthinkxie committed Jun 27, 2019
1 parent d7bea09 commit 79b02ca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/table/nz-td.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { isNotNil, InputBoolean, NzUpdateHostClassService } from 'ng-zorro-antd/

@Component({
// tslint:disable-next-line:component-selector
selector: 'td:not(.nz-disable-td)',
selector: 'td:not(.nz-disable-td):not([mat-cell])',
changeDetection: ChangeDetectionStrategy.OnPush,
providers: [NzUpdateHostClassService],
preserveWhitespaces: false,
Expand Down
2 changes: 1 addition & 1 deletion components/table/nz-th.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export interface NzThItemInterface {

@Component({
// tslint:disable-next-line:component-selector
selector: 'th:not(.nz-disable-th)',
selector: 'th:not(.nz-disable-th):not([mat-sort-header]):not([mat-header-cell])',
preserveWhitespaces: false,
encapsulation: ViewEncapsulation.None,
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
2 changes: 1 addition & 1 deletion components/table/nz-tr.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { NzTableComponent } from './nz-table.component';

@Directive({
// tslint:disable-next-line:directive-selector
selector: 'tr',
selector: 'tr:not([mat-row]):not([mat-header-row])',
host: {
'[class.ant-table-row]': 'nzTableComponent'
}
Expand Down
1 change: 1 addition & 0 deletions components/tooltip/nz-tooltip.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export class NzTooltipDirective implements AfterViewInit, OnChanges, OnInit, OnD
protected updateCompValue(key: string, value: any): void {
if (this.isDynamicTooltip && isNotNil(value)) {
this.tooltip[key] = value;
this.tooltip.setClassMap();
Promise.resolve().then(() => {
this.tooltip.updatePosition();
});
Expand Down

0 comments on commit 79b02ca

Please sign in to comment.