Z F 7 жил өмнө
parent
commit
1f943c6bf9
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      src/lib/dragact.tsx

+ 3 - 0
src/lib/dragact.tsx

@@ -262,6 +262,9 @@ export class Dragact extends React.Component<DragactProps, DragactState> {
     }
 
     componentWillReceiveProps(nextProps: any) {
+        if(nextProps.children.length !== this.props.children.length){
+            
+        }
 
         const layout = getDataSet(nextProps.children);
         let newlayout = correctLayout(layout, this.props.col)