Skip to content

Commit

Permalink
refactor(module:pipe): deprecated css-unit pipe (#8027)
Browse files Browse the repository at this point in the history
  • Loading branch information
HyperLife1119 committed Sep 18, 2023
1 parent d57b7da commit 3cab06e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
18 changes: 17 additions & 1 deletion components/pipes/demo/css-unit.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,22 @@ title:

Css 单位

警告:在 `v17.0.0` 中被弃用,请使用 Angular 内置语法替代,例如:

```html
<div [style.border-radius.px]="1">px</div>
<div [style.border-radius.%]="1">%</div>
<div [style.border-radius.rem]="1">rem</div>
```

## en-US

Css unit
Css unit

WARNING: Deprecated in `v17.0.0`, please use angular's built-in syntax instead, eg:

```html
<div [style.border-radius.px]="1">px</div>
<div [style.border-radius.%]="1">%</div>
<div [style.border-radius.rem]="1">rem</div>
```
3 changes: 3 additions & 0 deletions components/pipes/nz-css-unit.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@

import { Pipe, PipeTransform } from '@angular/core';

/**
* @deprecated v17.0.0 - Use angular's built-in syntax instead
*/
@Pipe({
name: 'nzToCssUnit'
})
Expand Down

0 comments on commit 3cab06e

Please sign in to comment.