pro-components
pro-components copied to clipboard
🐛[BUG] Can not find FormContext. Please make sure you wrap Field under Form
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
🐛 bug 描述
Can not find FormContext. Please make sure you wrap Field under Form.
📷 复现步骤
<ProList
style={{ height: "600px", overflowY: "auto" }}
rowKey="ID"
dataSource={companyData}
tableAlertRender={false}
rowSelection={{
type: "radio",
}}
metas={{
title: {
dataIndex: 'Name',
},
actions: {
render: (text, row, index, action) => [
<a
onClick={() => {
action?.startEditable(row.ID);
}}
key="link"
>
编辑
</a>,
],
},
}}
>
</ProList>
🏞 期望结果
💻 复现代码
© 版本信息
- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 MACOS
🚑 其他信息
点击编辑后触发错误