Skip to content

Commit

Permalink
fix: change emptyTable to tableEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
HandsomeButterball committed Jul 9, 2021
1 parent c70f252 commit 7a50c51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/src/app/configuration/parameters/api/zh-cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ module.exports = [
type: 'TemplateRef<any>'
},
{
name: '#emptyTable',
name: '#tableEmpty',
description: `设置空表格模板`,
type: 'TemplateRef<any>'
}
Expand Down
2 changes: 1 addition & 1 deletion packages/gantt/src/gantt.component.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<ngx-gantt-root>
<ng-template #sideTemplate>
<gantt-table [groups]="groups" [items]="items" [columns]="columns" [groupTemplate]="groupTemplate" [emptyTemplate]="emptyTableTemplate"></gantt-table>
<gantt-table [groups]="groups" [items]="items" [columns]="columns" [groupTemplate]="groupTemplate" [emptyTemplate]="tableEmptyTemplate"></gantt-table>
</ng-template>
<ng-template #mainTemplate>
<gantt-main
Expand Down
2 changes: 1 addition & 1 deletion packages/gantt/src/gantt.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class NgxGanttComponent extends GanttUpper implements OnInit, AfterViewIn

@ContentChildren(NgxGanttTableColumnComponent, { descendants: true }) columns: QueryList<NgxGanttTableColumnComponent>;

@ContentChild('emptyTable', { static: true }) emptyTableTemplate: TemplateRef<any>;
@ContentChild('tableEmpty', { static: true }) tableEmptyTemplate: TemplateRef<any>;

private ngUnsubscribe$ = new Subject();

Expand Down

0 comments on commit 7a50c51

Please sign in to comment.