You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
51 lines
648 B
51 lines
648 B
<template> |
|
<div class="hello"> |
|
<ul> |
|
<li v-for="item in items"> |
|
<a :href="item.href">{{ item.name }}</a> |
|
</li> |
|
</ul> |
|
</div> |
|
</template> |
|
|
|
<script> |
|
import { routes } from 'router/demos' |
|
|
|
export default { |
|
data () { |
|
return { |
|
items: routes |
|
} |
|
} |
|
} |
|
</script> |
|
|
|
<style scoped> |
|
h1, h2 { |
|
font-weight: normal; |
|
} |
|
|
|
ul { |
|
/*list-style-type: none;*/ |
|
padding: 0; |
|
margin: auto; |
|
width: 150px; |
|
} |
|
|
|
li { |
|
/*display: inline-block;*/ |
|
margin: 0 0px; |
|
list-style: decimal |
|
} |
|
|
|
a { |
|
color: blue; |
|
display: block; |
|
text-decoration: none; |
|
text-align: left; |
|
} |
|
|
|
a:hover { |
|
text-decoration: underline;; |
|
} |
|
</style>
|
|
|