diff --git a/components/table/nz-table.component.ts b/components/table/nz-table.component.ts index c2dc54150c8..7d7d81d7805 100644 --- a/components/table/nz-table.component.ts +++ b/components/table/nz-table.component.ts @@ -50,7 +50,7 @@ import { NzVirtualScrollDirective } from './nz-virtual-scroll.directive'; encapsulation: ViewEncapsulation.None, templateUrl: './nz-table.component.html', host: { - '[class.ant-table-empty]': 'data.length === 0' + '[class.ant-table-empty]': 'data.length === 0 && !nzTemplateMode' }, styles: [ `