Skip to content

Commit

Permalink
fix: 修复单元格中直接放表单项 name 为带路径的变量时值修改不符合预期的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
2betop committed Jan 24, 2024
1 parent 0c59ce4 commit 36386c8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions packages/amis/src/renderers/Table/TableRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
RendererEvent,
RendererProps,
autobind,
setVariable,
traceProps
} from 'amis-core';
import {Action} from '../Action';
Expand Down Expand Up @@ -157,15 +158,10 @@ export class TableRow extends React.PureComponent<
}

const {item, onQuickChange} = this.props;
const data: any = {};
setVariable(data, name, value);

onQuickChange?.(
item,
{
[name]: value
},
submit,
changePristine
);
onQuickChange?.(item, data, submit, changePristine);
}

render() {
Expand Down

0 comments on commit 36386c8

Please sign in to comment.