Uncaught TypeError: can't access property "newAgStackInstance", compDetails is undefined
Uncaught TypeError: can't access property "newAgStackInstance", compDetails is undefined
const defaultColDef = useMemo(() => {
return {
menuTabs: ["generalMenuTab"],
editable: true,
sortable: true,
flex: 1,
minWidth: 100,
filter: true,
resizable: true,
//This is the erroneous part
headerComponent: CustomHeader,
};
}, []);
此语法是否已弃用?我在互联网上找不到与此相关的任何内容。
提前致谢。
您需要将 headerComponent
替换为 headerComponentFramework
。我猜他们的文档刚刚过时
const defaultColDef = useMemo(() => {
return {
menuTabs: ["generalMenuTab"],
editable: true,
sortable: true,
flex: 1,
minWidth: 100,
filter: true,
resizable: true,
//This is the erroneous part
headerComponent: CustomHeader,
};
}, []);
此语法是否已弃用?我在互联网上找不到与此相关的任何内容。
提前致谢。
您需要将 headerComponent
替换为 headerComponentFramework
。我猜他们的文档刚刚过时