1234567891011121314151617181920212223242526272829303132 |
- import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
- @Component({
- selector: 'app-dialog-delete',
- templateUrl: './dialog-delete.component.html',
- styleUrls: ['./dialog-delete.component.less']
- })
- export class DialogDeleteComponent implements OnInit {
- @Output() hideDelModalEvent = new EventEmitter<any>();
- @Output() confirmDelEvent = new EventEmitter<any>();
- @Input() btnLoading: boolean = false;
- @Input() cancenlLoading: boolean = false;
- @Input() delModal: boolean = false;
- @Input() content: string = '您确定要删除吗?';
- @Input() tips: string = '';
- @Input() confirmTxt: string = '确定';
- @Input() cancelTxt: string = '取消';
- constructor() { }
- ngOnInit() {
- }
- // 隐藏
- hideDelModal() {
- this.hideDelModalEvent.emit();
- }
- // 确认删除
- confirmDel() {
- this.confirmDelEvent.emit();
- }
- }
|