Skip to content

Commit

Permalink
feat(react): support placeholder to DroppableWidget
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Oct 23, 2021
1 parent e257e72 commit 79ae6d1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/react/src/widgets/DroppableWidget/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,14 @@ export const DroppableWidget: React.FC<IDroppableWidgetProps> = observer(
const hasChildren = target.children?.length > 0
return (
<div {...nodeId} className={className} style={style}>
{hasChildren && !placeholder ? (
{hasChildren ? (
props.children
) : (
) : placeholder ? (
<div style={{ height }} className="dn-droppable-placeholder">
<NodeTitleWidget node={target} />
</div>
) : (
props.children
)}
{actions?.length ? (
<NodeActionsWidget>
Expand Down

0 comments on commit 79ae6d1

Please sign in to comment.