Releases: NSFI/react-router-manage
Releases · NSFI/react-router-manage
v2.0.4
expose navigate method by call defineRouterConfig function
You may need to call route jumps outside of React applications
For example: Global registration of sub applications in qiankun.js
import { registerMicroApps } from 'qiankun';
import { defineRouterConfig, MRouter} from 'react-router-manage'
const routerConfig = defineRouterConfig({
...
}}
registerMicroApps(
[
{
name: 'app1',
entry: '//localhost:8080',
container: '#container',
activeRule: '/react',
props: {
navigate: (url) => {
// This type of jump can also have routes guards, query and params extension,
routerConfig.navigate(url);
},
},
},
]
);
const App = () => {
// After initialization here, we will assign the value of routerConfig.navigation
return <MRouter routerConfig={routerConfig} />
}
v2.0.3
release v2.0
@rrmc/antd-breadcrumbs:Automatically generate breadcrumbs by routes configuration
release v1.1.4
- core add permissionMode
parentandchildrensupports permission - remove routesMap's paramsRoutesMap and flattenRoutes property
- inputRoutes change add to MRouterContext
v1.1.4-beta.0
- core add permissionMode
parentandchildrensupports permission
v1.1.4-beta.1
- remove routesMap's paramsRoutesMap and flattenRoutess property
v1.1.3
v1.1.2
v1.1.2-beta.0
- When configuring sub routes, the
pathcan be empty