This commit is contained in:
rizrmd 2024-07-17 11:14:41 +00:00
parent 77a9c46425
commit e255c16baf
1 changed files with 5 additions and 5 deletions

View File

@ -144,13 +144,13 @@ export const TableEdit: FC<{
}}
fm_parent={parent}
ext_fm={{
idx: props.rowIdx,
change: () => {},
remove: () => {
console.log(props);
// fm.data[name] = tbl.data.filter(
// (e: any) => e !== props.row
// );
// fm.render();
fm.data[name] = tbl.data.filter(
(e: any) => e !== props.row
);
fm.render();
},
add: (e: any) => {
tbl.data.push(e ? e : {});