Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ares-chang/uni-use-router
UniApp 路由跳转补充,与 Vue Router 语法靠近
https://github.com/ares-chang/uni-use-router
router uni-router uniapp
Last synced: 3 months ago
JSON representation
UniApp 路由跳转补充,与 Vue Router 语法靠近
- Host: GitHub
- URL: https://github.com/ares-chang/uni-use-router
- Owner: Ares-Chang
- License: mit
- Created: 2024-08-13T05:27:43.000Z (5 months ago)
- Default Branch: master
- Last Pushed: 2024-09-06T03:15:37.000Z (4 months ago)
- Last Synced: 2024-09-06T03:55:38.463Z (4 months ago)
- Topics: router, uni-router, uniapp
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/uni-use-router
- Size: 365 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# uni-use-router
[![npm version][npm-version-src]][npm-version-href]
[![npm downloads][npm-downloads-src]][npm-downloads-href]
[![bundle][bundle-src]][bundle-href]
[![JSDocs][jsdocs-src]][jsdocs-href]
[![License][license-src]][license-href]UniApp 路由跳转补充,与 Vue Router 语法靠近
## 🚀 Install
```sh
pnpm add uni-use-router --save-dev
```## ⚡️ Usage
```vue
import { useRouter } from 'uni-use-router'
const router = useRouter({
webview: '/pages/webview'
})
Go Test
Go Test
Go Replace
Go H5
.box {
display: flex;
flex-direction: column;
gap: 10rpx;
}```
## License
[MIT](./LICENSE) License © 2024-PRESENT [Ares Chang](https://github.com/Ares-Chang)
[npm-version-src]: https://img.shields.io/npm/v/uni-use-router?style=flat&colorA=080f12&colorB=1fa669
[npm-version-href]: https://npmjs.com/package/uni-use-router
[npm-downloads-src]: https://img.shields.io/npm/dm/uni-use-router?style=flat&colorA=080f12&colorB=1fa669
[npm-downloads-href]: https://npmjs.com/package/uni-use-router
[bundle-src]: https://img.shields.io/bundlephobia/minzip/uni-use-router?style=flat&colorA=080f12&colorB=1fa669&label=minzip
[bundle-href]: https://bundlephobia.com/result?p=uni-use-router
[license-src]: https://img.shields.io/github/license/Ares-Chang/uni-use-router.svg?style=flat&colorA=080f12&colorB=1fa669
[license-href]: https://github.com/Ares-Chang/uni-use-router/blob/main/LICENSE
[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
[jsdocs-href]: https://www.jsdocs.io/package/uni-use-router