Skip to content

Commit

Permalink
docs(table): the linkage between editable table editing components do…
Browse files Browse the repository at this point in the history
…es not take effect (#2572)
  • Loading branch information
HaixingOoO authored Oct 30, 2023
1 parent 5056e03 commit 14146d5
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 14146d5

Please sign in to comment.