@@ -30,16 +30,14 @@ import { NzResizableModule } from 'ng-zorro-antd/resizable';
3030### Import Style
3131
3232``` less
33- @import " node_modules/ng-zorro-antd/resizable/style/entry.less"
33+ @import ' node_modules/ng-zorro-antd/resizable/style/entry.less' ;
3434```
3535
36-
37-
3836## API
3937
40- ### [nz-resizable]
38+ ### [ nz-resizable] : standalone
4139
42- Resizable element the `position` attribute must be one of `' relative' | ' absolute' | ' fixed' |' sticky' `,default is `' relative' `.
40+ Resizable element the ` position ` attribute must be one of ` 'relative' | 'absolute' | 'fixed' |'sticky' ` ,default is ` 'relative' ` .
4341
4442``` ts
4543interface NzResizeEvent {
@@ -51,24 +49,24 @@ interface NzResizeEvent {
5149}
5250```
5351
54- | Property | Description | Type | Default |
55- | --- | --- | --- | --- |
56- | [ nzBounds] | Specifies resize boundaries. | ` 'window' \| 'parent' \| ElementRef<HTMLElement> ` | ` parent ` |
57- | [ nzMaxHeight] | Maximum height of resizable element | ` number ` | - |
58- | [ nzMaxWidth] | Maximum width of resizable element | ` number ` | - |
59- | [ nzMinHeight] | Minimum height of resizable element | ` number ` | ` 40 ` |
60- | [ nzMinWidth] | Minimum width of resizable element | ` number ` | ` 40 ` |
61- | [ nzGridColumnCount] | Number of columns(-1 is not grid) | ` number ` | ` -1 ` |
62- | [ nzMaxColumn] | Maximum Column | ` number ` | - |
63- | [ nzMinColumn] | Minimum Column | ` number ` | - |
64- | [ nzLockAspectRatio] | Lock the aspect ratio based on the initial size | ` boolean ` | ` false ` |
65- | [ nzPreview] | Enable preview when resizing | ` boolean ` | ` false ` |
66- | [ nzDisabled] | Disable resize | ` boolean ` | ` false ` |
67- | (nzResize) | Calls when Resizing | ` EventEmitter<NzResizeEvent> ` | - |
68- | (nzResizeStart) | Calls when resize start | ` EventEmitter<NzResizeEvent> ` | - |
69- | (nzResizeEnd) | Calls when resize end | ` EventEmitter<NzResizeEvent> ` | - |
70-
71- ### nz-resize-handle
52+ | Property | Description | Type | Default |
53+ | ------------------- | ----------------------------------------------- | ------------------------------------------------- | ----- --- |
54+ | [ nzBounds] | Specifies resize boundaries. | ` 'window' \| 'parent' \| ElementRef<HTMLElement> ` | ` parent ` |
55+ | [ nzMaxHeight] | Maximum height of resizable element | ` number ` | - |
56+ | [ nzMaxWidth] | Maximum width of resizable element | ` number ` | - |
57+ | [ nzMinHeight] | Minimum height of resizable element | ` number ` | ` 40 ` |
58+ | [ nzMinWidth] | Minimum width of resizable element | ` number ` | ` 40 ` |
59+ | [ nzGridColumnCount] | Number of columns(-1 is not grid) | ` number ` | ` -1 ` |
60+ | [ nzMaxColumn] | Maximum Column | ` number ` | - |
61+ | [ nzMinColumn] | Minimum Column | ` number ` | - |
62+ | [ nzLockAspectRatio] | Lock the aspect ratio based on the initial size | ` boolean ` | ` false ` |
63+ | [ nzPreview] | Enable preview when resizing | ` boolean ` | ` false ` |
64+ | [ nzDisabled] | Disable resize | ` boolean ` | ` false ` |
65+ | (nzResize) | Calls when Resizing | ` EventEmitter<NzResizeEvent> ` | - |
66+ | (nzResizeStart) | Calls when resize start | ` EventEmitter<NzResizeEvent> ` | - |
67+ | (nzResizeEnd) | Calls when resize end | ` EventEmitter<NzResizeEvent> ` | - |
68+
69+ ### nz-resize-handle: standalone
7270
7371Define handles and directions.
7472
@@ -77,12 +75,12 @@ type NzResizeDirection = 'top' | 'right' | 'bottom' | 'left' | 'topRight' | 'bot
7775type NzCursorType = ' window' | ' grid' ;
7876```
7977
80- | Property | Description | Type | Default |
81- | --- | --- | --- | --- |
82- | [ nzDirection] | Set the direction of resizable | ` NzResizeDirection ` | ` 'bottomRight' ` |
83- | [ nzCursorType] | Cursor type for handle | ` NzCursorType ` | ` 'window' ` |
78+ | Property | Description | Type | Default |
79+ | -------------- | ------------------------------ | ------------------- | ------------ --- |
80+ | [ nzDirection] | Set the direction of resizable | ` NzResizeDirection ` | ` 'bottomRight' ` |
81+ | [ nzCursorType] | Cursor type for handle | ` NzCursorType ` | ` 'window' ` |
8482
85- ### nz-resize-handles
83+ ### nz-resize-handles: standalone
8684
8785Simpler way to define handles.
8886
@@ -93,8 +91,8 @@ interface NzResizeHandleOption {
9391}
9492```
9593
96- | Property | Description | Type | Default |
97- | --- | --- | --- | --- |
94+ | Property | Description | Type | Default |
95+ | -------------- | ----------------------------------------- | ----------------------------------------------- | ----------- --- |
9896| [ nzDirections] | Allow handle directions or handle options | ` (NzResizeDirection \| NzResizeHandleOption)[] ` | ALL DIRECTIONS |
9997
10098### Styling
@@ -104,16 +102,16 @@ The Component styles only contain the necessary positional properties and simple
104102- ` .nz-resizable ` The ` nz-resizable ` component namespace
105103- ` .nz-resizable-resizing ` This class name that is added to ` nz-resizable ` while resizing
106104- ` .nz-resizable-preview ` The ghost element's class name when enable preview
107- - ` .nz-resizable-handle-box-hover ` This class name that is added to ` nz-resize-handle ` while mouse hover on ` nz-resizable `
105+ - ` .nz-resizable-handle-box-hover ` This class name that is added to ` nz-resize-handle ` while mouse hover on ` nz-resizable `
108106- ` .nz-resizable-handle ` The ` nz-resize-handle ` component namespace and directions class name
109- * ` .nz-resizable-handle-top `
110- * ` .nz-resizable-handle-left `
111- * ` .nz-resizable-handle-bottom `
112- * ` .nz-resizable-handle-right `
113- * ` .nz-resizable-handle-topRight `
114- * ` .nz-resizable-handle-topLeft `
115- * ` .nz-resizable-handle-bottomRight `
116- * ` .nz-resizable-handle-bottomLeft `
107+ - ` .nz-resizable-handle-top `
108+ - ` .nz-resizable-handle-left `
109+ - ` .nz-resizable-handle-bottom `
110+ - ` .nz-resizable-handle-right `
111+ - ` .nz-resizable-handle-topRight `
112+ - ` .nz-resizable-handle-topLeft `
113+ - ` .nz-resizable-handle-bottomRight `
114+ - ` .nz-resizable-handle-bottomLeft `
117115- ` .nz-resizable-handle-cursor-type ` Cursor type namespace for handle
118- * ` .nz-resizable-handle-cursor-type-window `
119- * ` .nz-resizable-handle-cursor-type-grid `
116+ - ` .nz-resizable-handle-cursor-type-window `
117+ - ` .nz-resizable-handle-cursor-type-grid `
0 commit comments