Skip to content

Commit

Permalink
fix(table): fix editable table bug
Browse files Browse the repository at this point in the history
  • Loading branch information
uyarn committed Dec 26, 2024
1 parent e8d29df commit 031fff8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/table/primary-table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default defineComponent({
onRuleChange,
clearValidateData,
onUpdateEditedCell,
// getEditRowData,
getEditRowData,
onPrimaryTableCellEditChange,
} = useEditableRow(props);

Expand Down Expand Up @@ -274,11 +274,12 @@ export default defineComponent({
item.cell = (h, p: PrimaryTableCellParams<TableRowData>) => {
const cellProps: EditableCellProps = {
...p,
row: getEditRowData(p),
oldCell,
rowKey: props.rowKey || 'id',
tableBaseClass,
cellEmptyContent: props.cellEmptyContent,
onChange: props.onRowEdit,
onChange: onEditableCellChange,
onValidate: props.onRowValidate,
onRuleChange,
onEditableChange: onPrimaryTableCellEditChange,
Expand Down

0 comments on commit 031fff8

Please sign in to comment.