lu-lowcode-package-form 0.11.59 → 0.11.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lu-lowcode-package-form",
3
- "version": "0.11.59",
3
+ "version": "0.11.60",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -12,11 +12,12 @@ const DragHead = ({ childrenDesc, initialWidth, changeWidth, showAction, showLab
12
12
  const startPositionRef = useRef(0)
13
13
 
14
14
  useEffect(()=>{
15
+ console.log("DragHead initialWidth", initialWidth)
15
16
  if(Array.isArray(initialWidth) && !_.isEqual(initialWidth, headWidths)){
16
17
  setHeadWidths(initialWidth)
17
18
  }
18
19
  },[initialWidth])
19
-
20
+
20
21
  const getColumnWidth = (index) => {
21
22
  return headWidths[index] || 150
22
23
  }
@@ -55,6 +55,10 @@ const Table = ({ children, onTableAddRow, disabled, readonly, onTableRemoveRow,
55
55
  }
56
56
  }, [props])
57
57
 
58
+ useEffect(()=>{
59
+ console.log("Table headWidths", headWidths)
60
+ },[headWidths])
61
+
58
62
  const [headWidths, setHeadWidths] = useState([])
59
63
  const tableComponentId = props.componentId || props.__id
60
64
  const newidRefs = useRef(React.Children.map(children, () => nanoid()));