Skip to content

Commit

Permalink
docs(module:resizable): fix demos of resizable (#7269)
Browse files Browse the repository at this point in the history
  • Loading branch information
simplejason committed Feb 25, 2022
1 parent a1bbdab commit 1e2ea80
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
28 changes: 15 additions & 13 deletions components/resizable/demo/drawer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,21 @@ import { NzResizeEvent } from 'ng-zorro-antd/resizable';
nzTitle="Resizable Drawer"
(nzOnClose)="close()"
>
<div
*ngIf="visible"
class="drawer-body"
nz-resizable
nzBounds="window"
[nzMinWidth]="256"
(nzResize)="onResize($event)"
>
<nz-resize-handles [nzDirections]="['right']"></nz-resize-handles>
<p>Some contents...</p>
<p>Some contents...</p>
<p>Some contents...</p>
</div>
<ng-container *nzDrawerContent>
<div
*ngIf="visible"
class="drawer-body"
nz-resizable
nzBounds="window"
[nzMinWidth]="256"
(nzResize)="onResize($event)"
>
<nz-resize-handles [nzDirections]="['right']"></nz-resize-handles>
<p>Some contents...</p>
<p>Some contents...</p>
<p>Some contents...</p>
</div>
</ng-container>
</nz-drawer>
`,
styles: [
Expand Down
6 changes: 0 additions & 6 deletions components/resizable/demo/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,6 @@ import { NzResizeEvent } from 'ng-zorro-antd/resizable';
`,
styles: [
`
.resize-trigger {
width: 1px;
height: 30px;
margin-top: 12px;
background: #e8e8e8;
}
.nz-resizable-preview {
border-width: 0;
border-right-width: 1px;
Expand Down

0 comments on commit 1e2ea80

Please sign in to comment.