将vue-easytable中的例子直接复制过来,引入了所有的文件,使用的是npm安装,引入了
import 'vue-easytable/libs/themes-base/index.css'
import {VTable,VPagination} from 'vue-easytable';
Vue.component(VTable.name,VTable)
Vue.component(VPagination.name,VPagination)
同时将文档中的自定义列中的示例代码,全部复制。运行时,依然没有出现操作列。

在谷歌浏览器调试模式下,发现操作列

解决方式:
使用vue-cli搭建项目时,要注意使用Runtime+compiler。。。如果使用Runtime-only,则操作列是无法显示的。

网友评论