ps-toolkit-ui 0.0.173 → 0.0.177

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.
@@ -2739,12 +2739,11 @@
2739
2739
  });
2740
2740
  };
2741
2741
  }
2742
- else {
2743
- if (option.OnClick) {
2744
- opt.onClick = function (btn) {
2745
- option.OnClick(btn);
2746
- };
2747
- }
2742
+ else if (option.InputAction === exports.PermissionInputActionEnum.OnClick) {
2743
+ opt.onClick = function (btn) {
2744
+ console.log(btn, 11111111);
2745
+ _this.table.optionsActions.find(function (x) { return x.name === option.Action; }).onClick(_this.row.Data);
2746
+ };
2748
2747
  }
2749
2748
  opts.push(opt);
2750
2749
  };
@@ -3016,9 +3015,6 @@
3016
3015
  _this.setSortable();
3017
3016
  };
3018
3017
  }
3019
- if (this.table.hasChildren && this.table.form) {
3020
- this.table.form.inputs.push(new InputClass(this.table.environment, this.table.l, 'ParentId', null, exports.InputType.Hidden, null, null, false));
3021
- }
3022
3018
  this.table.set(this.changeRows);
3023
3019
  if (this.table.searchForm) {
3024
3020
  this.table.searchForm.displayLabel = false;