Happy-Coding-Clans / vue-easytable

A powerful data table based on vuejs. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
https://happy-coding-clans.github.io/vue-easytable/
MIT License
3.69k stars 738 forks source link

AMD模块规范的加载器无法使用 #279

Closed getwebtools closed 3 years ago

getwebtools commented 5 years ago

如requirejs不能加载使用该包,使用webpack设置output.libraryTarget=amd后重新打包也无法使用,报错: [Vue warn]: Failed to mount component: template or render function not defined.

MillerRen commented 5 years ago

require(['vue-easytable'], function (module) { console.log(module.default) // 注意这个default })

afdr commented 3 years ago

你现在用require引入可以使用了吗? 我也用require引入的, module直接是undefined

huangshuwei commented 3 years ago

Please use version 2.0