docs(API): 翻译完了 forms/Form
This commit is contained in:
parent
0d7690251b
commit
2a1fbec879
|
@ -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
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue