ant-design / pro-components

🏆 Use Ant Design like a Pro!
https://pro-components.antdigital.dev
MIT License
4.31k stars 1.36k forks source link

🐛[BUG] pro-layout 报警告 findDOMNode is deprecated and will be removed in the next major release. #8686

Open rongxingsun opened 2 months ago

rongxingsun commented 2 months ago

ActionsContent.js

children: /#PURE/_jsx(ResizeObserver, { onResize: function onResize(_ref3) { var width = _ref3.width; setRightSizeDebounceFn.run(width); }, children: contentRender ? /#PURE/_jsx("div", { style: { display: 'flex', alignItems: 'center', height: '100%', justifyContent: 'flex-end' }, children: contentRender(_objectSpread(_objectSpread({}, props), {}, { // 测试专用 //@ts-ignore rightContentSize: rightSize })) })

pageHeader/index.js

return wrapSSR( /#PURE/_jsx(ResizeObserver, { onResize: onResize, children: /#PURE/_jsxs("div", { className: className, style: style, children: [breadcrumbDom, title, childDom, footerDom] }) }));

github-actions[bot] commented 2 months ago

以下的 Issues 可能会帮助到你 / The following issues may help you

resetsix commented 2 weeks ago

see https://github.com/ant-design/pro-components/discussions/8837