Vue-Materialのドキュメント(https://vuematerial.io/components/bottom-bar)では、md-bottom-bar-itemで詰め込まれたmd-bottom-barを作成することができますが、Vue-Material navbar、必須小道具がありません:
「Vue Routerとのシームレスな統合」の下にコードが表示されます(これはまさに^^の意味です)、私のコードは次のようになりますこの:
<md-bottom-bar-item
id="messageRoute"
to="/Messages"
@click="stuff"
md-label="Notifications"
md-icon="message">
</md-bottom-bar-item>
<md-bottom-bar-item
id="settingsRoute"
to="/Settings"
@click="stuff"
md-label="Options"
md-icon="settings">
</md-bottom-bar-item>
これは、通知リストのタブ、および自分のアプリの設定ページです。
私はアイテムをクリックしたときに私が得たエラーは、文字通りある。この(私は私のナビゲーションバーにある5つの項目がありますbeucause、5回かかわらず、それを得た):
[Vue warn]: Missing required prop: "to"
found in
---> <MdButton> at src/components/MdButton/MdButton.vue
<MdBottomBarItem> at src/components/MdBottomBar/MdBottomBarItem.vue
<MdRipple> at src/components/MdRipple/MdRipple.vue
<MdBottomBar> at src/components/MdBottomBar/MdBottomBar.vue
<NavBar> at src\components\NavBar.vue
<App> at src\App.vue
<Root>
は私がで@click='stuff'
ことなく、同じエラーを得ましたちょっと、それとは関係ない...と思っています...
[email protected](私が使っているもの)はベータ版ですか?私はドキュメントに表示されていることをやっているように感じ、それをコピーして貼り付けて、アプリに収まるように変更しました。
<md-bottom-bar md-sync-route>
<!-- stuff -->
</md-bottom-bar>
ない重大な問題、しかし:私はちょうどちょうどthis.$router.replace(path)
を行いますが、下のバーはそうのような、md-sync-route
属性で、Vueののルータと同期されていないこと、goTo(path)
方法をした今の
ねえ、なぜVue.js、なぜ??? ^^
そして、何トロール:
[この問題はgithub](https://github.com)を参照してください。/vuematerial/vue-material/issues/1237)。 –