dialog-delete.component.ts 744 B

1234567891011121314151617181920212223242526272829
  1. import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
  2. @Component({
  3. selector: 'app-dialog-delete',
  4. templateUrl: './dialog-delete.component.html',
  5. styleUrls: ['./dialog-delete.component.less']
  6. })
  7. export class DialogDeleteComponent implements OnInit {
  8. @Output() hideDelModalEvent = new EventEmitter<any>();
  9. @Output() confirmDelEvent = new EventEmitter<any>();
  10. @Input() btnLoading: boolean = false;
  11. @Input() delModal: boolean = false;
  12. @Input() content: string = '您确定要删除吗?';
  13. @Input() tips: string = '';
  14. constructor() { }
  15. ngOnInit() {
  16. }
  17. // 隐藏
  18. hideDelModal() {
  19. this.hideDelModalEvent.emit();
  20. }
  21. // 确认删除
  22. confirmDel() {
  23. this.confirmDelEvent.emit();
  24. }
  25. }