Browse Source

refactor hrefs

dependabot/npm_and_yarn/webpack-bundle-analyzer-3.6.0
Alexey Velikiy 8 years ago
parent
commit
4afe8beebd
  1. 4
      src/components/demos-navigation.vue
  2. 2
      src/components/index.vue
  3. 1
      src/router/demos.js

4
src/components/demos-navigation.vue

@ -1,9 +1,9 @@
<template>
<div id="holder">
<div class="links">
<a v-if="prev" :href="prev.href" class="prev"> < prev </a>
<router-link v-if="prev" :to="prev.path" class="prev"> < prev </router-link>
<a :href="sourceHref" class="source"> source </a>
<a v-if="next" :href="next.href" class="next"> next > </a>
<router-link v-if="next" :to="next.path" class="next"> next > </router-link>
</div>
</div>
</template>

2
src/components/index.vue

@ -2,7 +2,7 @@
<div class="hello">
<ul>
<li v-for="item in items">
<a :href="item.href">{{ item.name }}</a>
<router-link :to="item.path">{{ item.name }}</router-link>
</li>
</ul>
</div>

1
src/router/demos.js

@ -29,7 +29,6 @@ export const routes = [
}
].map(r => {
var res = r;
res.href = "#" + r.path;
res.source = config.githubLink +
config.d3ComponentsPath +
r.path +

Loading…
Cancel
Save