> For the complete documentation index, see [llms.txt](https://api.view-js.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://api.view-js.com/lei-xing/viewswitcheventdata.md).

# ViewSwitchEventData

## 属性

* ~~*`currentView`*`: View | null`~~ 离开的视图。已废弃，建议使用 `sourceView`
* `sourceView: View | null` - 离开的视图
* `targetView: View` - 进入的视图
* `type:` [`ViewSwitchType`](/lei-xing/viewswitchtype.md) - 视图跳转的方式
* `trigger:` [`ViewSwitchTrigger`](/lei-xing/viewswtichtrigger.md) - 视图跳转的触发来源
* `params: Object | null` - 视图跳转携带的视图参数
* `options: Object | null` - 视图跳转携带的视图选项
