Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

初始化loadmore出现错误,哪里出现错误了 #29

Open
ghost opened this issue May 25, 2017 · 3 comments
Open

初始化loadmore出现错误,哪里出现错误了 #29

ghost opened this issue May 25, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented May 25, 2017

<template>
	<div>
		<loadmore :top-method="loadTop" :bottom-method="loadBottom" :bottom-all-loaded="allLoaded" ref="loadmore">
		  <ul>
		    	<li v-for="item in list">{{ item }}</li>
		  </ul>
		</loadmore>
	</div>
</template>
<script type="text/javascript-6">
	import loadmore from 'vue-loadmore';
	export default {
		data(){
			return {
				list: [],
				allLoaded: false
			}
		},
		components:{
			loadmore
		},
		methods:{
			loadTop(id){
				console.log(1);
				this.$refs.loadmore.onTopLoaded();
			},
			loadBottom(id) {
				this.allLoaded = true;// 若数据已全部获取完毕
    			this.$refs.loadmore.onBottomLoaded();
			}
		}
	}
</script>
<style scoped>
	
</style>

image
image

@Ya-hui
Copy link

Ya-hui commented Jul 7, 2017

@Jaction 您好,您解决了吗? 碰到同样的问题

@chengqiang1992
Copy link

不知道两位是否解决这个问题,我也碰到了

@lzcmagic
Copy link

初始化的时候加上这句话
// 引入mint-ui的样式
import 'mint-ui/lib/style.css'

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants