
fixed npm run dev error with cann't find module vue-template-compiler update test demo style :
45 lines
1.2 KiB
Vue
45 lines
1.2 KiB
Vue
<style lang="less">
|
|
@import "../src/styles/index.less";
|
|
</style>
|
|
<style scoped>
|
|
nav { margin-bottom: 40px; }
|
|
ul { display: flex; flex-wrap: wrap; }
|
|
li { display: inline-block; }
|
|
li + li { border-left: solid 1px #bbb; padding-left: 10px; margin-left: 10px; }
|
|
.container{ padding: 10px 40px; }
|
|
.v-link-active { color: #bbb; }
|
|
</style>
|
|
<template>
|
|
<div class="container">
|
|
<nav>
|
|
<ul>
|
|
<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>
|
|
<li><router-link to="/input">Input</router-link></li>
|
|
<li><router-link to="/radio">Radio</router-link></li>
|
|
<li><router-link to="/checkbox">Checkbox</router-link></li>
|
|
<li><router-link to="/steps">Steps</router-link></li>
|
|
</ul>
|
|
</nav>
|
|
<router-view></router-view>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
module.exports = {
|
|
data: function() {
|
|
return {
|
|
|
|
}
|
|
},
|
|
mounted: function() {
|
|
|
|
},
|
|
beforeDestroy: function() {
|
|
|
|
},
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|