wok-ui-router
Community简化 wok-ui 路由系统的集成与使用
AuthorPeakTai
Version1.0.0
Installs0
System Documentation
What problem does it solve?
介绍 wok-ui 路由系统的使用方法,包括路由初始化、路径规则与别名、按需加载、参数获取、页面跳转、布局复用、缓存、生命周期与钩子函数。
Core Features & Use Cases
- 初始化路由:通过 initRouter 设置模式、基础路径和路由规则
- 参数与查询解析:通过 getPathVar、getParam、getParamVals 提取路径变量与查询参数
- 导航与链接:使用 push/replace 和 RouterLink 实现声明式导航
- 缓存与性能:路由缓存支持多参数缓存与页面保留
- 按需加载:支持 Promise<Module> 的延迟加载
- 生命周期与钩子:支持 beforeEach、afterEach、errorHandler 等导航钩子
Quick Start
Create a router with initRouter and mount it to the document body to render a page.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: wok-ui-router Download link: https://github.com/PeakTai/wok-ui/archive/main.zip#wok-ui-router Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.