ps-toolkit-ui 0.0.69 → 0.0.70

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.
@@ -3284,6 +3284,7 @@
3284
3284
  };
3285
3285
  };
3286
3286
  FormDateComponent.prototype.setInpValue = function (v) {
3287
+ console.log(typeof v, 'typeof vtypeof vtypeof vtypeof v');
3287
3288
  if (v === null) {
3288
3289
  this.inp.clear();
3289
3290
  return;
@@ -3292,9 +3293,12 @@
3292
3293
  var d = parseInt(v.substring(6, v.length - 2), 10);
3293
3294
  this.active = moment__namespace(d);
3294
3295
  }
3295
- else {
3296
+ else if (typeof v === 'number') {
3296
3297
  this.active = moment__namespace(v);
3297
3298
  }
3299
+ else {
3300
+ this.active = v;
3301
+ }
3298
3302
  this.inp.value = this.active.format('jYYYY/jMM/jDD');
3299
3303
  this.inp.search = this.active.format('jYYYY/jMM/jDD');
3300
3304
  this.setDate();