We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
可以用href,href类型的会转换成a标签
为什么不将to的属性用于router-link呢(最终渲染为a标签)?使用div渲染menu-item失去了右键点击-新标签页打开等能力,对于SPA来说,用户就是期望能够控制导航、路由行为的页面打开方式,在某个特定的时候选择使用新标签页打开,而不是配置target之后总是以新标签页打开。
to
router-link
a
div
menu-item
target
如果使用目前已有的href属性传递路径,那就完全失去了SPA应有的能力,每次导航浏览器都将重新完整请求一次页面,失去了组件的状态和响应性,页面上的部分icon也需要重新请求一次,视图会发生闪烁,基于vue router和transition实现的路由动画也将失效,这不是纯粹脱裤子放屁么?😅
href
直接默认将to属性用router-link实现吧
The text was updated successfully, but these errors were encountered:
👋 @Nero978,感谢给 TDesign 提出了 issue。 请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
Sorry, something went wrong.
#3057
感谢老哥!😀
routerLink
No branches or pull requests
这个功能解决了什么问题
为什么不将
to
的属性用于router-link
呢(最终渲染为a
标签)?使用div
渲染menu-item
失去了右键点击-新标签页打开等能力,对于SPA来说,用户就是期望能够控制导航、路由行为的页面打开方式,在某个特定的时候选择使用新标签页打开,而不是配置target
之后总是以新标签页打开。如果使用目前已有的
href
属性传递路径,那就完全失去了SPA应有的能力,每次导航浏览器都将重新完整请求一次页面,失去了组件的状态和响应性,页面上的部分icon也需要重新请求一次,视图会发生闪烁,基于vue router和transition实现的路由动画也将失效,这不是纯粹脱裤子放屁么?😅你建议的方案是什么
直接默认将
to
属性用router-link
实现吧The text was updated successfully, but these errors were encountered: