ps-toolkit-ui 1.16.28 → 1.16.29

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.
@@ -6205,7 +6205,21 @@
6205
6205
  this.inp.onChange(this.inp, isEdit);
6206
6206
  }
6207
6207
  console.log(this.inp, this.inp.rel, 'this.inp.rel');
6208
- this.clearRel(this.inp, v);
6208
+ // this.clearRel(this.inp, v);
6209
+ if (this.inp.rel) {
6210
+ this.inp.rel.value = null;
6211
+ this.inp.rel.search = '';
6212
+ this.inp.rel.options = [];
6213
+ if (v !== null) {
6214
+ this.inp.rel.url = this.inp.relUrl.replace('{}', this.inp.value);
6215
+ if (this.inp.rel.type !== exports.InputType.SelectAutoComplete) {
6216
+ this.inp.rel.load();
6217
+ }
6218
+ else {
6219
+ this.inp.rel.url += '_{}';
6220
+ }
6221
+ }
6222
+ }
6209
6223
  if (!isEdit && !this.inp.multiple) {
6210
6224
  this.cI('Tab');
6211
6225
  }