import { QueryLang } from '../ql' ; import { isArray , isString } from '../type' ; param WrappedComponent export const getDisplayName = WrappedComponent => WrappedComponent . displayName || WrappedComponent . name || 'Component' ; /**
 * 判断Relax组件是不是需要订阅store的状态变化
 * 如果relaxprops注入的值全是事件或者viewAction就不去订阅
 */ export const isNeedRxStoreChange = ( relaxProps ) : boolean => { for ( let prop in relaxProps ) { const propValue = relaxProps [ prop ] ; if ( ( isString ( propValue ) && prop !== 'viewAction' ) || isArray ( propValue ) || propValue instanceof QueryLang ) { return true ; } } return false ; } ;