Browse Source

判断添加的逻辑

Z F 7 năm trước cách đây
mục cha
commit
1f943c6bf9
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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)