You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello @wushuxuan, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!
Import { Component } from '@angular/core';
Import { UploadFile } from 'ng-zorro-antd';
@component({
Selector: 'app-image-picker',
Template:
Styles: [
i[nz-icon] { Font-size: 32px; Color: #999; } .ant-upload-text { Margin-top: 8px; Color: #666; }
]
})
Export class ImagePickerComponent {
showUploadList = {
showPreviewIcon: true,
showRemoveIcon: true,
hidePreviewIconInNonImage: true
};
fileList: UploadFile[] = [];
previewImage: string | undefined = '';
previewVisible = false;
Constructor() { }
beforeUpload = (file: UploadFile, ) => {
this.fileList = this.fileList.concat(file);
Return false;
}
handlePreview = (file: UploadFile) => {
this.previewImage = file.url || file.thumbUrl;
this.previewVisible = true;
};
}
The text was updated successfully, but these errors were encountered: