-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(module:typography): support
nzSuffix
property (#4629)
* feat(module:typography): support `nzSuffix` property close #4620 * test(module:typography): add the suffix test * test(module:typography): add the suffix test * fix(module:typography): fix the template
- Loading branch information
Showing
9 changed files
with
136 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
import { NzTypographyModule } from 'ng-zorro-antd/typography'; | ||
import { NzDividerModule } from 'ng-zorro-antd/divider'; | ||
import { NzSliderModule } from 'ng-zorro-antd/slider'; | ||
|
||
export const moduleList = [ NzTypographyModule, NzDividerModule ]; | ||
export const moduleList = [ NzTypographyModule, NzDividerModule, NzSliderModule ]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
order: 6 | ||
title: | ||
zh-CN: 后缀 | ||
en-US: suffix | ||
--- | ||
|
||
## zh-CN | ||
|
||
添加后缀的省略。 | ||
|
||
## en-US | ||
|
||
add suffix ellipsis support. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'nz-demo-typography-suffix', | ||
template: ` | ||
<nz-slider [(ngModel)]="rows" [nzMax]="10" [nzMin]="1"></nz-slider> | ||
<p nz-paragraph nzEllipsis nzExpandable [attr.title]="content + suffix" [nzEllipsisRows]="rows" [nzSuffix]="suffix"> | ||
{{ content }} | ||
</p> | ||
` | ||
}) | ||
export class NzDemoTypographySuffixComponent { | ||
content = | ||
'To be, or not to be, that is a question: Whether it is nobler in the mind to suffer. The slings and arrows of outrageous fortune'; | ||
suffix = '--William Shakespeare'; | ||
rows = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters