我是 vue.js 的新手,但我需要在表中呈现数据我已经尝试过vuetables和vue-tables-2但它们都会产生错误,需要我编辑它们的源文件,我认为这不是一个好主意. 我的后端是 Laravel 5.3。当我使用时,vuetables
我收到以下错误:
ERROR in ./~/vue-loader/lib/template-compiler.js?id=data-v-369be50a!./~/vue-loader/lib/selector.js?type=template&index=0!./~/vuetable/src/components/VuetablePagination.vue
template syntax error class="{{wrapperClass}}": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of <div class="{{ val }}">, use <div :class="val">.
@ ./~/vuetable/src/components/VuetablePagination.vue 8:23-158
@ ./resources/assets/js/app.js
我vue-tables-2
得到了:
ERROR in ./~/vue-tables-2/lib/template.jsx
Module parse failed: /home/vagrant/Code/project/node_modules/vue-tables-2/lib/template.jsx Unexpected token (15:7)
You may need an appropriate loader to handle this file type.
| var perPage = require('./template/per-page.jsx')(h, this);
|
| return <div class={"VueTables VueTables--" + this.source}>
| <div class="row">
| <div class="col-md-6">
@ ./~/vue-tables-2/lib/v-client-table.js 1:15-40
@ ./~/vue-tables-2/index.js
@ ./resources/assets/js/app.js
有没有办法修复这些错误或我有哪些其他选择?