Skip to content

Commit

Permalink
Optimize the visual experience of the nz-table template. (#2112)
Browse files Browse the repository at this point in the history
Co-authored-by: tomsun28 <tomsun28@outlook.com>
Co-authored-by: Logic <zqr10159@dromara.org>
  • Loading branch information
3 people authored Jun 21, 2024
1 parent b397629 commit 9b7b00e
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
[nzPageSizeOptions]="[8, 15, 25]"
(nzQueryParams)="onTablePageChange($event)"
nzShowPagination="true"
[nzScroll]="{ x: '1240px', y: '100%' }"
[nzScroll]="{ x: '1240px' }"
>
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
[nzPageSizeOptions]="[8, 15, 25]"
(nzQueryParams)="onTablePageChange($event)"
nzShowPagination="true"
[nzScroll]="{ x: '1240px', y: '100%' }"
[nzScroll]="{ x: '1240px' }"
>
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,7 @@
{{ 'alert.notice.receiver.new' | i18n }}
</button>
</div>
<nz-table
#fixedTable
[nzData]="receivers"
[nzLoading]="receiverTableLoading"
[nzScroll]="{ x: '1240px', y: '100%' }"
nzFrontPagination="false"
>
<nz-table #fixedTable [nzData]="receivers" [nzLoading]="receiverTableLoading" [nzScroll]="{ x: '1240px' }" nzFrontPagination="false">
<thead>
<tr>
<th nzAlign="center" nzWidth="15%">{{ 'alert.notice.receiver.people' | i18n }}</th>
Expand Down Expand Up @@ -171,13 +165,7 @@
</button>
</div>

<nz-table
#ruleFixedTable
[nzData]="rules"
[nzLoading]="ruleTableLoading"
[nzScroll]="{ x: '1240px', y: '100%' }"
nzFrontPagination="false"
>
<nz-table #ruleFixedTable [nzData]="rules" [nzLoading]="ruleTableLoading" [nzScroll]="{ x: '1240px' }" nzFrontPagination="false">
<thead>
<tr>
<th nzAlign="center" nzWidth="15%">{{ 'alert.notice.rule.name' | i18n }}</th>
Expand Down Expand Up @@ -250,7 +238,7 @@
#templateFixedTable
[nzData]="templates"
[nzLoading]="templateTableLoading"
[nzScroll]="{ x: '1240px', y: '100%' }"
[nzScroll]="{ x: '1240px' }"
nzFrontPagination="false"
>
<thead>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
[nzPageSizeOptions]="[8, 15, 25]"
(nzQueryParams)="onTablePageChange($event)"
nzShowPagination="true"
[nzScroll]="{ x: '1240px', y: '100%' }"
[nzScroll]="{ x: '1240px' }"
>
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
[nzPageSizeOptions]="[8, 15, 25]"
(nzQueryParams)="onTablePageChange($event)"
nzShowPagination="true"
[nzScroll]="{ x: '1240px', y: '100%' }"
[nzScroll]="{ x: '1240px' }"
>
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
[nzPageSizeOptions]="[8, 15, 25]"
(nzQueryParams)="onTablePageChange($event)"
nzShowPagination="true"
[nzScroll]="{ x: '1240px', y: '100%' }"
[nzScroll]="{ x: '1240px' }"
>
<thead>
<tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
[nzPageSizeOptions]="[8, 15, 25]"
(nzQueryParams)="onTablePageChange($event)"
nzShowPagination="true"
[nzScroll]="{ x: '1240px', y: '100%' }"
[nzScroll]="{ x: '1240px' }"
>
<thead>
<tr>
Expand Down
10 changes: 2 additions & 8 deletions web-app/src/app/routes/setting/status/status.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,13 +157,7 @@
</a>
</button>
</div>
<nz-table
#fixedTable
[nzData]="statusComponents"
nzFrontPagination="false"
[nzLoading]="componentLoading"
[nzScroll]="{ x: '1240px', y: '100%' }"
>
<nz-table #fixedTable [nzData]="statusComponents" nzFrontPagination="false" [nzLoading]="componentLoading" [nzScroll]="{ x: '1240px' }">
<thead>
<tr>
<th nzAlign="center" nzWidth="15%">{{ 'status.component.name' | i18n }}</th>
Expand Down Expand Up @@ -250,7 +244,7 @@
[nzData]="statusIncidences"
nzFrontPagination="false"
[nzLoading]="incidentLoading"
[nzScroll]="{ x: '1240px', y: '100%' }"
[nzScroll]="{ x: '1240px' }"
>
<thead>
<tr>
Expand Down
2 changes: 1 addition & 1 deletion web-app/src/app/routes/setting/tags/tags.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
[nzPageSizeOptions]="[8, 15, 25]"
(nzQueryParams)="onTablePageChange($event)"
nzShowPagination="true"
[nzScroll]="{ x: '1240px', y: '100%' }"
[nzScroll]="{ x: '1240px' }"
>
<thead>
<tr>
Expand Down

0 comments on commit 9b7b00e

Please sign in to comment.