kzima / vuestrap-base-components

Web components that extend Bootstrap 4 - http://kzima.github.io/vuestrap-base-components/#/accordion
MIT License
253 stars 42 forks source link

Vue-router's v-link don't work. #19

Closed leenux closed 8 years ago

leenux commented 8 years ago
<vs-navbar fixed="top" variant="default">
  <vs-nav type="navbar" class="pull-xs-left">
    <vs-nav-item v-link="{ path: '/home' }" active>主页 </vs-nav-item>
    <vs-nav-item v-link="{ path: '/login' }" v-if="!user.authenticated">登录</vs-nav-item>
    <vs-nav-item v-link="{ path: '/signup' }" v-if="!user.authenticated">注册</vs-nav-item>
    <vs-nav-item v-link="{ path: '/login' }" v-if="user.authenticated" @click="logout()">登出</vs-nav-item>
  </vs-nav>
</vs-navbar>

The v-link don't work.

kzima commented 8 years ago

note link instead of v-link

<vs-nav-item link="{ path: '/home' }" active>主页 </vs-nav-item>

docs: http://kzima.github.io/vuestrap-base-components/#/navigation

tvld commented 8 years ago

I've added a new issue #24: the example docs only show "#" and yes.. that is what we get :(