:bug: revert to class component to avoid ref warning
:bug: revert to class component to avoid ref warning

close #18707

icaife/ant-design,elevensky/ant-design,zheeeng/ant-design,ant-design/ant-design,elevensky/ant-design,elevensky/ant-design,zheeeng/ant-design,zheeeng/ant-design,icaife/ant-design,ant-design/ant-design,zheeeng/ant-design,icaife/ant-design,ant-design/ant-design,elevensky/ant-design,ant-design/ant-design,icaife/ant-design