gk-shi / v3-waterfall

a waterfall plugin for Vue 3. 一个 vue 3 的自适应瀑布流组件。

Home Page:https://gk-shi.github.io/v3-waterfall/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

必须要包含图片内容?

Lingouzi opened this issue · comments

content 使用文字不可以么?

commented

image
是指在例子中我箭头指向的这样嘛

刚试了下,setup 返回的数据没有加载一直显示 loading,会是什么问题呢?

<v3-waterfall class="waterfall" :list="items" @scrollReachBottom="getList">
  <template #default="{item}">
    {{ item }}
  </template>
</v3-waterfall>


setup 部分代码:

const state = reactive({
  items: [],
})

function xx(){
  notes().then(res=>{
state.items = res.data
})

return {
        ...toRefs(state),
        getList
      }
}

commented

@Lingouzi 我尝试在 example/的项目里按照你提供的代码片段的调用方式,依然是能够正常显示的。😂,如果方便的话,可以提供一个无法正常使用的最小项目 github 地址给我,我可以看下。

https://gitee.com/linyun2018/test-waterfall.git
@gk-shi 基本上什么都没有的,这种使用方式是否正确?

commented

@Lingouzi 感谢提供代码片段,是我的库的问题,没有兼容到 content 完全不含图片的情况,只兼容了其中某一项 item 不含图片的情况,会尽快修复。

commented

@Lingouzi 你好,问题已修复,更新到 1.1.2版本即可,再次感谢提供帮助😁