update the master branch to the latest
This commit is contained in:
parent
67d534df27
commit
23a0ba9831
611 changed files with 122648 additions and 0 deletions
33
examples/routers/affix.vue
Normal file
33
examples/routers/affix.vue
Normal file
|
@ -0,0 +1,33 @@
|
|||
<style>
|
||||
body{
|
||||
/*height: 2000px;*/
|
||||
}
|
||||
.demo-affix{
|
||||
width: 100px;
|
||||
height: 30px;
|
||||
background: #f60;
|
||||
color: #fff
|
||||
}
|
||||
</style>
|
||||
<template>
|
||||
<div>
|
||||
<Affix>
|
||||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue