ps-toolkit-ui 1.7.13 → 1.7.16

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.
@@ -4394,23 +4394,23 @@
4394
4394
  var p = s ? s.split('_') : null;
4395
4395
  if (p && p.length === 4) {
4396
4396
  setTimeout(function () {
4397
- _this.part1.value = p[0];
4398
- _this.part2.value = p[1];
4399
- _this.part3.value = p[2];
4400
- _this.part4.value = p[3];
4397
+ _this.part1.setValue(p[0], false);
4398
+ _this.part2.setValue(p[1], false);
4399
+ _this.part3.setValue(p[2], false);
4400
+ _this.part4.setValue(p[3], false);
4401
4401
  }, 100);
4402
4402
  }
4403
4403
  else if (p && p.length === 2) {
4404
4404
  setTimeout(function () {
4405
- _this.part1.value = p[0];
4406
- _this.part3.value = p[1];
4405
+ _this.part1.setValue(p[0], false);
4406
+ _this.part3.setValue(p[1], false);
4407
4407
  }, 100);
4408
4408
  }
4409
4409
  else {
4410
- _this.part1.value = '';
4411
- _this.part2.value = '';
4412
- _this.part3.value = '';
4413
- _this.part4.value = '';
4410
+ _this.part1.setValue('', false);
4411
+ _this.part2.setValue('', false);
4412
+ _this.part3.setValue('', false);
4413
+ _this.part4.setValue('', false);
4414
4414
  }
4415
4415
  };
4416
4416
  this.inp.focus = function () {
@@ -5861,6 +5861,10 @@
5861
5861
  var _this = this;
5862
5862
  this.inp.setValue = function (v) {
5863
5863
  _this.inp.value = v != null ? v.toString() : '';
5864
+ _this.cValue = _this.inp.value;
5865
+ console.log(_this.inp.name);
5866
+ console.log(_this.cValue);
5867
+ console.log(_this.inp.value);
5864
5868
  };
5865
5869
  this.inp.focus = function (changeIndex) {
5866
5870
  if (changeIndex === void 0) { changeIndex = false; }
@@ -5991,6 +5995,9 @@
5991
5995
  this.inp.onKeyUp(this.inp);
5992
5996
  }
5993
5997
  if (this.inp.onChange) {
5998
+ console.log(this.cValue);
5999
+ console.log(e.target.value);
6000
+ console.log(this.cValue !== e.target.value);
5994
6001
  if (this.cValue !== e.target.value) {
5995
6002
  this.inp.onChange(e.target.value);
5996
6003
  this.cValue = e.target.value;