import { DataDisplayDto } from './../../shared-model'; import { RhSafeAny } from 'rh-base/model'; import { Component, Input, OnInit, EventEmitter, Output } from '@angular/core'; @Component({ selector: 'rh-data-display', templateUrl: './data-display.component.html', styleUrls: ['./data-display.component.less'] }) export class RhDataDisplayComponent implements OnInit { /** 数据源 */ @Input() rhDataSource: RhSafeAny; /** 数据展示信息 */ @Input() rhDisplayDataset!: DataDisplayDto[]; /** 弹出编辑框 */ @Output() rhOnEdit = new EventEmitter(); constructor() { // } ngOnInit() { // } onEdit(code: string) { this.rhOnEdit.emit(code); } }