Giter Club home page Giter Club logo

Comments (4)

ydcss avatar ydcss commented on August 20, 2024

你好,问题已修复。支持同一页面调用多个infinitescroll。两个地方需要修改:
1、原 window.$yduiBus.$emit() 已改为 this.$refs.XXXX.$emit()。
2、每个infinitescroll组件不能使用同一个父级(含有css属性overflow-y: auto;或scroll)。
像这样:
<template>
<yd-tab>
<yd-tab-panel label="选项一">
<div style="height: 800px;overflow-y: auto">
<yd-infinitescroll :on-infinite="loadList111" ref="lsdemo111">
...
</yd-infinitescroll>
</div>
</yd-tab-panel>
<yd-tab-panel label="选项四">
<div style="height: 800px;overflow-y: auto">
<yd-infinitescroll :on-infinite="loadList222" ref="lsdemo222">
...
</yd-infinitescroll>
</div>
</yd-tab-panel>
</yd-tab>
</template>

但是个人建议不在同一个页面调用多个infinitescroll,可以考虑每个选项卡为不同页面。

from vue-ydui.

ymjdev avatar ymjdev commented on August 20, 2024

感谢

from vue-ydui.

YaoGuaiWang avatar YaoGuaiWang commented on August 20, 2024

更新后 window.$yduiBus.$emit() 是否还能使用啊?

from vue-ydui.

ydcss avatar ydcss commented on August 20, 2024

你好,不能使用了,原来设计的方法存在巨大问题。

from vue-ydui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.