edit
This commit is contained in:
@ -98,6 +98,17 @@ export class DynamicSettingH5Component implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
nzPreview = (file: NzUploadFile) => {
|
||||
this.showImg(file.url);
|
||||
};
|
||||
nzRemove = (file: NzUploadFile) => {
|
||||
const config = this.configList.find((c: any) => c.id === file.uid);
|
||||
if (config) {
|
||||
config.itemValue = '';
|
||||
}
|
||||
return true;
|
||||
};
|
||||
|
||||
showImg(url: any) {
|
||||
this.nzImageService.preview([{ src: url }]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user