Alexey Velikiy
8 years ago
8 changed files with 108 additions and 65 deletions
@ -0,0 +1,16 @@
|
||||
<template> |
||||
<div>aaaa</div> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
name: 'hello', |
||||
data () { |
||||
return {} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only --> |
||||
<style scoped> |
||||
</style> |
@ -1,53 +0,0 @@
|
||||
<template> |
||||
<div class="hello"> |
||||
<h1>{{ msg }}</h1> |
||||
<h2>Essential Links</h2> |
||||
<ul> |
||||
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li> |
||||
<li><a href="https://forum.vuejs.org" target="_blank">Forum</a></li> |
||||
<li><a href="https://gitter.im/vuejs/vue" target="_blank">Gitter Chat</a></li> |
||||
<li><a href="https://twitter.com/vuejs" target="_blank">Twitter</a></li> |
||||
<br> |
||||
<li><a href="http://vuejs-templates.github.io/webpack/" target="_blank">Docs for This Template</a></li> |
||||
</ul> |
||||
<h2>Ecosystem</h2> |
||||
<ul> |
||||
<li><a href="http://router.vuejs.org/" target="_blank">vue-router</a></li> |
||||
<li><a href="http://vuex.vuejs.org/" target="_blank">vuex</a></li> |
||||
<li><a href="http://vue-loader.vuejs.org/" target="_blank">vue-loader</a></li> |
||||
<li><a href="https://github.com/vuejs/awesome-vue" target="_blank">awesome-vue</a></li> |
||||
</ul> |
||||
</div> |
||||
</template> |
||||
|
||||
<script> |
||||
export default { |
||||
name: 'hello', |
||||
data () { |
||||
return { |
||||
msg: 'Welcome to Your Vue.js App' |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only --> |
||||
<style scoped> |
||||
h1, h2 { |
||||
font-weight: normal; |
||||
} |
||||
|
||||
ul { |
||||
list-style-type: none; |
||||
padding: 0; |
||||
} |
||||
|
||||
li { |
||||
display: inline-block; |
||||
margin: 0 10px; |
||||
} |
||||
|
||||
a { |
||||
color: #42b983; |
||||
} |
||||
</style> |
@ -0,0 +1,58 @@
|
||||
<template> |
||||
<div class="hello"> |
||||
<ul> |
||||
<li v-for="item in itemz"> |
||||
<a :href="item.path | hashed">{{ item.name }}</a> |
||||
</li> |
||||
</ul> |
||||
</div> |
||||
</template> |
||||
|
||||
<script> |
||||
import { routes } from 'router/demos' |
||||
export default { |
||||
name: 'hello', |
||||
data () { |
||||
return { |
||||
itemz: routes |
||||
} |
||||
}, |
||||
filters: { |
||||
hashed: function (value) { |
||||
if (!value) return '' |
||||
return '#' + value; |
||||
} |
||||
} |
||||
} |
||||
</script> |
||||
|
||||
<!-- Add "scoped" attribute to limit CSS to this component only --> |
||||
<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> |
@ -1,11 +1,13 @@
|
||||
// The Vue build version to load with the `import` command
|
||||
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
|
||||
import Vue from 'vue' |
||||
import App from './App' |
||||
import App from './app' |
||||
import router from './router' |
||||
|
||||
/* eslint-disable no-new */ |
||||
new Vue({ |
||||
el: '#app', |
||||
router, |
||||
template: '<App/>', |
||||
components: { App } |
||||
}) |
||||
|
@ -0,0 +1,8 @@
|
||||
|
||||
export const routes = [ |
||||
{ |
||||
name: 'Circle mount', |
||||
path: '/1-circle-mount', |
||||
component: require('components/1-circle-mount') |
||||
} |
||||
] |
@ -0,0 +1,17 @@
|
||||
import Vue from 'vue' |
||||
import Router from 'vue-router' |
||||
import Index from 'components/index' |
||||
import {routes as demoRoutes} from './demos' |
||||
|
||||
Vue.use(Router) |
||||
|
||||
export default new Router({ |
||||
routes: [ |
||||
{ |
||||
path: '/', |
||||
name: 'Index', |
||||
component: Index |
||||
}, ... demoRoutes |
||||
|
||||
] |
||||
}) |
Loading…
Reference in new issue