@pdg/react-table 1.0.52 → 1.0.54

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/dist/index.js CHANGED
@@ -2900,13 +2900,6 @@ var TableBodyCell = function (_a) {
2900
2900
  }
2901
2901
  // eslint-disable-next-line react-hooks/exhaustive-deps
2902
2902
  }, [checked]);
2903
- React.useEffect(function () {
2904
- if (column.type === 'check') {
2905
- setItemColumnChecked(item, column, checked);
2906
- column.onCheckChange && column.onCheckChange(item, checked);
2907
- }
2908
- // eslint-disable-next-line react-hooks/exhaustive-deps
2909
- }, [checked]);
2910
2903
  React.useEffect(function () {
2911
2904
  if (column.type === 'check') {
2912
2905
  setItemColumnCheckDisabled(item, column, checkDisabled);
@@ -3255,7 +3248,12 @@ var native = {
3255
3248
  return (_b = column.head) === null || _b === void 0 ? void 0 : _b.onRender();
3256
3249
  }
3257
3250
  else {
3258
- return column.label;
3251
+ if (typeof column.label === 'string') {
3252
+ return React.createElement("div", { dangerouslySetInnerHTML: { __html: column.label } });
3253
+ }
3254
+ else {
3255
+ return column.label;
3256
+ }
3259
3257
  }
3260
3258
  }
3261
3259
  }, [checkDisabled, checked, column, onCheckChange]);