Releases: iuroc/vanjs-router
v2.1.0
v2.0.8
v2.0.6
goto
方法只传入 home
时直接跳转空 Hash。
1dbb331#diff-bb8ff0dd16ff286e4086240831f70dd9233de8896f2f50219eeff29414affe64R114
v2.0.5
v1.2.4
Version 1.2.3
VanJS Router v1.2.3 Release Notes
Update Date: January 10, 2024
nowRoute
Method: Retrieves information about the currently active route. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R24activeRoute
Variable: Returns a Van State object. Modifying this value will trigger updates to the route andlocation.hash
. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R30Route
Interface: Used for constructing route information obtained fromlocation.hash
. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R6RouteSetting
Interface: Construction parameters for theRoute
route component. 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R13
VanJS Router v1.2.3 更新日志
更新日期:2024 年 1 月 10 日
nowRoute
方法:获取当前活动的路由信息 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R24activeRoute
变量:返回一个 Van State 对象。修改此值将触发路由和location.hash
的更新 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R30Route
接口:用于构建从location.hash
读取到的路由信息 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R6RouteSetting
接口:Route
路由组件的构建参数 7289d70#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80R13
Version 1.2.2
Release Notes - v1.2.2
New Features and Enhancements
-
Demo Video Released
- We are excited to announce the release of a new demo video to help users gain a better understanding of our Route component. You can watch the demo on Bilibili
-
Route Component Parameter Support in van Style
- The Route component now supports passing the first parameter in a style consistent with van components. Check out the details in this 6f9a731
-
New Module-Free Version
- We've introduced a brand new module-free version, allowing you to use the component effortlessly without TypeScript and npm build tools. For more information, refer to this 9616932
TypeScript Type Description Optimization
- We have optimized the TypeScript type descriptions to provide clearer and more accurate type information, enhancing code readability and maintainability
Thank you to all our users for their support and feedback. We will continue working to improve and provide you with a better user experience. If you have any questions or suggestions, feel free to reach out to us.
版本发布日志 - v1.2.2
新特性和改进
- 演示视频发布
- 我们很高兴地宣布发布了一个全新的演示视频,以帮助用户更好地了解我们的 Route 组件。您可以在 Bilibili 上观看演示
- Route 组件参数支持 van 组件风格
- 现在,Route 组件支持第一个参数传入,并且与 van 组件的参数风格保持一致。详细信息请查看 6f9a731
- 新增无模块版本
- 我们为用户提供了一个全新的无模块版本,使您可以在不使用 TypeScript 和 npm 构建工具的情况下轻松使用。有关详细信息,请查看 9616932
TypeScript 类型描述优化
- 我们对 TypeScript 类型描述进行了一些优化,以提供更清晰和准确的类型信息,以改善代码的可读性和可维护性。
感谢所有用户的支持和反馈,我们将继续努力改进并为您提供更好的使用体验。如有任何问题或建议,请随时联系我们。
Version 1.1.7
Upgrade Log:
-
Custom String Identifiers for Routes:
- Now you can utilize personalized string identifiers to distinguish and navigate between routes.
-
Simplified Export:
- The
Route
component object and therouteTo
navigation method are now the sole exports, ensuring simplicity and ease of use.
- The
-
Effortless Page Transitions:
- Page transitions are seamlessly achieved through the manipulation of the DOM's
hidden
attribute.
- Page transitions are seamlessly achieved through the manipulation of the DOM's
-
Introduction of
onFirst
Method:- Introducing support for the
onFirst
method, allowing the execution of specific actions when a route is initially loaded.
- Introducing support for the
-
Integration of
onLoad
Method:- The newly added
onLoad
method executes designated actions every time a route is loaded, including the initial load.
- The newly added
Feel free to reach out if you have any questions or require further clarification on the updates.