列表项目
添加wxc-tabbar到代码中,使用npm run build 编译,报错
You may need an appropriate loader to handle this file type
代码
<template>
<div>
<wxc-tabbar :tab-items="tabItems"></wxc-tabbar>
</div>
</template>
<script>
require('weex-components');
module.exports = {
data: {
dir: 'examples',
tabItems: [
...
weex 正在从xx.we迁移到vue.js,需要使用vue的组件。并且有些组件例如wxc-tabbar,正在迁移,还在内测,所以就是无法使用的。
目前,解决方案,可以借鉴https://github.com/osmartian/...