This commit is contained in:
wangshiming
2022-04-13 15:10:35 +08:00
parent 4ec6d2b7ac
commit d75f859b50
2 changed files with 6 additions and 4 deletions

View File

@ -10,6 +10,8 @@ import { DataService } from 'src/app/routes/datatable/services/data.service';
export class DatatableCustomindexMapComponent implements OnInit, OnChanges, AfterViewInit {
el: any;
@Input() chartData: any;
@ViewChild('auditModal', { static: false }) auditModal!: any;
@ViewChild('map',{static: false}) map!: any;
chart: any;
mapData: any;
ds!: DataSet ;
@ -19,8 +21,8 @@ export class DatatableCustomindexMapComponent implements OnInit, OnChanges, Afte
userData: any = [];
constructor(private service: DataService, private ngZone: NgZone) {}
ngAfterViewInit(): void {
throw new Error('Method not implemented.');
this.map.el.nativeElement.style.height = this.map.el.nativeElement.clientWidth + 'px'
this.chart.render();
}
ngOnChanges(changes: SimpleChanges): void {