Merge pull request #2628 from Jsnows/2.0

增加逻辑:
This commit is contained in:
Aresn 2017-12-20 10:55:24 +08:00 committed by GitHub
commit 0d0198664b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 4 deletions

View file

@ -10,12 +10,24 @@
}
</style>
<template>
<div>
<Affix>
<span class="demo-affix">固定在最顶部</span>
<div class="demo-affix">固定在最顶部</div>
</Affix>
<div v-for="(item,index) in arr">{{item}}</div>
</div>
</template>
<script>
export default {
data(){
return {
arr: []
}
},
created(){
for(let i = 0 ; i < 100 ; i++){
this.arr.push(i);
}
}
}
</script>