atr-components 0.2.300 → 0.2.301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3573,7 +3573,16 @@ class UploadComponent {
3573
3573
  delImg(numer) {
3574
3574
  console.log(numer);
3575
3575
  this.opts.imageList = this.opts.imageList.filter((v, i) => i != numer);
3576
- // this.opts.imageList = numer
3576
+ let fileUrls = [];
3577
+ for (let file of this.opts.imageList) {
3578
+ if (file["key"] != undefined) {
3579
+ fileUrls.push(file["key"]);
3580
+ continue;
3581
+ }
3582
+ if (file.originFileObj && file.originFileObj["key"] != undefined)
3583
+ fileUrls.push(file.originFileObj["key"]);
3584
+ }
3585
+ this.afterChange.emit({ key: this.opts.key, values: fileUrls.join(",") });
3577
3586
  }
3578
3587
  priviewImg(img) {
3579
3588
  let url = ToolsUtil.getOssUrl(this.getImgUrl(img));