소스 검색

判断添加的逻辑

Z F 7 년 전
부모
커밋
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)