adcentury / vue-weui

(Deprecated) WeUI Components with love of vue.js
http://adcentury.github.io/vue-weui
MIT License
414 stars 78 forks source link

Fix href problem for the link-cell component #39

Closed PeachScript closed 8 years ago

PeachScript commented 8 years ago

38

adcentury commented 8 years ago

感谢提供的解决方案,这个方案目前看来可以解决使用vue-routerhref被覆盖的问题,但会导致该组件变为片段组件。请容我权衡一下,再次感谢支持!

PeachScript commented 8 years ago

不客气,该方案虽能直接解决问题但确实不够优雅,如果你能有更好的方案那是再好不过了,也非常感谢你创建了这个项目 : D

PeachScript commented 8 years ago

对了,顺便描述一下我所遇到的问题,如果有时间的话请帮我看看是否可以在不修改源码的前提下解决:我引入了 vue-router 以使用前端路由,但在某一个页面,我需要进行站外跳转,比如跳转到 http://www.github.com/,那这时候我就不得不使用 LinkCell 组件中的 link 来进行参数传递了,因为看了下 vue-router 的文档,发现 v-link 只能用于不同视图之间的跳转,不能用于站外链接(或者是我没仔细研读文档有漏掉的地方?),也是因为这样的一个特定需要,才发现了这个问题。Thks!

PeachScript commented 8 years ago

@adcentury 你好,上次的 PR 没有考虑到你说的片段组件的问题,解决方式比较粗鲁,所以后来我又思考了一下,换了一种相对来说更好的方式来解决这个问题 #38 ,你看看是否 OK。

adcentury commented 8 years ago

@PeachScript thanks