Comments (4)
你好,问题已修复。支持同一页面调用多个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.
感谢
from vue-ydui.
更新后 window.$yduiBus.$emit() 是否还能使用啊?
from vue-ydui.
你好,不能使用了,原来设计的方法存在巨大问题。
from vue-ydui.
Related Issues (20)
- 血汗钱。。。。
- 作者斐讯钱退出来没有呢? HOT 1
- coding的个人版页面下线了,看不了文档了 HOT 1
- yd-scrollnav
- Slider-item里面的img可以是动态的写入吗?比如 HOT 1
- rollnotice 支持rem 修改方法
- 大佬,官网 http://www.ydui.org/ 无法访问,您检查一下哦。
- 大佬,input标签绑定失焦事件后,清除clear图标点击会触发失焦事件
- 级联插件只支持三级么?
- Yd
- YD日期控件,打开默认选中不是当前日期
- 时间组件没有单独的年选项
- 为什么HTML版本的不更新了 HOT 2
- ydui-滚动加载时,$refs没有yd-infinitescroll的ref
- 文档无法打开 HOT 1
- 可惜了,这么好的项目 HOT 1
- 2022找到了可fq访问的文档链接
- ydui-jquery和 ydui-vue文档链接已更新
- jquery版文档与vue版文档可直接访问
- 官网打不开啦
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-ydui.