Closed getwebtools closed 3 years ago
如requirejs不能加载使用该包,使用webpack设置output.libraryTarget=amd后重新打包也无法使用,报错: [Vue warn]: Failed to mount component: template or render function not defined.
require(['vue-easytable'], function (module) { console.log(module.default) // 注意这个default })
你现在用require引入可以使用了吗? 我也用require引入的, module直接是undefined
Please use version 2.0
如requirejs不能加载使用该包,使用webpack设置output.libraryTarget=amd后重新打包也无法使用,报错: [Vue warn]: Failed to mount component: template or render function not defined.