Skip to content

Commit c322794

Browse files
committed
fix: renderHeTree type
1 parent df2cb47 commit c322794

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/HeTree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ export function useHeTree<T extends Record<string, any>>(
637637
const { visibleIds, attrsList, onDragOverRoot, onDropToRoot, onDragEndOnRoot } = cacheForVisible
638638
const persistentIndices = useMemo(() => draggingStat ? [visibleIds.indexOf(draggingStat.id)] : [], [draggingStat, visibleIds]);
639639
// render
640-
const renderHeTree = (options?: { className?: string, style?: React.CSSProperties }) => {
640+
const renderHeTree = (options?: { className?: string, style?: React.CSSProperties }): ReactNode => {
641641
let renderNodeBox = props.renderNodeBox!
642642
if (!renderNodeBox) {
643643
const placeholder = <div className="he-tree-drag-placeholder" style={{ minHeight: '20px', border: '1px dashed blue' }}></div>

0 commit comments

Comments
 (0)