UNPKG

@yoyoboot/l-52abp-ng

Version:

This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 9.1.13.

42 lines (41 loc) 1.77 kB
import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, SimpleChange, SimpleChanges } from '@angular/core'; import { SampleComponentBaseDirective } from './sample-component-base'; import * as i0 from "@angular/core"; /*** * 简单控件基类 */ export declare abstract class SampleControlComponentBaseDirective<T> extends SampleComponentBaseDirective implements OnInit, AfterViewInit, OnDestroy, OnChanges { /** 占位符 */ placeholder: string; /** 启用清除,默认为false */ enabledClear: boolean; /** 启用过滤,默认为false */ enabledFileter: boolean; /** 禁用,默认为false */ disabled: boolean; /** 值 */ value: T; /** 值发生更改事件 */ valueChange: EventEmitter<T>; cdr: ChangeDetectorRef; constructor(injector: Injector); ngOnInit(): void; ngAfterViewInit(): void; ngOnChanges(changes: { [P in keyof this]?: SimpleChange; } & SimpleChanges): void; ngOnDestroy(): void; emitValueChange(val: T): void; /** 初始化 */ abstract onInit(): void; /** 视图初始化完成 */ abstract onAfterViewInit(): void; /** @Input()标记的值发生改变 */ abstract onInputChange(changes: { [P in keyof this]?: SimpleChange; } & SimpleChanges): any; /** 释放资源 */ abstract onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<SampleControlComponentBaseDirective<any>, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<SampleControlComponentBaseDirective<any>, never, never, { "placeholder": "placeholder"; "enabledClear": "enabledClear"; "enabledFileter": "enabledFileter"; "disabled": "disabled"; "value": "value"; }, { "valueChange": "valueChange"; }, never>; }