import React from 'react'; // Group 实例透传 const GroupContext = React.createContext(null); GroupContext.displayName = 'GroupContext'; export function withGroupContext(Component) { const Com = React.forwardRef((props: T, ref) => { return ( {ctx => } ); }) Com.displayName = Component.name; return Com; }; export default GroupContext;