ps-toolkit-ui 0.0.42 → 0.0.43

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.
@@ -5072,6 +5072,7 @@
5072
5072
  this.Condition = Condition;
5073
5073
  this.Accesses = Accesses;
5074
5074
  this.RelatedId = null;
5075
+ this.OnClick = null;
5075
5076
  }
5076
5077
  PermissionClass.prototype.getAccess = function (a) {
5077
5078
  var c = this.Accesses.filter(function (x) { return x.Action === a && x.Type === exports.PermissionTypeEnum.Access; });
@@ -7237,6 +7238,11 @@
7237
7238
  });
7238
7239
  };
7239
7240
  }
7241
+ else if (option.Type === exports.PermissionTypeEnum.OptionIcon && option.OnClick) {
7242
+ opt.onClick = function (btn) {
7243
+ option.OnClick(btn);
7244
+ };
7245
+ }
7240
7246
  this_1.options.push(opt);
7241
7247
  };
7242
7248
  var this_1 = this;