ps-toolkit-ui 1.8.86 → 1.8.88

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.
@@ -1446,7 +1446,7 @@
1446
1446
  table.rows = res.result.List;
1447
1447
  table.count = res.result.Count;
1448
1448
  if (table.onLoad) {
1449
- table.onLoad(res.result);
1449
+ table.onLoad(res.result.Data);
1450
1450
  }
1451
1451
  if (btn) {
1452
1452
  btn.loading = false;
@@ -5875,7 +5875,11 @@
5875
5875
  _this.inp.value = _this.inp.default;
5876
5876
  };
5877
5877
  this.inp.data = function () {
5878
- return _this.inp.value;
5878
+ var v = _this.inp.value;
5879
+ if (v === null || v === '' || v === undefined) {
5880
+ return null;
5881
+ }
5882
+ return v;
5879
5883
  };
5880
5884
  this.inp.focus = function () {
5881
5885
  _this.onFocusIn();
@@ -6022,7 +6026,7 @@
6022
6026
  };
6023
6027
  this.inp.data = function () {
6024
6028
  var v = _this.inp.value;
6025
- if (v === null || v === '') {
6029
+ if (v === null || v === '' || v === undefined) {
6026
6030
  return null;
6027
6031
  }
6028
6032
  if (v && _this.inp.type === exports.InputType.Number || _this.inp.type === exports.InputType.Price) {