docs(API): 翻译完了 NgStyle
This commit is contained in:
parent
c448443c70
commit
63127dd0c0
|
@ -32,7 +32,7 @@
|
||||||
[x] | core/ElementRef | 0.67
|
[x] | core/ElementRef | 0.67
|
||||||
[x] | core/OnInit | 0.66
|
[x] | core/OnInit | 0.66
|
||||||
[x] | common/UpperCasePipe | 0.65
|
[x] | common/UpperCasePipe | 0.65
|
||||||
[ ] | common/NgStyle | 0.60
|
[x] | common/NgStyle | 0.60
|
||||||
[ ] | router/RouterOutlet | 0.59
|
[ ] | router/RouterOutlet | 0.59
|
||||||
[ ] | forms/Validators | 0.59
|
[ ] | forms/Validators | 0.59
|
||||||
[ ] | common/http/HttpHeaders | 0.56
|
[ ] | common/http/HttpHeaders | 0.56
|
||||||
|
|
|
@ -24,10 +24,19 @@ import {Directive, DoCheck, ElementRef, Input, KeyValueChanges, KeyValueDiffer,
|
||||||
*
|
*
|
||||||
* Update an HTML element styles.
|
* Update an HTML element styles.
|
||||||
*
|
*
|
||||||
|
* 修改 HTML 元素的样式。
|
||||||
|
*
|
||||||
* The styles are updated according to the value of the expression evaluation:
|
* The styles are updated according to the value of the expression evaluation:
|
||||||
|
*
|
||||||
|
* 这些样式会根据表达式的求值结果进行更新:
|
||||||
|
*
|
||||||
* - keys are style names with an optional `.<unit>` suffix (ie 'top.px', 'font-style.em'),
|
* - keys are style names with an optional `.<unit>` suffix (ie 'top.px', 'font-style.em'),
|
||||||
|
*
|
||||||
|
* key 是样式名,可以带一个可选的 `.<unit>` 后缀(比如 'top.px', 'font-style.em'),
|
||||||
|
*
|
||||||
* - values are the values assigned to those properties (expressed in the given unit).
|
* - values are the values assigned to those properties (expressed in the given unit).
|
||||||
*
|
*
|
||||||
|
* value 是一些与这些属性相关的值(以指定的单位表示)。
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Directive({selector: '[ngStyle]'})
|
@Directive({selector: '[ngStyle]'})
|
||||||
|
|
Loading…
Reference in New Issue