ngx-bit
Version:
A flexible NG-ZORRO helper library
32 lines (31 loc) • 925 B
TypeScript
import { FormGroup } from '@angular/forms';
import { Location } from '@angular/common';
import { AsyncSubject, Observable } from 'rxjs';
import { BitService } from 'ngx-bit';
import { AlertOption } from './types';
export declare class BitSwalService {
private bit;
private location;
ready: AsyncSubject<any>;
constructor(bit: BitService, location: Location);
/**
* 创建提示框
* create alert
*/
create(option: AlertOption): Observable<any>;
/**
* 新增响应提示框
* Add response prompt box
*/
addAlert(res: any, form: FormGroup, reset?: any): Observable<any>;
/**
* 修改响应提示框
* Edit response prompt box
*/
editAlert(res: any): Observable<any>;
/**
* 删除响应提示框
* Delete response prompt box
*/
deleteAlert(observable: Observable<any>): Observable<any>;
}