lu-lowcode-package-form 0.10.44 → 0.10.45
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.cjs.js +234 -234
- package/dist/index.es.js +17083 -17081
- package/package.json +1 -1
- package/src/App.jsx +1 -1
- package/src/components/field/table/index.jsx +1 -1
package/package.json
CHANGED
package/src/App.jsx
CHANGED
@@ -260,7 +260,7 @@ function App() {
|
|
260
260
|
<Field.Number label="测试规则" isRequired={true} __id="ceshi_rule1" />
|
261
261
|
</Layout.FormRow>
|
262
262
|
<Layout.FormRow layout={'1'}>
|
263
|
-
<Field.Table label="子表格" __id="table2" >
|
263
|
+
<Field.Table label="子表格" __id="table2" isAllowCopy={true} >
|
264
264
|
<Field.Number label="测试规则2" __id="ceshi_rule2" />
|
265
265
|
</Field.Table>
|
266
266
|
</Layout.FormRow>
|
@@ -30,7 +30,7 @@ const TableCol = ({ children, width, hidden, ...props }) => {
|
|
30
30
|
</div>
|
31
31
|
}
|
32
32
|
|
33
|
-
const Table = ({ children, onTableAddRow, disabled, readonly, onTableRemoveRow, form, fieldName, initializeFormRender, recordFieldsChange, mode, isAllowCopy=
|
33
|
+
const Table = ({ children, onTableAddRow, disabled, readonly, onTableRemoveRow, form, fieldName, initializeFormRender, recordFieldsChange, mode, isAllowCopy=false, isAllowAdd=true, ...props }) => {
|
34
34
|
useEffect(() => {
|
35
35
|
// console.log("Table form reload", form)
|
36
36
|
}, [form])
|