0.2.39 • Published 10 months ago
oss-web-common v0.2.39
oss-web-common
- 安装
yarn install
- 启动
yarn start
- 调试
yalc publish //在oss-web-common中需要执行,将包推到全局
yalc push //在oss-web-common中需要执行,将更新的依赖推送到应用项目中
// 在需要调试的项目中进行以下操作
yalc add oss-web-common //在需要引入oss-web-common的项目中执行,将包依赖通过file形式加入到项目中
yalc remove --all //在使用yalc依赖的项目中 移除依赖
注意
需要在start之后publish, 最终指向的文件在package.json中main字段指定
{
"main": "./dist/oss-web-common.umd.js",
}
List
createWebService
用于创建proxy实例的方法,需要传入config
enmus
包含EnumClass、EnumItemClass、rebuild
router
包含Route, Switch, mapRoutes, buildRoutes
sqlServices
用于sql下沉
ErrorBoundary
错误页组件
getMicroUrl
获取微应用url
PageContainer
PageContainer组件
locales
国际化组件
useEnviroment
动态加载配置文件hook 接受参数
configPath
为配置文件路径
0.2.39
10 months ago