货主管理
This commit is contained in:
23
src/app/shared/components/imagelist/imagelist.component.ts
Normal file
23
src/app/shared/components/imagelist/imagelist.component.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { ModalHelper, _HttpClient } from '@delon/theme';
|
||||
import { NzMessageService } from 'ng-zorro-antd/message';
|
||||
import { ImageViewComponent } from './imageview/imageview.component';
|
||||
|
||||
@Component({
|
||||
selector: 'app-imagelist',
|
||||
templateUrl: './imagelist.component.html',
|
||||
styleUrls: ['./imagelist.less'],
|
||||
})
|
||||
export class ImageListComponent implements OnInit {
|
||||
@Input() imgList: any = [];
|
||||
constructor(private modal: ModalHelper, public msgSrv: NzMessageService, public http: _HttpClient) {}
|
||||
|
||||
ngOnInit(): void {}
|
||||
showImg(index: any) {
|
||||
const params = {
|
||||
imgList: this.imgList,
|
||||
index,
|
||||
};
|
||||
this.modal.create(ImageViewComponent, { params }).subscribe((res) => {});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user