docs(API): 翻译完了 forms/Form

This commit is contained in:
Zhicheng Wang 2018-09-04 16:00:05 +08:00
parent 0d7690251b
commit 2a1fbec879
2 changed files with 18 additions and 2 deletions

View File

@ -76,7 +76,7 @@
[x] | router/NavigationStart | 0.21 [x] | router/NavigationStart | 0.21
[x] | common/formatDate | 0.21 [x] | common/formatDate | 0.21
[x] | core/ComponentFactoryResolver | 0.20 [x] | core/ComponentFactoryResolver | 0.20
[ ] | forms/Form | 0.20 [x] | forms/Form | 0.20
[ ] | common/http/HttpErrorResponse | 0.20 [ ] | common/http/HttpErrorResponse | 0.20
[ ] | core/QueryList | 0.19 [ ] | core/QueryList | 0.19
[ ] | forms | 0.19 [ ] | forms | 0.19

View File

@ -16,43 +16,59 @@ import {NgControl} from './ng_control';
/** /**
* An interface that `FormGroupDirective` and `NgForm` implement. * An interface that `FormGroupDirective` and `NgForm` implement.
* *
* `FormGroupDirective` `NgForm`
*
* Only used by the forms module. * Only used by the forms module.
* *
* *
*/ */
export interface Form { export interface Form {
/** /**
* Add a control to this form. * Add a control to this form.
*
*
*/ */
addControl(dir: NgControl): void; addControl(dir: NgControl): void;
/** /**
* Remove a control from this form. * Remove a control from this form.
*
*
*/ */
removeControl(dir: NgControl): void; removeControl(dir: NgControl): void;
/** /**
* Look up the `FormControl` associated with a particular `NgControl`. * Look up the `FormControl` associated with a particular `NgControl`.
*
* `NgControl` `FormControl`
*/ */
getControl(dir: NgControl): FormControl; getControl(dir: NgControl): FormControl;
/** /**
* Add a group of controls to this form. * Add a group of controls to this form.
*
*
*/ */
addFormGroup(dir: AbstractFormGroupDirective): void; addFormGroup(dir: AbstractFormGroupDirective): void;
/** /**
* Remove a group of controls from this form. * Remove a group of controls from this form.
*
*
*/ */
removeFormGroup(dir: AbstractFormGroupDirective): void; removeFormGroup(dir: AbstractFormGroupDirective): void;
/** /**
* Look up the `FormGroup` associated with a particular `AbstractFormGroupDirective`. * Look up the `FormGroup` associated with a particular `AbstractFormGroupDirective`.
*
* `AbstractFormGroupDirective` `FormGroup`
*/ */
getFormGroup(dir: AbstractFormGroupDirective): FormGroup; getFormGroup(dir: AbstractFormGroupDirective): FormGroup;
/** /**
* Update the model for a particular control with a new value. * Update the model for a particular control with a new value.
*
*
*/ */
updateModel(dir: NgControl, value: any): void; updateModel(dir: NgControl, value: any): void;
} }