当前位置: 首页 > Web前端 > vue.js

如何在Vue框架中集成ActiveReportsJS在IE浏览器中显示

时间:2023-03-31 23:46:09 vue.js

ARJS支持在IE11及以上版本显示,但需要引用(Polyfillsjs文件),否则无法在IE浏览器中显示。接下来说一下如何在Vue中配置ARJS2.0集成,使其在IE浏览器中显示。使用VueCLI创建Vue应用程序以创建项目。安装@grapecity/activereports-vuenpm包,安装activereportsvue相关文件。@grapecity/activereports包提供核心功能。在项目根目录执行如下命令:npminstall@grapecity/activereports-vue@grapecity/activereports使用yarn命令:yarnadd@grapecity/activereports-vue@grapecity/activereports如果是Vue2.0,安装@vue/composition-apipackage:npminstall@vue/composition-api或者执行yarn命令yarnadd@vue/composition-api安装“babel-polyfill”npminstall“babel-polyfill”安装“polyfill-library-node”"npminstall"polyfill-library-node"添加Vue报表查看器控件打开src\App.vue文件,修改代码如下: