This commit is contained in:
1ilit 2023-09-19 15:47:51 +03:00
parent 41112a29b8
commit e3bed1d789
3 changed files with 10 additions and 1 deletions

View File

@ -175,6 +175,8 @@ export default function Canvas(props) {
increment: true,
},
],
comment: "",
indices: [],
};
props.setTables((prev) => [...prev, newTable]);
props.setCode((prev) =>

View File

@ -94,6 +94,8 @@ export default function EditorPanel(props) {
increment: true,
},
],
comment: "",
indices: [],
};
props.setTables((prev) => {
const updatedTables = [...prev, newTable];
@ -149,6 +151,8 @@ export default function EditorPanel(props) {
increment: true,
},
],
comment: "",
indices: [],
};
props.setTables((prev) => [...prev, newTable]);
});

View File

@ -75,7 +75,7 @@ export default function Table(props) {
setVisible(false);
};
const height = props.tableData.fields.length * 36 + 40 + 4;
const height = props.tableData.fields.length * 36 + 40 + 4 + 36;
const onCheck = (checkedValues) => {
setField({
@ -281,6 +281,9 @@ export default function Table(props) {
</Popover>
);
})}
<div className="h-[36px] p-2">
{ props.tableData.comment===""? "No comment": props.tableData.comment}
</div>
</div>
</foreignObject>