feat: update

parent caddebd0
...@@ -127,9 +127,9 @@ export class CleftbarComponent implements OnInit { ...@@ -127,9 +127,9 @@ export class CleftbarComponent implements OnInit {
} }
} }
} }
} if (!tag) {
if (!tag) { this._layer.alert('Maybe you do not have permission on that host');
this._layer.alert('Maybe you do not have permission on that host'); }
} }
DataStore.autologin = true; DataStore.autologin = true;
} }
......
...@@ -17,4 +17,8 @@ ...@@ -17,4 +17,8 @@
[scrollbarV]="config.scrollbarV" [scrollbarV]="config.scrollbarV"
[scrollbarH]="config.scrollbarH" [scrollbarH]="config.scrollbarH"
></ngx-datatable> ></ngx-datatable>
<mat-paginator #paginator
[pageSize]="config.pageSize"
[pageSizeOptions]="config.pageSizeOptions">
</mat-paginator>
</div> </div>
...@@ -3,3 +3,7 @@ input { ...@@ -3,3 +3,7 @@ input {
margin: 15px auto; margin: 15px auto;
width: 30%; width: 30%;
} }
.material {
box-shadow: 0 3px 5px -3px rgba(0, 0, 0, 0.2);
}
...@@ -10,6 +10,8 @@ export let Config: { ...@@ -10,6 +10,8 @@ export let Config: {
headerHeight: number, headerHeight: number,
limit: number, limit: number,
columnMode: string, columnMode: string,
pageSize: number,
pageSizeOptions: Array<number>,
} = { } = {
search: false, search: false,
scrollbarV: false, scrollbarV: false,
...@@ -19,6 +21,8 @@ export let Config: { ...@@ -19,6 +21,8 @@ export let Config: {
headerHeight: 50, headerHeight: 50,
limit: 10, limit: 10,
columnMode: 'force', columnMode: 'force',
pageSize: 10,
pageSizeOptions: [5, 10, 20],
}; };
@Component({ @Component({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment