lfyfly / vue-waterfall-easy

vue瀑布流组件(vue-waterfall-easy 2.x)
https://lfyfly.github.io/vue-waterfall-easy/demo/#/
MIT License
860 stars 350 forks source link

isRouterLink="true"之后报错 #13

Closed hiseab closed 6 years ago

hiseab commented 6 years ago

Invalid prop: type check failed for prop "to". Expected String, Object, got Boolean

lfyfly commented 6 years ago

好像是你赋予router-linkto属性(也就是imgArr里图片跳转链接)数据类型错了

hiseab commented 6 years ago

谢谢回复,我用的是例子里的data-router-link.json的数据啊,也报错
{ "src": "./static/img/1.jpg", "href": "/test", "info": "一些图片描述文字" },

lfyfly commented 6 years ago

是我的问题,已经在 vue-waterfall-easy@2.1.5 修复了,你更新下试试

hiseab commented 6 years ago

更新了,但是 我这样:isRouterLink="true" :linkRange="img" 还是报错: [Vue warn]: Property or method "img" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property

lfyfly commented 6 years ago

linkRangeString类型啊,不需要加冒号

lyh2 commented 5 years ago

自定义跳转问题,添加@click事件也是成功的。但是返回的时候,中间多了一个页面,也就是a标签跳转的页面?怎么解决?