Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(table): the linkage between editable table editing components es not take effect #2572

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/table/_example/editable-row.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default function EditableRowTable() {
// 以下内容应用于全量数据校验(单独的行校验不需要)
if (openCheckAll) {
data[rowIndex] = editedRow;
setData(data);
setData([...data]);
}
};

Expand Down Expand Up @@ -200,8 +200,8 @@ export default function EditableRowTable() {
{ label: '宣传物料制作费用', value: '宣传物料制作费用' },
{ label: 'algolia 服务报销', value: 'algolia 服务报销' },
// 如果状态选择了 已过期,则 Letters 隐藏 G 和 H
{ label: '相关周边制作费', value: '相关周边制作费', show: () => editedRow.status !== 0 },
{ label: '激励奖品快递费', value: '激励奖品快递费', show: () => editedRow.status !== 0 },
{ label: '相关周边制作费', value: '相关周边制作费', show: () => editedRow.status !== 1 },
{ label: '激励奖品快递费', value: '激励奖品快递费', show: () => editedRow.status !== 1 },
].filter((t) => (t.show === undefined ? true : t.show())),
}),
showEditIcon: false,
Expand Down
Loading