带有 VUE vue-onsenui 的 OnsenUIv-ons-segment
显示不正确,而不是连续的按钮栏,我得到的是标准按钮。
代码在一个修改过的 Monaca CLI 项目中,带有最小的 VUE 模板,在一个 .vue 文件中:在 page2.vue 中,我还尝试用相同的结果替换 App.vue 中的代码。
代码是:
<p style="text-align: center">This is the second page</p>
<v-ons-segment>
<button>hi</button>
<button>bye</button>
<button>try</button>
</v-ons-segment>
<p style="text-align: center">and hello again</p>
根据文档,它应该如下所示:https ://onsen.io/v2/api/vue/v-ons-segment.html
这是我得到的结果的屏幕截图:
顶部的工具栏是一个v-ons-toolbar
带有v-ons-back
按钮的按钮,因此可以使用 vue-onsenui。
为什么它不起作用?
我正在使用 Monaca 2.4.1
节点:8.5.0
NPM:5.4.2
vue-onsenui:2.0.0