Skip to content

Commit

Permalink
feat(module:typography): support keyboard and link types (#5355)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsuanxyz authored Sep 14, 2020
1 parent 1f2d816 commit 2d6fa62
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 13 additions & 5 deletions components/typography/demo/basic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { Component } from '@angular/core';
and <span nz-typography><code>Axure</code></span
>), to help people create their product prototypes beautifully and efficiently.
</p>
<article nz-typography>
<div nz-typography>
<ul>
<li>
<a href="/docs/spec/proximity">Principles</a>
Expand All @@ -39,8 +39,13 @@ import { Component } from '@angular/core';
<a href="/docs/resource/download">Resource Download</a>
</li>
</ul>
</article>
<nz-divider></nz-divider>
</div>
<p nz-typography>
Press <span nz-typography><kbd>Esc</kbd></span> to exist...
</p>
</article>
<nz-divider></nz-divider>
<article nz-typography>
<h1 nz-typography>介绍</h1>
<p nz-typography>
蚂蚁的企业级产品是一个庞大且复杂的体系。这类产品不仅量级巨大且功能复杂,而且变动和并发频繁,常常需要设计与开发能够快速的做出响应。
Expand All @@ -61,7 +66,7 @@ import { Component } from '@angular/core';
<span nz-typography><code>Axure</code></span
>),来帮助业务快速设计出高质 量的产品原型。
</p>
<article nz-typography>
<div nz-typography>
<ul>
<li>
<a href="/docs/spec/proximity">设计原则</a>
Expand All @@ -73,7 +78,10 @@ import { Component } from '@angular/core';
<a href="/docs/resource/download">设计资源</a>
</li>
</ul>
</article>
</div>
<p nz-typography>
按 <span nz-typography><kbd>Esc</kbd></span> 键退出阅读……
</p>
</article>
`
})
Expand Down
2 changes: 2 additions & 0 deletions components/typography/demo/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@ import { Component } from '@angular/core';
<span nz-typography><mark>Ant Design</mark></span>
<br />
<span nz-typography><code>Ant Design</code></span>
<span nz-typography><kbd>Ant Design</kbd></span>
<br />
<span nz-typography><u>Ant Design</u></span>
<br />
<span nz-typography><del>Ant Design</del></span>
<br />
<span nz-typography><strong>Ant Design</strong></span>
<span nz-typography><a href="https://ng.ant.design/" target="_blank">Ant Design</a></span>
`,
styles: []
})
Expand Down

0 comments on commit 2d6fa62

Please sign in to comment.