pixel-react 1.6.1 → 1.6.2

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.
@@ -19,7 +19,7 @@ export interface TreeTableProps {
19
19
  treeData: any;
20
20
  columnsData: Column[];
21
21
  selected?: string[];
22
- select?: 'radio' | 'checkbox' | null;
22
+ select?: 'radio' | 'checkbox' | 'none';
23
23
  onChange?: (nodes: string[]) => void;
24
24
  onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
25
25
  expandedNodes: string[];
package/lib/index.d.ts CHANGED
@@ -1531,7 +1531,7 @@ interface TreeTableProps {
1531
1531
  treeData: any;
1532
1532
  columnsData: Column[];
1533
1533
  selected?: string[];
1534
- select?: 'radio' | 'checkbox' | null;
1534
+ select?: 'radio' | 'checkbox' | 'none';
1535
1535
  onChange?: (nodes: string[]) => void;
1536
1536
  onClick?: (e: React.MouseEvent<HTMLDivElement>, row: TreeNode) => void;
1537
1537
  expandedNodes: string[];
package/lib/index.esm.js CHANGED
@@ -2799,7 +2799,7 @@ const Select$1 = ({
2799
2799
  })]
2800
2800
  }), errorMsg && jsx(Typography, {
2801
2801
  as: "div",
2802
- lineHeight: "12px",
2802
+ lineHeight: "15px",
2803
2803
  fontSize: 10,
2804
2804
  color: "var(--error_light)",
2805
2805
  className: "ff-select-error-msg",
@@ -9205,7 +9205,7 @@ const TableBody = /*#__PURE__*/React__default.memo(({
9205
9205
  node,
9206
9206
  level
9207
9207
  }) => {
9208
- const isExpanded = expandedNodes.includes(node.id);
9208
+ const isExpanded = expandedNodes.includes(node?.id);
9209
9209
  return jsx(TableRow, {
9210
9210
  node: node,
9211
9211
  level: level,
@@ -9230,7 +9230,7 @@ const TreeTable = ({
9230
9230
  expandedNodes = [],
9231
9231
  onExpand
9232
9232
  }) => {
9233
- const handleToggleExpand = useCallback(node => onExpand?.(!expandedNodes.includes(node.id), node.id), [expandedNodes, onExpand]);
9233
+ const handleToggleExpand = useCallback(node => onExpand?.(!expandedNodes.includes(node?.id), node?.id), [expandedNodes, onExpand]);
9234
9234
  const handleCheckBoxChange = useCallback((type, node) => {
9235
9235
  const nodeId = node.id;
9236
9236
  if (type === 'radio') {