ps-toolkit-ui 1.5.53 → 1.5.56

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.
@@ -1229,6 +1229,7 @@
1229
1229
  RequestClass.prototype.postForm = function (form, onSubmit) {
1230
1230
  var e_1, _a, e_2, _b;
1231
1231
  if (onSubmit === void 0) { onSubmit = null; }
1232
+ console.log('postForm');
1232
1233
  if (!form.check()) {
1233
1234
  return;
1234
1235
  }
@@ -1362,6 +1363,7 @@
1362
1363
  };
1363
1364
  RequestClass.prototype.table = function (table, btn) {
1364
1365
  if (btn === void 0) { btn = null; }
1366
+ console.log('table');
1365
1367
  if (table.searchForm && !table.searchForm.check()) {
1366
1368
  return;
1367
1369
  }
@@ -1430,6 +1432,7 @@
1430
1432
  if (btn === void 0) { btn = null; }
1431
1433
  if (success === void 0) { success = null; }
1432
1434
  if (failure === void 0) { failure = null; }
1435
+ console.log('send');
1433
1436
  if (btn) {
1434
1437
  if (btn.loading) {
1435
1438
  return;
@@ -1671,6 +1674,7 @@
1671
1674
  };
1672
1675
  FormClass.prototype.data = function (d) {
1673
1676
  if (d === void 0) { d = null; }
1677
+ console.log(this.inputs, 'this.inputs');
1674
1678
  if (this.inputs.findIndex(function (x) { return x.type === exports.InputType.File; }) === -1) {
1675
1679
  if (d == null) {
1676
1680
  d = {};
@@ -1680,13 +1684,16 @@
1680
1684
  if (vl !== null) {
1681
1685
  if (d[inp.name] === undefined) {
1682
1686
  _.set(d, inp.name, vl);
1687
+ console.log(d, inp.name, vl, 'undefined');
1683
1688
  }
1684
1689
  else {
1685
1690
  if (d[inp.name] instanceof Array) {
1686
1691
  d[inp.name].push(vl);
1692
+ console.log(d, inp.name, vl, 'instanceof Array');
1687
1693
  }
1688
1694
  else {
1689
1695
  d[inp.name] = [d[inp.name], vl];
1696
+ console.log(d, inp.name, vl, 'instanceof obj');
1690
1697
  }
1691
1698
  }
1692
1699
  }