2.0.2 • Published 7 months ago

san-router v2.0.2

Weekly downloads
88
License
MIT
Repository
github
Last release
7 months ago

san-router

NPM version License

San 框架的官方 router,支持动态路由,嵌套路由,路由懒加载以及导航守卫等功能。

注意:使用 san-router,要求 San 的版本号 >= 3.0.2

文档 | 示例项目

下载

# use npm
npm i san-router
# or use yarn
yarn add san-router

使用

如需了解更多功能,请访问 快速开始

import {router, Link} from 'san-router';

router.add({
    rule: '/book',
    Component: BookDetail
});
router.add([
    {
        rule: '/about',
        Component: About
    },
    {
        rule: '/home',
        Component: Home
    }
]);
router.start();

CHANGELOG

CHANGELOG

License

san-router is MIT licensed.

2.0.2

7 months ago

2.0.1

2 years ago

2.0.0

2 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.2.0

6 years ago

1.1.3-rc.1

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-rc.2

7 years ago

1.0.0-rc.1

7 years ago