lu-lowcode-package-form 0.11.62 → 0.11.64

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.62",
3
+ "version": "0.11.64",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
package/src/App.jsx CHANGED
@@ -608,7 +608,7 @@ function App() {
608
608
 
609
609
  ]} label="子表填充数据源" __id="fill_datasource1" />
610
610
  <Layout.FormRow layout={'1'}>
611
- <Field.Table label="测试主子表填充" __id="table_fill" isAllowAdd={true} isAllowCopy={true} >
611
+ <Field.Table label="测试主子表填充" __id="table_fill" isAllowAdd={true} isAllowCopy={true} columnsWidth={[100,200,300,400,500,600,700,800,900,1000]}>
612
612
  <Field.Number label="税率" __id="fill_shuilv"
613
613
  />
614
614
  <Field.Input label="含税单价代理中转" __id="fill_xianghu4"
@@ -2,6 +2,7 @@ import React, { useRef, useState, useEffect } from "react"
2
2
  import { eventEmitter } from "../../../utils/events"
3
3
  import { createPortal } from "react-dom"
4
4
  import { Resizable } from "react-resizable"
5
+ import _ from "lodash"
5
6
 
6
7
  const DragHead = ({ childrenDesc, initialWidth, changeWidth, showAction, showLabel = false, showBorder=false, ...props }) => {
7
8
  const [headWidths, setHeadWidths] = useState([])
@@ -15,6 +16,7 @@ const DragHead = ({ childrenDesc, initialWidth, changeWidth, showAction, showLab
15
16
  console.log("DragHead initialWidth", initialWidth)
16
17
  if(Array.isArray(initialWidth) && !_.isEqual(initialWidth, headWidths)){
17
18
  setHeadWidths(initialWidth)
19
+ headWidthsRef.current = initialWidth
18
20
  }
19
21
  },[initialWidth])
20
22
 
@@ -6,6 +6,7 @@ import { nanoid } from "nanoid";
6
6
  import { eventEmitter } from '../../../utils/events'
7
7
  import { useMemoizedFn } from 'ahooks';
8
8
  import DragHead from "./drag-head"
9
+ import _ from "lodash"
9
10
 
10
11
  const TableAction = ({ label, subTableIndex, children, subTableHead = false, ...props }) => {
11
12
  //fsticky fright-0