/** * @license * Copyright 厦门乾元盛世科技有限公司 All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file. */ import { Renderer, ElementRef } from '@angular/core'; import { DefaultValueAccessor } from '@angular/forms'; /** * 输入类表单控件 */ export declare class FormControl extends DefaultValueAccessor { private __renderer; private __elementRef; private __compositionMode; /** 控件ID: 输入框的 id */ id: string; /** 控件name */ name: string; /** 控件 label */ label: string; /** 是否禁用状态,默认为 false */ disabled: boolean; /** * 定义与输入控件相关联的值,主要用途如下: * 注意:
* 区别于下列情况的输入框,当输入框的type为如下情况时不应该设置value属性,而应该直接使用[(ngModel)]="x"来绑定值: * text, password, hidden, textarea, date, time, datetime, month, week, number, tel, email, search, select 等。 * *

注释:<input type="checkbox"> 和 <input type="radio"> 中必须设置 value 属性。

*/ value: any; /** 额外样式 */ additionalCls: string; constructor(__renderer: Renderer, __elementRef: ElementRef, __compositionMode: boolean); /** * Write a new value to the element. * * @Override (From ControlValueAccessor interface) */ writeValue(value: any): void; /** * @Override (From ControlValueAccessor interface) */ setDisabledState(isDisabled: boolean): void; }