|
|
<template>
|
|
|
<ul class="list-box">
|
|
|
<li><a href="#">A</a></li>
|
|
|
<li><a href="#">B</a></li>
|
|
|
<li><a href="#">C</a></li>
|
|
|
<li><a href="#">D</a></li>
|
|
|
<li><a href="#">E</a></li>
|
|
|
<li v-for="item in items"><a href="#{{item.id}}">{{item.name}}</a></li>
|
|
|
</ul>
|
|
|
</template>
|
|
|
<style>
|
|
|
body {
|
|
|
background: #000;
|
|
|
}
|
|
|
|
|
|
.list-box{
|
|
|
.list-box {
|
|
|
position: fixed;
|
|
|
height: 100%;
|
|
|
width: 30px;
|
|
|
padding: 0;
|
|
|
margin: 0;
|
|
|
padding: 6px;
|
|
|
right: 0;
|
|
|
border-radius: 8px;
|
|
|
background: #fff;
|
|
|
opacity: 0.8;
|
|
|
|
|
|
li {
|
|
|
list-style: none;
|
...
|
...
|
@@ -23,11 +26,8 @@ |
|
|
|
|
|
</style>
|
|
|
<script>
|
|
|
export default{
|
|
|
data(){
|
|
|
return{
|
|
|
msg:'hello vue'
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
module.exports = {
|
|
|
props: ['items']
|
|
|
};
|
|
|
|
|
|
</script> |
...
|
...
|
|