The paramsName of the modal box is changed to'i' in delon.module.ts. Is it a bug??

since the last question could not fully describe my question, I hope the color card can help me answer it again.

< H2 > whether the following question is a bug? < / H2 >

Note: (since the first answer to the previous question was the existence of this bug, but then modified the answer to delete the answer to the existence of bug and changed it to the interpretation of record and I, I understand the explanation of record and I, I want to know whether the following question is a bug? )

the problem is as follows:
the problem found when creating a new CRUD page.
in edit.component.ts

in ngOninit ()
export class PersonalEdit3Component implements OnInit {
  record: any = {};
  i: any;
  .....
  .....
  ngOnInit(): void {
    if (this.record.id > 0)
    this.http.get(`/user/${this.record.id}`).subscribe(res => (this.i = res));
  }
  .....
}

this.record.id means for undefined, that record did not receive the passed parameters correctly, while this.i accepted the passed parameters. Instead of receiving variables on this page, record is received by I.
Note: I is used to represent the complete data, while record is simply used to receive intermediate storage variables passed in the originating mode.
after debugging, it is found that the default paramsName in modal is" record",. The specific code is as follows:

this.modal = {
        paramsName: "record",
        size: "lg",
        exact: true,
    };
//table.js    145-149

but change the default paramsName to "iTunes" in delon.module.ts. The specific code is:

export function fnSTConfig(): STConfig {
  return Object.assign(new STConfig(), <STConfig>{
    modal: { paramsName: "i", size: "lg" },
  });
}
//delon.module.ts

whether the above question is a bug?
Don"t hesitate to give advice and accept criticism with an open mind.

Sep.27,2021
Menu