const YourComponent = React.forwardRef((props, ref) => { ... }); export default injectIntl(YourComponent, { withRef: true }); 在这个示例中,我们传入了`{ withRef: true }`作为`options`参数。这样,当我们使用`<YourComponent ref={ref} />`时,`YourComponent`组件将会接收到一个`ref`属性,并...
失去了react组件引用EN在用injectIntl包装React组件之后,让ref到func有一个问题。基本上,我需要的是通过...