ant-design / ant-design/pro-components

🧐[问题]protable的columns中,每列的render方法的action参数的reload方法,不会触发其他column的request执行。

Open
#8,714 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

{
title: '年份',
dataIndex: 'year',
valueType: 'select',
request: () => {
console.log('获取年份');
return GetBreedValueYearList();
},
{
title: '操作',
hideInSearch: true,
render(_, record, _index, action) {
return (

{
action?.reload();
}}
/>


);
},
}
protable的columns中,每列的render方法的action参数的reload方法,不会触发其他column的request执行,需要换成 action?.reset?.();才会打印“获取年份”

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue with the shown ProTable columns: the year column's request logs “获取年份”, while the action column calls action?.reload() or action?.reset?.(). Start from the ProTable column render action and compare these two methods; done means the intended reload behavior for other column requests is established and works consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.