【发布时间】:2017-12-08 14:14:33
【问题描述】:
我是新手,想将 framework7 2.0.2 与 vue-webpack 样板模板一起使用。有什么想法吗?
当我运行开发服务器时,chrome 显示一个空白页面而没有任何错误,但是当我更改为 它显示了一个 Vue 控制器的内容。
寻求帮助。 我的 main.js 代码是这样的:
import Vue from 'vue’
import 'framework7/dist/js/framework7’
import 'framework7/dist/css/framework7.css’
import Routes from './routes.js’
import App from ‘./App’
/* eslint-disable no-new /
// Init App
new Vue({
el: ‘#app’,
template: ‘’,
// Init Framework7 by passing parameters here
framework7: {
/ id: ‘io.framework7.testapp’, /
root: ‘#app’,
/ Uncomment to enable Material theme: material: true, */
material: true,
theme: ‘md’,
routes: Routes
},
// Register App Component
components: {
app: App
}
})
【问题讨论】: