iview/test/app.vue

54 lines
955 B
Vue
Raw Normal View History

2016-09-09 14:29:19 +08:00
<style lang="less">
2016-10-28 10:27:44 +08:00
@import "../src/styles/index.less";
2016-09-09 14:29:19 +08:00
</style>
2016-10-31 22:11:51 +08:00
<style scoped>
nav {
margin-bottom: 40px;
}
li {
display: inline-block;
}
li + li {
border-left: solid 1px #bbb;
padding-left: 5px;
margin-left: 5px;
}
.v-link-active {
color: #bbb;
}
</style>
2016-09-09 14:29:19 +08:00
<template>
<div>
2016-10-31 22:11:51 +08:00
<nav>
<ul>
2017-03-01 14:28:44 +08:00
<li><router-link to="/affix">Affix</router-link></li>
<li><router-link to="/grid">Grid</router-link></li>
<li><router-link to="/button">Button</router-link></li>
2017-03-01 15:23:12 +08:00
<li><router-link to="/input">Input</router-link></li>
2016-10-31 22:11:51 +08:00
</ul>
</nav>
2016-09-09 14:29:19 +08:00
<router-view></router-view>
</div>
</template>
<script>
module.exports = {
data: function() {
return {
}
},
2017-03-01 14:28:44 +08:00
mounted: function() {
2016-10-28 10:27:44 +08:00
2016-09-09 14:29:19 +08:00
},
beforeDestroy: function() {
},
methods: {
2016-10-28 10:27:44 +08:00
2016-09-09 14:29:19 +08:00
}
}
</script>