docs(API): 翻译完了 XxxCasePipe

This commit is contained in:
Zhicheng Wang 2018-09-02 11:28:43 +08:00
parent 81b322a2fc
commit c448443c70
2 changed files with 20 additions and 1 deletions

View File

@ -31,7 +31,7 @@
[x] | common/http/HttpClientModule | 0.67
[x] | core/ElementRef | 0.67
[x] | core/OnInit | 0.66
[ ] | common/UpperCasePipe | 0.65
[x] | common/UpperCasePipe | 0.65
[ ] | common/NgStyle | 0.60
[ ] | router/RouterOutlet | 0.59
[ ] | forms/Validators | 0.59

View File

@ -12,6 +12,8 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error';
/**
* Transforms text to all lower case.
*
*
*
* @see `UpperCasePipe`
* @see `TitleCasePipe`
* @usageNotes
@ -19,6 +21,8 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error';
* The following example defines a view that allows the user to enter
* text, and then uses the pipe to convert the input text to all lower case.
*
*
*
* <code-example path="common/pipes/ts/lowerupper_pipe.ts" region='LowerUpperPipe'></code-example>
*
*
@ -27,6 +31,8 @@ import {invalidPipeArgumentError} from './invalid_pipe_argument_error';
export class LowerCasePipe implements PipeTransform {
/**
* @param value The string to transform to lower case.
*
*
*/
transform(value: string): string {
if (!value) return value;
@ -55,12 +61,18 @@ const unicodeWordMatch =
* rest of the word to lower case.
* Words are delimited by any whitespace character, such as a space, tab, or line-feed character.
*
*
*
* Tab
*
* @see `LowerCasePipe`
* @see `UpperCasePipe`
*
* @usageNotes
* The following example shows the result of transforming various strings into title case.
*
*
*
* <code-example path="common/pipes/ts/titlecase_pipe.ts" region='TitleCasePipe'></code-example>
*
*
@ -69,6 +81,8 @@ const unicodeWordMatch =
export class TitleCasePipe implements PipeTransform {
/**
* @param value The string to transform to title case.
*
*
*/
transform(value: string): string {
if (!value) return value;
@ -83,6 +97,9 @@ export class TitleCasePipe implements PipeTransform {
/**
* Transforms text to all upper case.
*
*
*
* @see `LowerCasePipe`
* @see `TitleCasePipe`
*/
@ -90,6 +107,8 @@ export class TitleCasePipe implements PipeTransform {
export class UpperCasePipe implements PipeTransform {
/**
* @param value The string to transform to upper case.
*
*
*/
transform(value: string): string {
if (!value) return value;