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.
- package/bundles/ps-toolkit-ui.umd.js +5 -1
- package/bundles/ps-toolkit-ui.umd.js.map +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js +1 -1
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/form/date/form.date.component.js +6 -2
- package/fesm2015/ps-toolkit-ui.js +5 -1
- package/fesm2015/ps-toolkit-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -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();
|