Browse Source

[完善]图标标题位置调整

master
邵佳豪 5 years ago
parent
commit
3157782e25
  1. 6
      src/app/ui/eharts-statistics/eharts-statistics.component.ts
  2. 3
      src/app/ui/learning-record-details/learning-record-details.component.html

6
src/app/ui/eharts-statistics/eharts-statistics.component.ts

@ -150,7 +150,11 @@ export class EhartsStatisticsComponent implements OnInit {
let that = this let that = this
let chartHynyxf = echarts.init(document.getElementById('center'), 'skinUpp'); let chartHynyxf = echarts.init(document.getElementById('center'), 'skinUpp');
let option = { let option = {
title: { text: that.idName }, title: {
text: that.idName,
left:45,
top:20
},
tooltip: { tooltip: {
trigger: 'axis', trigger: 'axis',
axisPointer: {type: 'shadow'} axisPointer: {type: 'shadow'}

3
src/app/ui/learning-record-details/learning-record-details.component.html

@ -25,7 +25,7 @@
</div> </div>
</div> </div>
<mat-divider></mat-divider> <mat-divider></mat-divider>
<div class="listbox"> <div class="listbox" [hidden]="noRecord">
<ul> <ul>
<li *ngFor="let item of recordList;let key = index"> <li *ngFor="let item of recordList;let key = index">
<p class="timeTitle" *ngIf="key ==0 || item.time != recordList[key - 1].time">{{item.time}}</p> <p class="timeTitle" *ngIf="key ==0 || item.time != recordList[key - 1].time">{{item.time}}</p>
@ -37,6 +37,7 @@
</li> </li>
</ul> </ul>
<mat-paginator <mat-paginator
[length]="length" [length]="length"
[pageSize]="pageSize" [pageSize]="pageSize"
(page)="chagePage($event)"> (page)="chagePage($event)">

Loading…
Cancel
Save