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/dist/index.cjs.js +185 -185
- package/dist/index.es.js +13338 -13338
- package/package.json +1 -1
- package/src/components/field/table/drag-head.jsx +2 -1
- package/src/components/field/table/index.jsx +4 -0
package/package.json
CHANGED
@@ -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()));
|