yoyo-ng-modulewindy
Version:
服务于52ABP模板的前端开源的相关组件内容。整合了ng-alain和你NG ZORRO的内容
31 lines (30 loc) • 930 B
TypeScript
import { ElementRef, EventEmitter } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { _HttpClient } from 'yoyo-ng-module/theme';
/**
* 文件下载
*
* ```html
* <button nz-button down-file http-url="assets/demo{{i}}" file-name="demo中文">{{i}}</button>
* ```
*/
export declare class DownFileDirective {
private el;
private http;
private _http;
/** URL请求参数 */
httpData: any;
/** 请求类型 */
httpMethod: string;
/** 下载地址 */
httpUrl: string;
/** 指定文件名,若为空从服务端返回的 `header` 中获取 `filename`、`x-filename` */
fileName: string;
/** 成功回调 */
success: EventEmitter<any>;
/** 错误回调 */
error: EventEmitter<any>;
private getDisposition(data);
constructor(el: ElementRef, http: HttpClient, _http: _HttpClient);
_click(): void;
}