44 */
55
66import { AnimationEvent } from '@angular/animations' ;
7+ import { CdkDrag , CdkDragHandle } from '@angular/cdk/drag-drop' ;
78import { OverlayRef } from '@angular/cdk/overlay' ;
9+ import { NgForOf , NgIf } from '@angular/common' ;
810import {
911 ChangeDetectionStrategy ,
1012 ChangeDetectorRef ,
@@ -25,11 +27,12 @@ import { NzConfigService } from 'ng-zorro-antd/core/config';
2527import { NzDestroyService } from 'ng-zorro-antd/core/services' ;
2628import { NzSafeAny } from 'ng-zorro-antd/core/types' ;
2729import { isNotNil } from 'ng-zorro-antd/core/util' ;
30+ import { NzIconModule } from 'ng-zorro-antd/icon' ;
2831
2932import { FADE_CLASS_NAME_MAP , NZ_CONFIG_MODULE_NAME } from './image-config' ;
3033import { NzImage , NzImagePreviewOptions } from './image-preview-options' ;
3134import { NzImagePreviewRef } from './image-preview-ref' ;
32- import { NzImageUrl , NzImageScaleStep } from './image.directive' ;
35+ import { NzImageScaleStep , NzImageUrl } from './image.directive' ;
3336import { getClientSize , getFitContentPosition , getOffset } from './utils' ;
3437
3538export interface NzImageContainerOperation {
@@ -52,6 +55,7 @@ const NZ_DEFAULT_ROTATE = 0;
5255 selector : 'nz-image-preview' ,
5356 exportAs : 'nzImagePreview' ,
5457 animations : [ fadeMotion ] ,
58+ standalone : true ,
5559 template : `
5660 <div class="ant-image-preview">
5761 <div tabindex="0" aria-hidden="true" style="width: 0; height: 0; overflow: hidden; outline: none;"></div>
@@ -125,6 +129,7 @@ const NZ_DEFAULT_ROTATE = 0;
125129 tabindex : '-1' ,
126130 role : 'document'
127131 } ,
132+ imports : [ NgForOf , NzIconModule , CdkDragHandle , CdkDrag , NgIf ] ,
128133 providers : [ NzDestroyService ]
129134} )
130135export class NzImagePreviewComponent implements OnInit {
0 commit comments