Comments (13)
你先改成这样再试试
from vue-carbon.
loadMore 里的实现给我看看
from vue-carbon.
loadMore () { debugger this.loading = true setTimeout(() => { this.loading = false if (this.end < 100) { for (let i = this.end; i < this.end + 20; i++) { this.list.push(this.list); } } this.end += 20 }, 1000); },
from vue-carbon.
infiniteScroll,实在滚动到底部才加载(load事件),没有滚动事件是不会加载的
export default {
data () {
return {
items: ['1', '2', '3', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20'],
end: 20,
loading: false
}
},
methods: {
loadMore () {
this.loading = true
setTimeout(() => {
this.loading = false
if (this.end < 100) {
for (let i = this.end; i < this.end + 20; i++) {
this.items.push(String(i + 1))
}
}
this.end += 20
}, 1000)
}
}
}
from vue-carbon.
请问,是否已经解决?
from vue-carbon.
有滚动事件啊
from vue-carbon.
能将这个页面代码完整的贴出来看看么
from vue-carbon.
现在是滚动到底部,没有触发load事件么?
from vue-carbon.
是的,不会到loadmore里面去
from vue-carbon.
这个ui库使用的是flexbox做布局, 每个页面的 顶部都要一个 page 的样式
<div class="page">
页面内容
</div>
如果你的版本是 0.4.0
<div class="vc-page">
页面内容
</div>
from vue-carbon.
还是不行
from vue-carbon.
我看到了你的代码上有两个地方指定了v-el:scroller
<list v-el:scroller >
把这个去掉
from vue-carbon.
<list v-el:scroller >
上面是因为我在尝试是不是这个元素选择出错,我又写了这个。不过,现在解决了,这个问题解决方法就是
<div class="page">
页面内容
</div>
from vue-carbon.
Related Issues (20)
- 2.0 HOT 1
- 如何在每次进入home的时候显示bottomNav,在进入另一个路由的时候隐藏bottomNav? HOT 2
- 2.0版什么时候发布呢 HOT 1
- 适配vuejs 2.0版本 HOT 2
- 关于适配 Vue2.0
- 关于 Cordova 打包问题 HOT 9
- 可以增加图片选择器组件吗? HOT 2
- 日历限制选择月份时,非该月会默认提交“当前月今天”。
- 滚动条的兼容问题 HOT 1
- *.vue 里面引用了图片,如何做图片的打包和压缩 HOT 2
- 使用组件报错 HOT 1
- vue2.0引入vue-carbon就报错
- 目前我只需要使用 refreshControl 组件,我该怎么调用呢? 在本地环境下(非vue-cli)
- 请问这个问题要怎么解决?
- 你好,请问下组件命名与Html原生的命名冲突该如何解决 HOT 1
- iphone6 Plus 页面滑动返回的时候,会闪一下
- vue 在微信的"在浏览器中打开",怎样正确导航到子页面?
- 大神呀,好像都报错呀 HOT 2
- 可以直接导入dist里的js和css使用吗,改怎么用 HOT 1
- 引用组件报错...区域大哥不要放弃呜呜呜呜, 好不容易找到个好看的ui HOT 1
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-carbon.