yungu-global-util
v1.0.5
Published
## import { HeadUtil, SiderUtil } from 'yungu-global-util';
Downloads
7
Keywords
Readme
npm install yungu-global-util --save
import { HeadUtil, SiderUtil } from 'yungu-global-util';
语言切换方法
switchLanguage = (lang) => {
this.props.dispatch({
type: 'global/checkLange',
payload: {
languageCode: lang
}
});
}
个人设置模块
<HeadUtil
user = { object }
ifSubpage = { boolean }
isMobile = { boolean }
switchLanguage = { function }
title = { string }
isShowSearchInput = { boolean }
isShowSwitchLanguage = { boolean }
/>
##侧边栏模块