import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';

@Component({
  selector: 'app-onebwiththrees-image',
  templateUrl: './app-onebwiththrees-image.component.html',
  styleUrls: ['./app-onebwiththrees-image.component.scss'],
})
export class AppOnebwiththreesImage implements OnInit {

  /**
   * 输入标题
   */
  @Input() title:String;

  public _messages:Array<any> =[];

  /**
   * 输入属性
   */
  @Input() set messages(val:any){
    if(val){
      this._messages = JSON.parse(JSON.stringify(val));
    }
  }



  /**
* 抛出数据
*/
  @Output() menuClick: EventEmitter<any> = new EventEmitter<any>();

  constructor() { }

  ngOnInit() { }

  handleClick(item: any) {
    this.menuClick.emit(item);
  }

}
